Sazabi
APIThreads

Create a thread

POST
/threads

Create a thread with an initial message and optionally wait for the agent response.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/threads" \  -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"}