Skip to main content

Upload Customer Document

POST 

/api/customers/:customer/documents

Attaches a file to a customer. Send as multipart/form-data.

Required scope: customers:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Accepted file types: pdf, jpg, jpeg, png, gif, webp, heic, doc, docx, xls, xlsx, csv, txt, html, htm, eml, msg, zip. Maximum size: 20 MB. The file type is decided by the filename extension; files whose contents are an executable or script are rejected whatever they are named.

Requires the customers:read scope (list, download) or customers:write scope (upload, update, delete), and permission to view or edit customers. A user limited to their own customers gets 404 for any other customer.

Authentication: Requires Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type