API Reference
Upload a document to an opportunity
Uploads a file and attaches it to the opportunity. Maximum size 20 MB.
Authorization
x-api-key<token>Your tenant API key
In: header
Request Body
multipart/form-dataRequiredfileRequired
fileMax 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.
Format:
"binary"namestringDefaults to the uploaded file's base name.
Maximum length:
255document_category_idintegerDefaults to the workspace's general category.
Path Parameters
idRequired
integerDocument created and attached
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.
Attach an existing document to an opportunity
A document may be attached to any number of opportunities. Idempotent — attaching twice produces a single link.