Check the progress of a process
Poll for process status and get metadata
You can check the status of your job by polling the API using the unique process ID (pid) with a GET request. The response will be in application/json format and will include, among other fields, the current status of the job:
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 of a request/response:
curl --location 'https://api.behavioralsignals.com/v5/clients/<your-project-id>/processes/<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 8 days ago
What’s Next