Check the progress of a process
Poll for process status and get metadata
You can then poll about the status of your job using the unique process id via a GET process.The response of this call is a media type/JSON containing (among other fields) the status of your job, e.g., 0: pending, 1: processing, 2: completed.
Status possible values | Status description |
---|---|
0 | Pending - the audio has been submitted for processing |
1 | Processing started - The audio is being processed |
2 | Processing complete - The audio has been processed and results are available |
-1, -3 | Server error while processing the audio |
-2 | Insufficient credits - Increase your balance in the Billing section of the console |
Example request/response:
curl --location 'https://api.behavioralsignals.com/v5/clients/<your-project-id>/process/<pid>' \
--header 'X-Auth-Token: your-api-token'
{
"pid": 1,
"cid": "<your-project-id>",
"name": "my-awesome-audio",
"status": 2,
"statusmsg": "Processing Complete.",
"duration": 5.03,
"datetime": "2024-07-19T12:08:32.507Z",
"meta": ""
}
Updated 5 months ago
What’s Next