Files
Upload asset
POST
Upload an image asset (JPEG or PNG). Use the returned client_id as:
face_ref_file_idon a signer to enable face verification, or- the
valueof animageelement placed on the document.
bearerAuthheader
AuthorizationBearer <token>Bearer token authentication. Paste your access token below.
multipart/form-data- body
file*fileJPEG or PNG image to upload.
Format
binaryAsset 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-asset' \
-F 'file=string'Example Response
{
"data": {
"user_id": "user_xxx",
"client_id": "file_faceReferenceImage",
"name": "reference.png",
"mime": "image/png"
},
"status_code": 200,
"message": "Success",
"success": true
}