Skip to main content
POST
/
notes
/
upload
Upload Note
curl --request POST \
  --url https://api.decodahealth.com/notes/upload \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'TENANT: <tenant>' \
  --form 'patient_id=<string>' \
  --form 'provider_id=<string>' \
  --form 'files=<string>' \
  --form 'template_id=<string>' \
  --form 'location_id=<string>' \
  --form skip_ai_generation=false \
  --form files.items='@example-file'
{
  "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

multipart/form-data
patient_id
string
required
provider_id
string
required
files
file[]
required
template_id
string | null
location_id
string | null
skip_ai_generation
boolean
default:false

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