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.
Authorization
x-api-key<token>Your tenant API key
In: header
Request Body
multipart/form-dataRequiredfileMax 20 MB. Allowed types: pdf, doc, docx, xls, xlsx, csv, txt, png, jpg, jpeg, gif, webp. The extension must match the file's actual content.
"binary"namestringDefaults to the uploaded file's base name.
255document_category_idintegerDefaults to the workspace's general category.
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.
Document created and linked
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.
Link an existing document to a contact
A document carries at most one contact link. Linking a document that already belongs to a different contact returns 409 rather than moving it — unlink it from the current contact first. Idempotent: linking a document already linked to this contact succeeds and changes nothing.