Upload a file to a one-time URL
PUT
https://anjal.app/uploads/{uploadId}For agents View as Markdown
The receiver for URLs from attachment-uploads. No API key: the t token
in the query string is the credential. The body is the raw file bytes.
A second upload to the same URL is refused, and so is any wrong or expired
token, with the same 404.
Path parameters
uploadIdrequired string |
Query parameters
trequired string | Upload token |
Request body
Content-Type: application/octet-stream
string
Responses
200application/jsonStored
uploadedboolean | |
uploadIdstring | format: uuid |
filenamestring | |
sizeBytesinteger |
400Already used
404Not valid or expired
413Larger than the slot allows
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.