Upload Documents

Use this API call to upload documents to a record ID in Shape

POST /upload/lead/document

To upload a document for a lead, send an authorized POST request to  https://secure-api.setshape.com/api/upload/lead/document

Parameters

Upload documents to record files with these parameters:

  • leadid

    This is required in order for this API call to work. This is the Shape lead ID

  • document

    Attach the document to upload here

Request Header

The authentication token must be passed in the request header for every API request. You can find and generate your authentication token in your system settings page under “API Integrations.”

Request Body

JSON request body formatting example:

{
  "document": // Attach Document to upload,
  "leadid": "60679",
}

Response

Upon success, the server returns HTTP codes and messages in the header with some additional elements and properties that are set by the server, such as id.

{
    "message": "Document uploaded successfully",
    "lead_id": "123"
}