Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dacard.ai/llms.txt

Use this file to discover all available pages before exploring further.

Ask DAC to rewrite a coaching recommendation. Optional feedback text steers the regeneration: pass what was wrong with the original, or what additional context DAC should weigh.
curl -X POST https://app.dacard.ai/api/recommendations/regenerate \
  -H "Authorization: Bearer $DACARD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "recommendationId": "rec_xyz",
    "feedback": "Too generic. Our team is two ICs, not a 50-person org."
  }'
PropertyValue
AuthRequired
Cost1 credit (LLM call)
IdempotentNo (each call regenerates)

Body

FieldTypeRequiredNotes
recommendationIdstringyesThe original recommendation.
feedbackstringnoFree-text steering. Stored against the original for the trace.

Response

{
  "recommendation": {
    "id": "rec_xyz",
    "rewrittenAt": "2026-05-06T12:00:00Z",
    "title": "...",
    "body": "...",
    "evidence": [...]
  }
}
The original is replaced in place; clients re-render against the same id.

Errors

StatusCodeWhen
401AUTH_REQUIREDNo session.
402CREDIT_EXHAUSTEDNo credits.
404Recommendation not foundBad recommendationId or not owned by caller.
500INTERNAL_ERRORLLM or write failed.
A captureTrace() row is written for every regeneration with callType: dac_structured.