List a contact's documents
Returns documents linked to the contact. By default only documents linked directly to the contact are returned; pass `scope=all` to also include documents attached to the contact's opportunities and orders.
Authorization
x-api-key<token>Your tenant API key
In: header
Path Parameters
identifierAccepts any of the following (matched in order): numeric ID, name, email, or CIF/tax identifier. The first matching contact is returned. Use the numeric ID for unambiguous lookups.
Query Parameters
scopestringdirect returns only documents linked straight to the contact. all additionally returns documents attached to the contact's opportunities and orders.
"direct"Value in: "direct" | "all"includestringPass metadata to populate mime_type and size_bytes for documents that predate metadata capture. This costs one storage lookup per row, so list responses are slower.
"metadata"per_pageintegerItems per page (1-100, default 15)
15Minimum: 1Maximum: 100pageintegerPage number
1Minimum: 1Paginated documents
Delete a document
**Irreversible.** Unlike contacts and opportunities, documents are not soft-deleted: the record, every contact/opportunity/order link, and the stored file are all removed. To remove a document from one parent while keeping the file, use the unlink/detach endpoints instead.
Upload a document to a contact
Uploads a file and links it to the contact. Maximum size 20 MB. Note that `Idempotency-Key` cannot fingerprint a multipart body, so re-using a key with a *different* file replays the first response rather than returning 422.