Feel free to reach techsupport@surepass.io for any technical support or guidance.
processor_id that can be used to execute the processing workflow and retrieve results.Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer JWT token for authentication. Format: Bearer <your_jwt_token> |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| processor_name | String | Yes | Name of the processor. This should be a descriptive name that helps identify the processor's purpose. Must be a valid name format. |
| processor_type | String | Yes | Type of processor to create. Defines the processing workflow. Valid values include: splitter (for splitting multi-document files into separate documents). |
| file_id | String | No | File identifier obtained from the File Upload API. Format: studio_file_<random_string>. Required when creating a processor for a specific file. |
| categories | Array | No | Array of category objects defining document types for classification. Each category object contains type (category identifier) and description (detailed description of the category). Used for intelligent document classification. |
| context | String | No | Contextual information to guide the processor's AI logic. Provide business-specific instructions, field extraction requirements, or processing guidelines to enhance accuracy. |
| folder_id | String | No | Folder identifier for organizing processors. Format: studio_folder_<random_string>. Use this to group related processors for better organization. |
{
"processor_name": "sample",
"processor_type": "splitter",
"file_id": "studio_file_lyoWkhcQyExjuhhzcqof",
"categories": [
{
"type": "invoice",
"description": "Invoice documents with billing details"
},
{
"type": "receipt",
"description": "Payment receipts and acknowledgments"
}
],
"context": "Process financial documents and extract key fields like amount, date, vendor name",
"folder_id": null
}| Parameter | Type | Description |
|---|---|---|
| success | Boolean | Indicates whether the API request was successful (true) or failed (false) |
| status_code | Integer | HTTP status code of the response (200 for success) |
| message | String | Human-readable message describing the result of the operation |
| message_code | String | Machine-readable code for the operation result (e.g., "success") |
| data | Object | Container object holding the response payload |
| data.processor_id | String | Unique identifier for the created processor. Use this ID to execute processing workflows. Format: studio_processor_<random_string> |
| data.processor_name | String | Name of the created processor as provided in the request |
| data.file_id | String | File identifier associated with this processor |
| data.filename | String | Original filename of the document associated with this processor |
| data.processor_type | String | Type of processor created (e.g., "splitter") |
| data.created_at | String | ISO 8601 timestamp indicating when the processor was created |
{
"data": {
"processor_id": "studio_processor_ZsyAumAbqPrniLzjjzUP",
"processor_name": "testing",
"file_id": "studio_file_lyoWkhcQyExjuhhzcqof",
"filename": "Pan_and_Aadhar_in_Same_PDF.pdf",
"processor_type": "splitter",
"created_at": "2025-12-18T07:31:16.906553"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"success": false,
"status_code": 401,
"message": "Unauthorized access. Invalid or expired token.",
"message_code": "unauthorized"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/sureparser/create-processor' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"processor_name": "Passport",
"processor_type": "splitter",
"file_id": "file_id",
"categories": [
{
"type": "invoice",
"description": "Invoice documents with billing details"
},
{
"type": "receipt",
"description": "Payment receipts and acknowledgments"
}
],
"context": "Process financial documents and extract key fields like amount, date, vendor name"
}'{
"data": {
"processor_id": "processor_configABCDEFGHIJKLMNOPQ",
"processor_name": "Invoice Processor",
"file_id": "fileABCDEFGHIJKLMNOPQRSTU",
"filename": "sample.pdf",
"processor_type": "splitter",
"created_at": "2024-12-13T12:00:00.000000"
},
"status_code": 200,
"message": "Success",
"success": true
}