Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for API authentication. Format: Bearer <JWT_TOKEN> |
| Content-Type | Yes | multipart/form-data when using file upload, or application/json when using base64 or link |
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Optional | The sample document file to be analyzed via direct upload. Supported format: PDF or Image |
| base64 | string | Optional | Base64-encoded string of the sample image or PDF document. The string should represent a valid document. |
| link | string | Optional | A publicly accessible URL pointing to the sample image or PDF document. The URL must be directly downloadable and should not require authentication. |
| pages | string | Optional | Specific page number to process from the uploaded document. |
file, base64, or link. If none are provided, the request will fail.multipart/form-data encoding.application/json content type.application/json content type.file, the endpoint expects multipart/form-data encoding. When using base64 or link, send a JSON payload with Content-Type: application/json. The page parameter is optional in all cases.| Parameter | Type | Description |
|---|---|---|
| data | object | Container object holding the recipe creation metadata |
| data.recipe_id | string | Unique identifier for the newly created recipe. Use this ID to check processing status and execute the recipe on other documents. |
| data.pages | array | Array of page numbers detected or processed in the uploaded document (e.g., [1] for single page or specified page, [1, 2, 3] for multi-page) |
| data.use_pdf | boolean | Indicates whether the recipe is configured to process PDF documents. Always true for recipes created via this endpoint. |
| data.status | string | Current processing status. Possible values: "processing", "completed", "failed" |
| status_code | integer | HTTP status code (200 for successful submission) |
| success | boolean | Indicates if the request was successfully accepted |
| message | string | Human-readable message describing the result |
| message_code | string | Machine-readable code for the result status |
{
"data": {
"recipe_id": "recipe_builder_mhCDembui",
"pages": [
1
],
"use_pdf": true,
"status": "processing"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": null,
"status_code": 401,
"success": false,
"message": "Unauthorized access",
"message_code": "unauthorized"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ai-playground/recipe-builder' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""' \
--form 'base64=""' \
--form 'link=""' \
--form 'pages=""'{
"data": {
"recipe_id": "recipe_builder_mhCDembui",
"pages": [
1
],
"use_pdf": true,
"status": "processing"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}