1. Endpoint
PUT/Image
2. Authentication and headers
This API requires the request body to be sent asmultipart/form-data.
| Header | Value | Required |
|---|---|---|
x-api-key | Your API key | Required |
Content-Type | multipart/form-data | Required |
When using
curl’s --form option or Python requests library’s files parameter, the Content-Type: multipart/form-data header and boundary value are set automatically. Setting the header manually may omit the boundary value and cause the request to fail.3. Request parameters
All parameters are sent asmultipart/form-data fields.
Unique ID of the submission
Project administrator’s account (must be registered in the dashboard)
Type of ID document. Required when submitting
idImage or idBackImage.Front side of the ID document, Base64 encoded
Back side of the ID document, Base64 encoded
Selfie image, Base64 encoded
Address document image, Base64 encoded
4. Request example
When using the Python
requests library’s files parameter, pass text fields as (None, "value") tuples. The first element None indicates no filename, which correctly sends text data as multipart/form-data fields.5. Response
5-1. Success response
result.json
5-2. Response data
| Field | Description | Type |
|---|---|---|
message | Success message | String |
5-3. Error response
result.json
5-4. Error codes
| Error Code | Message | Description |
|---|---|---|
invalid_payload | Fail to parse the input data. | The format of the input data is invalid. |
missing_data | Required input data is missing. | Some required fields are missing. |
invalid_project | Cannot find project info. | The project ID does not exist. |
invalid_project | Invalid project. | The project status is invalid. |
invalid_admin | Invalid admin. | The administrator is invalid. |
invalid_submission | Invalid submission. | The submission ID is invalid. |
invalid_data | At least one image parameter is required. | No image was submitted. |
missing_data | The idType is required when submit idImage or idBackImage. | The idType is missing when submitting an ID image. |
invalid_idType | Invalid IdType. | The idType provided is invalid. |
processing_error | Failed to put image. | An unknown error occurred during processing. |