Openapi
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidthreadId*stringuuidText and existing inbox attachment references to deliver.
application/jsonfiles*array<>items <= 10text*stringlength <= 4000""Returns the persisted message and external delivery state.
application/jsondelivery*message*sent*booleancurl -X POST 'https://app.localhost/api/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": { "canceledAt": null, "chatMessageId": "c894268b-b7a1-4784-8aae-60cf3c041987", "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d", "createdAt": "string", "direction": "inbound", "errorMessage": "string", "externalMessageId": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "idempotencyKey": "string", "metadata": { "property1": "string", "property2": "string" }, "nextAttemptAt": null, "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "retryCount": 0, "status": "queued", "updatedAt": "string" }, "message": { "clientMessageId": null, "createdAt": "string", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "metadata": { "property1": "string", "property2": "string" }, "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "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" } ], "role": "system", "status": "complete", "threadId": "51f72284-0555-48fe-a20a-4369ee94dc3e", "viewerFeedback": { "createdAt": "string", "messageId": "8540d774-4863-4d2b-b788-4ecb19412e85", "modelId": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "rating": "positive", "runId": "78c33d18-170c-44d3-a227-b3194f134f73", "updatedAt": "string", "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b" } }, "sent": true}