Feel free to reach techsupport@surepass.io for any technical support or guidance.
processor_id that serves as a reference for executing the processing workflow and retrieving 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. Used to identify and manage the processor in your workflows. Must be a valid name type. |
| processor_type | String | Yes | Type of processor to create. Currently supported value: splitter - Used to split multi-document files into individual categorized documents. |
| file_id | String | No | Unique identifier of the file to process. Obtained from the File Upload API. Format: studio_file_<random_string>. Required if you want to process a specific file immediately. |
| categories | Array | No | Array of category objects defining document types for classification. Each category object must contain type (string) and description (string) fields. Used to train the processor on expected document types. |
| categories[].type | String | No | The document type identifier (e.g., "invoice", "receipt", "statement"). Used as the classification label. |
| categories[].description | String | No | Detailed description of the document type to help the AI understand classification criteria. |
| context | String | No | Additional contextual information to guide the processing logic. Describe what data should be extracted, specific business rules, or domain-specific knowledge to improve accuracy. |
{
"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"
}| 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 for processor execution and management operations. Format: studio_processor_<random_string> |
| data.processor_name | String | Name of the created processor as provided in the request |
| data.file_id | String | File ID associated with the processor (if provided in request) |
| data.filename | String | Original filename of the associated document |
| data.processor_type | String | Type of the created processor (e.g., "splitter") |
| data.created_at | String | Timestamp of processor creation in ISO 8601 format |
{
"data": {
"processor_id": "studio_processor_ZsyAumAbqPrniLzjjzUP",
"processor_name": "updated testing",
"file_id": "studio_file_lyoWkhcQyExjuhhzcqof",
"filename": "Pan_and_Aadhar_in_Same_PDF.pdf",
"processor_type": "splitter",
"created_at": "2025-12-18T07:31:16.906000"
},
"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"
}processor_id values in your database with appropriate access controls for future reference and execution.file_id required for processor creationcurl --location --request POST 'https://kyc-api.surepass.app/api/v1/sureparser/edit-processor' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"processor_id": "processor_id",
"processor_name": "Updated Passport processor",
"file_id" : "file_id",
"categories": [
{
"type": "passport",
"description": ""
}
],
"context": "Updated context for processing"
}'{
"data": {
"processor_id": "processor_configABCDEFGHIJKLMNOPQ",
"processor_name": "Updated 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
}