Prepare a direct conversation attachment upload
Creates one-use, tenant-bound staging keys and exact-size/content-type presigned PUT URLs. Call finalize after both uploads complete.
Creates one-use, tenant-bound staging keys and exact-size/content-type presigned PUT URLs. Call finalize after both uploads complete.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/conversations/550e8400-e29b-41d4-a716-446655440000/attachments/presign" \ -H "Content-Type: application/json" \ -d '{ "filename": "string", "mimeType": "string", "size": 1 }'{ "attachmentId": "string", "uploadUrl": "string", "uploadContentType": "string", "thumbnailUploadUrl": "string", "thumbnailUploadContentType": "string", "name": "string", "mimeType": "string", "size": 0, "category": "images"}Mark conversation as read POST
Advance the current organization's conversation read cursor to the latest committed message sequence. Broadcasts the organization-wide cursor to connected clients.
Send a message in a conversation POST
Send a text, image, voice, or file message in a conversation. The client-generated message ID makes exact retries idempotent within the conversation and sender scope. Supports attachments, internal notes (visible only to your org), and reply threads. Updates unread counts and broadcasts to connected WebSocket clients.