Surepass
Files

Upload PDF

View as Markdown
POST
/api/v1/files/upload-pdf

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

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token authentication — paste your access token below.

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

file*file

The PDF file to upload (max 50MB).

Formatbinary

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/files/upload-pdf" \  -F file="string"
{  "data": {    "user_id": "user_xxx",    "client_id": "file_xxx",    "name": "Form_26.pdf",    "mime": "application/pdf"  },  "status_code": 200,  "message": "Success",  "success": true}