Upload an attachment

View as Markdown

Uploads a file to the organization. Send the file as multipart/form-data in the file field.

Scope: attachments:write

Authentication

AuthorizationBearer

Your ara_ API key from Settings > Ara API. Keys are capability-scoped: run, plugins:read, secrets:read, secrets:write, sessions:read, knowledge:read, repos:read, repos:write, reviews:read, reviews:write, analytics:read, org:read, org:write, attachments:read, attachments:write, plugins:write, guardrails:read, guardrails:write.

Path parameters

orgIdstringRequired

Organization id or slug. Resolve it with GET /v3/self.

Request

This endpoint expects a multipart form containing a file.
filefileRequired
The file to upload.

Response

The created attachment.
idstringOptional
namestringOptional
content_typestringOptional
size_bytesintegerOptional
urlstringOptional
A signed download URL for the file.
created_atdatetimeOptional

Errors

400
Bad Request Error