Attach a file to a record. This endpoint uses multipart form-data, not JSON.
POSThttps://secure-api.setshape.com/api/upload/lead/document/{crmid}
Replace
{crmid} with your Shape system ID — found on the API Integrations page. Every request also needs your auth header — see Using Shape APIs.This request must be
multipart/form-data. The implementation accepts document or file as the file field.Body parameters
| Field | Description |
|---|---|
leadid |
Shape record ID. |
document |
File to upload (preferred public field name). |
Example request
curl -X POST https://secure-api.setshape.com/api/upload/lead/document/{crmid}
-H "Authorization: {YOUR_API_AUTHORIZATION_KEY}"
-F "leadid=123"
-F "document=@/path/to/file.pdf"