Files
Upload PDF
POST
Upload a PDF file (max size 50MB) for Esign.
bearerAuthheader
AuthorizationBearer <token>Bearer token authentication. Paste your access token below.
multipart/form-data- body
file*fileThe PDF file to upload (max 50MB).
Format
binaryFile uploaded successfully.
application/json- response
Standard response envelope.
status_code?integerHTTP status code echoed in the response body.
message?stringHuman-readable result message.
success?booleantrue when the request succeeded.
data?curl -X POST 'https://prod-esign-api-v2.surepass.app/api/v1/files/upload-pdf' \ -F 'file=string'Example Response
{
"data": {
"user_id": "user_xxx",
"client_id": "file_xxx",
"name": "Form_26.pdf",
"mime": "application/pdf"
},
"status_code": 200,
"message": "Success",
"success": true
}