Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for authentication (JWT) |
| Content-Type | Yes | Must be application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| folder_id | string | Yes | Unique identifier of the folder to delete. This value is obtained from create-folder API |
| delete_processors | boolean | Yes | If true, all processors in the folder will also be deleted; if false, they will be retained |
{
"folder_id": "studio_folder_ABC123XYZ",
"delete_processors": true
}| Parameter | Type | Description |
|---|---|---|
| data | object | Contains details of the deleted folder |
| ββ folder_id | string | Unique identifier for the deleted folder |
| ββ name | string | Name of the deleted folder |
| ββ processor_count | int | Number of processors in the folder at deletion |
| ββ created_at | string | ISO timestamp of folder creation |
| status_code | int | HTTP status code (e.g., 200 for success) |
| success | bool | Indicates if the request was successful |
| message | string | Human-readable status message |
| message_code | string | Machine-readable status code |
{
"data": {
"folder_id": "studio_folder_ABC123XYZ",
"name": "Financial Documents",
"processor_count": 0,
"created_at": "2025-12-18T10:28:54.816000"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": null,
"status_code": 404,
"success": false,
"message": "Folder not found",
"message_code": "folder_not_found"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/sureparser/delete-folder' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"folder_id": "folder_id",
"delete_processors": false
}'{
"data": {
"folder_id": "processor_folderABCDEFGHIJKLMNOP",
"name": "Financial Documents",
"created_at": "2024-12-13T12:00:00.000000"
},
"status_code": 200,
"message": "Success",
"success": true
}