Openapi
Append a message to an organization chat thread.
Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
In: cookie
uuiduuidapplication/json
The chat message payload to append.
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/organizations/123e4567-e89b-12d3-a456-426614174000/ai/threads/123e4567-e89b-12d3-a456-426614174000/messages" \ -H "Content-Type: application/json" \ -d '{ "clientMessageId": null, "metadata": {}, "parts": [ null ], "role": "system", "status": "complete" }'{ "data": { "clientMessageId": "string", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata": { "property1": "string", "property2": "string" }, "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "parts": [ null ], "role": "system", "status": "complete", "threadId": "51f72284-0555-48fe-a20a-4369ee94dc3e" }}1 <= length <= 240null{}1 <= itemsValue in
"complete"Value in