Skip to main content
POST
Create attachment

Authorizations

Authorization
string
header
required

Bearer authentication: send your API key, agent key, or OAuth access token as Authorization: Bearer <credential>.

Headers

Idempotency-Key
string
required

Unique key for safely retrying a request without creating duplicates.

Maximum string length: 255
X-Instance-ID
string | null

Caller-chosen identifier for the agent run, session, or conversation, required when an agent moves money.

Maximum string length: 1024

Body

multipart/form-data
transactionId
string
required

The owning business’s outgoing transaction ID (txn_*)

Pattern: ^txn_[0-9a-f]{32}$
file
file
required

PDF, PNG, or JPEG. Maximum 20 MB (20,000,000 bytes).

customerPartyId
string

Customer party to act for; omit to act for your own party

Pattern: ^pty_[0-9a-f]{32}$
sourceReference
string

Optional opaque reference to the source document; does not grant access

Maximum string length: 1024

Response

Successful Response

data
object
required