Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Clerk session token, Authorization: Bearer <token>. This documents the app's own internal auth as of S1-S6 — see S8-public-api-bonus.md for the fallback scope this doc covers, and the public API-key scheme's own page once the full scope ships.

Path Parameters

attachmentId
string
required
Minimum string length: 1

Body

application/json
assemblyId
string
required
Minimum string length: 1

Response

Finalized attachment.

id
string
required
chatId
string | null
required
messageId
string | null
required
orderIndex
integer
required
Required range: x >= 0
status
enum<string>
required
Available options:
PENDING,
READY,
FAILED,
CANCELLED
mimeType
string | null
required
byteSize
integer | null
required
Required range: x >= 0
fileName
string | null
required
resultUrl
string<uri> | null
required
errorCode
string | null
required
errorMessage
string | null
required
createdAt
string
required
updatedAt
string
required
source
enum<string>
required
Available options:
uploaded,
generated