POST - Upload Files
Upload files to a lead
Upload files to a LEAD
Note: Lead ID from the create lead response is required to upload files to Bizmate.
Method: POST
Endpoint: /attachments/new
Maximum Length: 255
Headers:
Content-Type
application/json
Authorization
Bearer <API TOKEN>
Body:
entityType
LEAD
text
LEAD
Identify the entity type
entityId
LEAD_ID
text
7e8a17fd-3577-48f4-a0e4-6cb83ea204ba
Identifier for a LEAD
attachments[0][type]
text, Enum: [ Bank Statements, Proof of Identity or ID, Image ]
Bank Statements
Use the exact values as mentioned in the type
attachments[0][fileName]
text
Some Text
Name of the company.
attachments[0][file]
text
Some Text
File to be attached(only one attachment)
Request Body Example:
To upload multiple files, use the format illustrated in the Multiple Files Upload table, ensuring each file entry follows the structure shown, incrementing the index for each attachment.
Type : form-data
Single File Upload:
entityType
text
LEAD
entityId
text
2e22bca2-b98e-467c-b9d
attachments[0][type]
text
Bank Statements
attachments[0][fileName]
text
attachments[0][file]
file
transaction.pdf
Multiple Files Upload:
entityType
text
LEAD
entityId
text
2e22bca2-b98e-467c-b9d
attachments[0][type]
text
Bank Statements
attachments[0][fileName]
text
attachments[0][file]
file
transaction.pdf
attachments[1][type]
text
Proof of Identity or ID
attachments[1][type]
text
Drivers_License_Front
attachments[1][type]
file
license.jpg
Response
Last updated