File Processing API
Trigger extraction and indexing for a previously uploaded file. Processing runs asynchronously through the existing pipeline.
POST/v1/files/:id/process
Authentication
Requires a secret API key passed as a Bearer token (Authorization: Bearer carrier_sk_…).
Example request
bash
curl -X POST https://api.carrieros.ai/v1/files/f7a2…/process \
-H "Authorization: Bearer carrier_sk_live_YOUR_KEY"Response
| Field | Type | Description |
|---|---|---|
| file_id | string | The file being processed. |
| status | string | Processing status — processing once enqueued. |
Example response
json
{
"success": true,
"data": {
"file_id": "f7a2…",
"status": "processing"
}
}Possible errors
| Code | HTTP | When it occurs |
|---|---|---|
| FILE_NOT_FOUND | 404 | No such file for this account/key. |
Notes
Once processing completes, the file's content becomes available to the Search API.