post/messages/{messageId}/attachments

Request

  • Base URL: https://api.useanima.sh/v1
  • URL: https://api.useanima.sh/v1/messages/{messageId}/attachments
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

messageIdstring required

ID of the message to attach the file to

Request body

filenamestring required

Filename for the attachment (max 255 characters)

mimeTypestring required

MIME type of the file being uploaded

sizeBytesinteger required

File size in bytes (must be greater than zero)

Response

OK

idstring required

Unique identifier of the attachment

filenamestring required

Original filename of the attachment

mimeTypestring required

MIME type of the attachment (e.g. application/pdf)

sizeBytesinteger required

File size in bytes

storageKeystring required

Internal storage key for retrieving the file

urlstring uri nullable required

Pre-signed download URL, or null if not yet generated

createdAtstring date-time required

Timestamp when the attachment was created

scanStatus'PENDING' | 'CLEAN' | 'FLAGGED' | 'BLOCKED' required

Content-scan verdict. BLOCKED attachments cannot be downloaded — inspect before fetching bytes.

detectedMimeTypestring nullable required

MIME type inferred from magic bytes; may differ from the declared mimeType

Changes

No recorded changes to this operation across all 1 revision of this API.