Openapi
Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
In: cookie
uuiduuidapplication/json
Text and existing inbox attachment references to deliver.
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/inbox/threads/123e4567-e89b-12d3-a456-426614174000/messages" \ -H "Content-Type: application/json" \ -d '{ "files": [ { "attachmentId": "96b9bbac-86d3-4497-9e0c-1f8e3803eddb", "mediaType": "string", "name": "string" } ], "text": "" }'{ "delivery": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d", "chatMessageId": "c894268b-b7a1-4784-8aae-60cf3c041987", "externalMessageId": "string", "direction": "inbound", "status": "queued", "idempotencyKey": "string", "errorMessage": "string", "nextAttemptAt": null, "canceledAt": null, "retryCount": 0, "metadata": { "property1": "string", "property2": "string" }, "createdAt": "string", "updatedAt": "string" }, "message": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "threadId": "51f72284-0555-48fe-a20a-4369ee94dc3e", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "clientMessageId": null, "role": "system", "parts": [ { "actionId": "string", "actionVersion": "string", "approvalConfirmed": true, "contextFingerprint": "stringst", "contextKinds": [ "page" ], "intakeAnswers": [ { "fieldId": "string", "value": "string" } ], "route": "string", "safeReferences": [ { "id": "string", "kind": "string", "label": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "path": "string" } ], "type": "action" } ], "metadata": { "property1": "string", "property2": "string" }, "status": "complete", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "createdAt": "string", "viewerFeedback": { "messageId": "8540d774-4863-4d2b-b788-4ecb19412e85", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "rating": "positive", "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b", "modelId": "string", "runId": "78c33d18-170c-44d3-a227-b3194f134f73", "createdAt": "string", "updatedAt": "string" } }, "sent": true}items <= 10length <= 4000""