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 authentication using JWT |
| Content-Type | Yes | application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | String | Yes | Name of the recipe for identification purposes |
| keys | Object | Yes | Object containing the fields to be extracted from documents |
| model | Enum | No | AI Model (choices openai_mini, openai_v4, gemini) |
| tag | Enum | No | Tag (choices general, fintech, healthcare, id, verification, medical, logistics, travel, real_estate) |
| description | String | Yes | Detailed description of what information should be extracted from the document |
| preference_type | Enum | No | Preference Type (choices latency, price, throughput) |
| pages | Integer | No | Pages To Process |
| use_pdf | Boolean | No | Use PDF |
| Parameter | Type | Description |
|---|---|---|
| name | String | Name |
| member_id | String | Member ID |
| phone | String | Phone |
| address | String | Vehicle owner's full address |
{
"keys": {
"name": "str",
"member_id": "int",
"phone": "str",
"address": "str"
},
"description": "The image displays a student ID card from the Ingoude Academy. It includes details like name, member ID, phone number, and address.",
"name": "Student ID Card Details"
}| Parameter | Type | Description |
|---|---|---|
| recipe_id | String | Recipe ID |
| keys | Object | Keys |
| description | String | Description |
| model | String | Model |
| name | String | Name |
| created_at | String | Created At (YYYY-MM-DD format) |
| tag | String | Recipe Tag |
| preference_type | String | Preference Type (optional) |
| pages | List | List of page numbers |
| use_pdf | Boolean | Use PDF |
| doc_url | String | Document URL |
{
"data": {
"recipe_id": "recipe_fxwFeYqwpVzjunaDbAEM",
"keys": {
"name": "str",
"member_id": "int",
"phone": "str",
"address": "str"
},
"description": "The image displays a student ID card from the Ingoude Academy. It includes details like name, member ID, phone number, and address.",
"model": null,
"name": "Student ID Card Details",
"created_at": "2025-05-14",
"tag": "general",
"preference_type": "latency",
"pages": [],
"use_pdf": false,
"doc_url": null
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 401,
"success": false,
"message": "Unauthorized access. Invalid or missing authentication token.",
"message_code": "unauthorized"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ai-playground/create-recipe' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"keys": {
"name": "str",
"member_id": "int",
"phone": "str",
"address": "str"
},
"description": "The image displays a student ID card from the Ingoude Academy. It includes details like name, member ID, phone number, and address.",
"name": "Student ID Card Details"
}'{
"data": {
"recipe_id": "recipe_fxwFeYqwpVzjunaDbAEM",
"keys": {
"name": "str",
"member_id": "int",
"phone": "str",
"address": "str"
},
"description": "The image displays a student ID card from the Ingoude Academy. It includes details like name, member ID, phone number, and address.",
"model": null,
"name": "Student ID Card Details",
"created_at": "2025-05-14",
"tag": "general",
"preference_type": "latency",
"pages": [],
"use_pdf": false,
"doc_url": null
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}