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.

Submit feedback on a DAC artifact: thumbs up/down plus an optional structured reaction. The reaction taxonomy (helpful, already doing, wrong diagnosis, wrong priority, not actionable, implemented differently) feeds the coaching engine’s per-recommendation acceptance rate.
curl -X POST https://app.dacard.ai/api/feedback \
  -H "Authorization: Bearer $DACARD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "targetType": "recommendation",
    "targetId": "rec_xyz",
    "rating": "down",
    "reaction": "wrong_diagnosis",
    "comment": "We already shipped that two cycles ago.",
    "traceId": "trace_xyz"
  }'
PropertyValue
AuthRequired
IdempotentYes (replaces caller’s prior feedback on the same target)

Body

FieldTypeRequiredNotes
targetTyperecommendation | score | chat_response | briefingyesWhat’s being rated.
targetIdstringyesThe id of the artifact.
ratingup | downyesThumbs.
reactionstringnoOne of: helpful, already_doing, wrong_diagnosis, wrong_priority, not_actionable, implemented_differently.
commentstringnoFree text.
traceIdstringnoThe trace ID returned with the original artifact. Wires the outcome chain.

Errors

StatusCodeWhen
400INVALID_PAYLOADMissing required fields.
401AUTH_REQUIREDNo session.
404Target not foundtargetId doesn’t exist.
500INTERNAL_ERRORWrite failed.
If traceId is provided, the row joins to llm_traces for the outcome chain. See .claude/rules/observability.md for the contract.