Files (Documents)
Create files
To create a document using the api, you must pass a url as an attribute of the document. The url must be a publicly accessible url where the endpoint exists. We will then grab the document from that url and upload it to Pipeline in the background.
The steps are as follows:
- POST document with url attribute. The document will be created, and the upload_status will be "pending".
- In the background, we will attempt to grab that document from the url sent, and upload it to Pipeline.
- If the upload was successful, the document's upload_status will be set to "complete"
- If the upload was unsuccessful for any reason, the upload_status will be set to "error", and the upload_status_error_message attribute will be populated with any errors we received when trying to retrieve the document from the url specified.
If the document did not upload successfully, you can try another url by using a PUT against the document id. See more below about updating documents.
post/documents
Request
- Base URL: https://api.pipelinecrm.com/api/v3
- URL: https://api.pipelinecrm.com/api/v3/documents
- Auth: one of:
- HTTP bearer
- HTTP bearer and API key in header app-key
- API key in query parameter api_key and API key in query parameter app_key
Request body
Example request
{
"document": {
"updated_at": "2026-09-01 14:22:07",
"title": "Acme-renewal-quote-v2.pdf",
"owner_id": 123,
"person_id": 123,
"deal_id": 123,
"company_id": 123,
"calendar_entry_id": 123,
"primary_association_id": 123,
"primary_association_type": "CalendarTask",
"url": "https://app.pipelinecrm.com/documents/7710"
}
}Response
Successful Response
Example response
{
"id": 7710,
"created_at": "2026-09-01 14:22:07",
"size_in_k": 102,
"owner": {
"id": 13,
"full_name": "Sam Okafor"
},
"person": {
"id": 8802,
"full_name": "Jane Rivera"
},
"deal": {
"id": 4521,
"name": "Acme Corporation - Q4 renewal"
},
"company": {
"id": 3310,
"name": "Acme Corporation"
},
"calendar_entry": {
"id": 5602,
"name": "Kickoff call with Acme"
},
"etag": "edd88e4bfa45c14de553c40d17c8f504",
"upload_status": 2,
"upload_status_error_message": "The server returned 404 Not Found",
"upload_state": "pending",
"document_tag_ids": [
123,
124
],
"document_tags": [
{
"id": 5,
"name": "Contract"
}
],
"public_link": "https://pipelinedeals.s3.amazonaws.com/document.txt",
"updated_at": "2026-09-01 14:22:07",
"title": "Acme-renewal-quote-v2.pdf",
"owner_id": 123,
"person_id": 123,
"deal_id": 123,
"company_id": 123,
"calendar_entry_id": 123,
"primary_association_id": 123,
"primary_association_type": "CalendarTask",
"url": "https://app.pipelinecrm.com/documents/7710"
}Changes
No recorded changes to this operation across all 1 revision of this API.