POST
Upload one file into the session (BMA extension)

Authorizations

x-api-key
string
header
required

BMA organization API key.

Headers

x-bma-project-id
string

Project to operate in. Required when the key can read more than one project and the deployment has no default project. anthropic-workspace-id is accepted as an alias.

Path Parameters

session_id
string
required
Minimum string length: 1

Body

multipart/form-data
file
file
required

Response

The stored file.

id
string
required

Opaque, stable file id.

type
string
required
Allowed value: "file"
filename
string
required
mime_type
string
required

Derived from the filename extension; advisory.

size_bytes
integer<int64>
required
created_at
string<date-time>
required