Surepass
Files

Upload PDF

POST
/api/v1/files/upload-pdf

Upload a PDF file (max size 50MB) for Esign.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Bearer token authentication. Paste your access token below.

Request Body

multipart/form-data
  1. body
file*file

The PDF file to upload (max 50MB).

Formatbinary

Response Body

File uploaded successfully.

application/json
  1. response

Standard response envelope.

status_code?integer

HTTP status code echoed in the response body.

message?string

Human-readable result message.

success?boolean

true when the request succeeded.

data?
Example Request
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
}