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 | Must be set to multipart/form-data for file upload |
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | The sample document file to be analyzed. Supported format: PDF. Maximum file size may vary based on your plan. The file should be a representative example of the document type you want to process. |
| page | string | No | Specific page number to process from the uploaded document. Valid range: 1 to 100. If not specified, all pages will be processed. Use this parameter to target specific pages in multi-page documents for more focused field extraction. |
| 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=@""'{
"data": {
"recipe_id": "recipe_builder_mhCDembui",
"pages": [
1
],
"use_pdf": true,
"status": "processing"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}