Get a one-time URL to upload a file to
POST
https://anjal.app/v1/inboxes/{id}/attachment-uploadsFor agents View as Markdown
For attaching a real file without putting its bytes in a request an agent
has to write out. Returns an uploadUrl. PUT the raw file to it with no
API key, then attach it by passing { "uploadId": "..." } in attachments
on a send, reply, reply-all, forward or draft call. One file, up to 10 MB,
valid for 60 minutes, and single-use in both directions: it can be uploaded
to once and attached once.
Path parameters
idrequired string | Inbox UUID |
Request body
Content-Type: application/json
filenamerequired string | |
contentTypestring | |
sizeBytesinteger | If known, so an oversized file is refused before upload. |
Responses
201application/jsonUpload slot created
uploadIdstring | format: uuid |
uploadUrlstring | format: uri |
expiresAtstring | format: date-time |
maxBytesinteger | |
filenamestring | |
howTostring |
Authentication
Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.