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 application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | string | Yes | Unique identifier for the recipe execution instance. This is returned when a document is submitted for processing. Example: recipe_executor_clOSPz |
| Parameter | Type | Description |
|---|---|---|
| data | object | Container object holding the execution results and metadata |
| data.recipe_id | string | Identifier of the recipe used for document processing |
| data.client_id | string | Unique identifier for this execution instance, matching the requested client_id |
| data.response | object | Extracted data from the document as key-value pairs matching the recipe schema |
| data.response.{field_name} | string/number/boolean | Extracted values for each field defined in the recipe. Field names and types vary based on the recipe schema |
| data.status | string | Current processing status. Possible values: "completed", "processing", "failed" |
| status_code | integer | HTTP status code (200 for success) |
| success | boolean | Indicates if the request was successful |
| message | string | Human-readable message describing the result |
| message_code | string | Machine-readable code for the result status |
{
"data": {
"recipe_id": "recipe_KvUqRpa",
"client_id": "recipe_executor_clOSPz",
"response": {
"academy_name": "INGOUDE ACADEMY",
"academy_address": "123 Anywhere St., Any City, ST 12345",
"card_type": "Student ID Card",
"photo": "null",
"name": "Daniel Gallego",
"member_id": "123-456-7890",
"phone": "+123-456-7890",
"address": "123 Anywhere St., Any City, ST 12345"
},
"status": "completed"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}response object contains dynamic fields based on the recipe schema used for processingresponse object correspond to the keys defined in the recipe{
"data": null,
"status_code": 404,
"success": false,
"message": "Execution not found",
"message_code": "execution_not_found"
}curl --location --request GET 'https://kyc-api.surepass.app/api/v1/ai-playground/fetch-executed-recipe?client_id=recipe_executor_clOSPzo' \
--header 'Authorization: Bearer <token>'{
"data": {
"recipe_id": "recipe_KvUqRpa",
"client_id": "recipe_executor_clOSPz",
"response": {
"academy_name": "INGOUDE ACADEMY",
"academy_address": "123 Anywhere St., Any City, ST 12345",
"card_type": "Student ID Card",
"photo": "null",
"name": "Daniel Gallego",
"member_id": "123-456-7890",
"phone": "+123-456-7890",
"address": "123 Anywhere St., Any City, ST 12345"
},
"status": "completed"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}