SupportDashboard
Diagnostic EngineConversations

Create chat

Send a message in an existing conversation.

POST
/v1/chats
AuthorizationBearer <token>

In: header

input?Input

User message. Required unless force_diagnose is true.

conversation_idConversation Id

Conversation ID.

force_diagnose?Force Diagnose

If set to true, trigger an immediate diagnosis and any value in input is ignored.

Defaultfalse

Response Body

curl -X POST "https://api.avey.ai/ddx/v1/chats" \  -H "Content-Type: application/json" \  -d '{    "input": "I have a headache and feel nauseous",    "conversation_id": "conv_e389786b611e"  }'
{
  "id": "resp_6e5d051505a0",
  "created_at": 1774530618,
  "is_complete": false,
  "conversation_id": "conv_e389786b611e",
  "output": {
    "type": "message",
    "content": "Where is your headache located?",
    "media": []
  },
  "findings": [
    {
      "concept": {
        "id": "422587007",
        "term": "Nausea",
        "description": ""
      },
      "status": "present",
      "is_chief": true
    },
    {
      "concept": {
        "id": "25064002",
        "term": "Headache",
        "description": ""
      },
      "status": "present",
      "is_chief": true
    }
  ]
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}

How is this guide?