API Reference
List an opportunity's documents
Returns the documents attached to this opportunity. A document may be attached to several opportunities, so the same document can appear under more than one.
Authorization
x-api-key<token>Your tenant API key
In: header
Path Parameters
idRequired
integerQuery Parameters
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.
Value in:
"metadata"per_pageintegerItems per page (1-100, default 15)
Default:
15Minimum: 1Maximum: 100pageintegerPage number
Default:
1Minimum: 1Paginated documents
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.
Upload a document to an opportunity
Uploads a file and attaches it to the opportunity. Maximum size 20 MB.