Skip to main content
POST
Get a signed URL to upload a chat image or document

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).

Path Parameters

session_id
string
required

Body

application/json
content_type
string
required

Attachment MIME type — an image (image/png, image/jpeg, image/gif, image/webp) or a document (e.g. application/pdf, text/plain, text/csv, Word/Excel).

filename
string | null

Original filename, used only for blob readability.

Response

Success.

data
AttachmentUploadUrlResponse · object
required

A short-lived, single-blob upload grant. PUT the file bytes to upload_url with headers x-ms-blob-type: BlockBlob and x-ms-blob-content-type: <mime>, then reference blob_path in the attachments of POST /chat/sessions/<id>/messages.

meta
object
required