Upload a file
Upload a file and associate it with a contact, company, or deal. The file must be sent as multipart form data with a maximum size of 10 MB. You can optionally link the file to a specific entity by providing the corresponding entity ID.
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Request
This endpoint expects a multipart form containing a file.
companyId
contactId
dealId
file
File data to create a file.
Response
Returns the created File with additional details
id
Unique file id
name
Name of uploaded file
contactId
Contact id of contact on which file is uploaded
dealId
Deal id linked to a file
companyId
Company id linked to a file
size
Size of file in bytes
createdAt
File created date/time
Errors
400
Bad Request Error