Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | Bearer token for authentication (JWT format) |
Content-Type | Yes | Must be multipart/form-data to support file upload |
Parameter | Type | Required | Description |
---|---|---|---|
recipe_id | String | Yes | Identifier for the recipe to be executed (obtained from "Create Recipe" endpoint) |
{
"recipe_id": "rec_veh_reg_12345"
}
Parameter | Type | Description |
---|---|---|
data.doc_url | String | URL of the uploaded document |
data.response.name | String | Full name of the member |
data.response.member_id | String | Unique member identification number |
data.response.phone | String | Member's contact phone number |
data.response.address | String | Member's complete address |
data.response.code | String | Optional code (if present) |
data.response.hair | String | Optional hair detail (if present) |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the request was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"doc_url": "https://temp-surepass-bucket.s3.amazonaws.com/rahul/ai_playground/recipe_executor_dQDyzpegrhceeoZtycgu/recipe_doc_1747203185677188.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY5K3QRM5JDBTSGYP%2F20250514%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20250514T061311Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=6d1b1710872b00ed6e08a098ce76e9de9859f61e6c56ccad71cbf721a219d7e0",
"response": {
"name": "Daniel Gallego",
"member_id": "123-456-7890",
"phone": "+123-456-7890",
"address": "123 Anywhere St., Any City, ST 12345",
"code": null,
"hair": null
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 401,
"success": false,
"message": "Unauthorized access",
"message_code": "unauthorized"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ai-playground/execute-recipe' \
--header 'Content-Type: application/json' \
--data-raw '{
"recipe_id": "rec_veh_reg_12345"
}'
{
"data": {
"doc_url": "https://temp-surepass-bucket.s3.amazonaws.com/rahul/ai_playground/recipe_executor_dQDyzpegrhceeoZtycgu/recipe_doc_1747203185677188.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY5K3QRM5JDBTSGYP%2F20250514%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20250514T061311Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=6d1b1710872b00ed6e08a098ce76e9de9859f61e6c56ccad71cbf721a219d7e0",
"response": {
"name": "Daniel Gallego",
"member_id": "123-456-7890",
"phone": "+123-456-7890",
"address": "123 Anywhere St., Any City, ST 12345",
"code": null,
"hair": null
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}