Link Document to Entity
Documents
Link Document to Entity
Attach a document to a contact, company, deal, event, matter, or task
POST
Link Document to Entity
Request
Path Parameters
Document UUID.
Headers
Optional UUID for retry deduplication.
Body Parameters
One of
contact, company, deal, event, matter, or task.UUID of the target entity.
Optional relationship label (e.g.
signed, draft, evidence). Free-form string, max 64 characters.Response
(document_id, entity_type, entity_id) triple returns the existing link rather than creating duplicates. Responses include X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.
Example Response
Errors
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Unsupported entity_type or missing entity_id |
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing write:documents permission |
| 404 | not_found | Document or entity does not exist |
| 429 | rate_limited | Rate limit exceeded |