Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://kyc-api.surepass.io| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for authentication (JWT format) |
| Content-Type | Yes | multipart/form-data when sending a file; application/json when sending base64 or link |
| Parameter | Type | Required | Description |
|---|---|---|---|
| recipe_id | String | Yes | Identifier for the recipe to be executed (obtained from the "Create Recipe" endpoint) |
| file | File | No | The document file to be processed. Supported formats: PDF, JPG, JPEG, PNG. |
| base64 | String | No | Base64-encoded string of the document. |
| link | String | No | Publicly accessible URL pointing to the document file. The URL must be reachable and return a valid PDF or image file. |
file, base64, and link are each individually marked as not required, you must provide exactly one of the three as the document input source. If none are provided or multiple are provided, the request will fail.multipart/form-data content type.application/json content type.application/json content type. Ensure the link is accessible and not behind authentication.{
"recipe_id": "rec_veh_reg_12345",
"base64": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ..."
}{
"recipe_id": "rec_veh_reg_12345",
"link": "https://example.com/documents/registration_certificate.pdf"
}| Parameter | Type | Description |
|---|---|---|
| data.doc_url | String | URL of the uploaded/processed 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"
}link parameter, ensure the URL uses HTTPS and does not expose sensitive data through query parametersbase64 parameter, validate the encoded string on the server side before forwarding to the APIcurl --location --request POST 'https://kyc-api.surepass.app/api/v1/ai-playground/execute-recipe' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""' \
--form 'recipe_id=""' \
--form 'link=""' \
--form 'base64=""'{
"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"
}