Skip to main content
POST
Upload a compliance file

Authorizations

Authorization
string
header
required

Bearer token authentication. Pass your API key as Authorization: Bearer sk_.... See Authentication for keys, scopes, and sandbox vs production.

Headers

X-Account-Id
string

The connected account the file is for, e.g. acct_3Wq8ZfT1yHnJ5sVe. Send it whenever the file is for a connected account. Without it the file is stored under your own platform account, and attaching it to a connected account returns 404 NOT_FOUND with Attachment not found.

Body

multipart/form-data
file
file
required

The file to upload. JPEG, PNG or PDF, up to 10 MB.

purpose
enum<string>
required

How the file may be used. A file can only be attached where its purpose fits.

Available options:
identity_document,
account_requirement

Response

The file was stored.