Sazabi
APIMessages

Append a message to a thread

POST
/threads/{threadId}/messages

Append a user message to an existing thread and trigger a deferred run.

Path Parameters

threadId*string

Thread ID to append the message to.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages" \  -H "Content-Type: application/json" \  -d '{    "message": "string"  }'
{  "completed": true,  "threadId": "51f72284-0555-48fe-a20a-4369ee94dc3e",  "runId": "78c33d18-170c-44d3-a227-b3194f134f73",  "messageId": "8540d774-4863-4d2b-b788-4ecb19412e85",  "status": "processing",  "response": "string"}