Skip to main content
POST
/
api
/
chat
AI coaching chat
curl --request POST \
  --url https://app.dacard.ai/api/chat \
  --header 'Content-Type: application/json' \
  --cookie __session= \
  --data '
{
  "messages": [
    {
      "role": "user",
      "content": "<string>"
    }
  ],
  "result": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "url": "<string>",
    "totalScore": 60,
    "stageName": "Legacy",
    "dimensions": [
      {
        "dimensionId": "market_intelligence",
        "dimensionName": "Market Intelligence",
        "score": 2,
        "stageName": "<string>",
        "evidence": "<string>",
        "confidence": "high",
        "reasoning": "<string>"
      }
    ],
    "strengths": [
      "<string>"
    ],
    "gaps": [
      "<string>"
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "companyName": "<string>",
    "crawledPages": [
      "<string>"
    ],
    "crossDimensionNotes": "<string>",
    "antiPatternsDetected": [
      "<string>"
    ],
    "crawlStats": {
      "pagesAnalyzed": 123,
      "contentLength": 123
    },
    "productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}
'
"<string>"

Authorizations

__session
string
cookie
required

Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.

Body

application/json
messages
object[]
required
result
object

Response

SSE stream of chat responses

Server-Sent Events stream. Each event contains data: {"content": "..."} or terminates with data: [DONE].