Skip to main content
POST
/
notes
/
chat
Chat With Ai Note
curl --request POST \
  --url https://api.decodahealth.com/notes/chat \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "parentNoteId": "<string>",
  "providerId": "<string>",
  "message": "<string>"
}
'
{
  "id": "<string>",
  "answers": [
    {
      "id": "<string>",
      "noteId": "<string>",
      "questionId": "<string>",
      "data": {},
      "createdDate": "2023-11-07T05:31:56Z"
    }
  ],
  "template": {
    "id": "<string>",
    "name": "<string>",
    "createdDate": "2023-11-07T05:31:56Z",
    "questions": [],
    "userIds": [
      "<string>"
    ],
    "isFavorited": false,
    "expiryDays": 123
  }
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json
parentNoteId
string
required
providerId
string
required
message
string
required

Response

Successful Response

Response for note generation endpoints. Returns structured answers instead of formatted content.

id
string
required
answers
NoteAnswerDetail · object[]
required
template
NoteTemplateTableItem · object