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.
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.
documentNumeric document ID
Document linked
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.
Unlink a document from a contact
Clears the contact link only. The document and the stored file are preserved and remain reachable through `GET /documents`. Use `DELETE /documents/{id}` to remove the file itself.