Download OpenAPI specification:
API for managing communication jobs and related data
Returns a list of jobs based on specified filters
| offset | integer >= 0 Default: 0 Number of items to skip before starting to collect the result set |
| limit | integer [ 1 .. 100 ] Default: 10 Example: limit=10 Maximum number of items to return |
| use_case_id | string <uuid> Example: use_case_id=a1707291-55c6-4bed-abc0-5a1df748d4f1 Filter jobs by use case ID |
| status | Array of strings Items Enum: "pending" "in_progress" "completed" "failed" "scheduled" "canceled" Example: status=pending&status=scheduled Filter jobs by one or more statuses |
| input_params | string Example: input_params={"client_id":"42","phone_number":"+34666777888"} JSON-encoded object of input parameters to filter by. The keys must match the use case input parameter definitions. |
| created_after | string <date-time> Example: created_after=2025-01-01T00:00:00Z Filter jobs created after this timestamp (inclusive). ISO 8601 format. All dates are normalized to UTC. |
| created_before | string <date-time> Example: created_before=2025-01-31T23:59:59Z Filter jobs created before this timestamp (inclusive). ISO 8601 format. All dates are normalized to UTC. |
| started_after | string <date-time> Example: started_after=2025-01-15T10:00:00Z Filter jobs that started after this timestamp (inclusive). ISO 8601 format. All dates are normalized to UTC. |
| started_before | string <date-time> Example: started_before=2025-01-15T14:00:00Z Filter jobs that started before this timestamp (inclusive). ISO 8601 format. All dates are normalized to UTC. |
| finished_after | string <date-time> Example: finished_after=2025-01-15T14:30:00Z Filter jobs that finished after this timestamp (inclusive). ISO 8601 format. All dates are normalized to UTC. |
| finished_before | string <date-time> Example: finished_before=2025-01-15T15:00:00Z Filter jobs that finished before this timestamp (inclusive). ISO 8601 format. All dates are normalized to UTC. |
[- {
- "id": "d85faf05-3605-4b77-94f1-75ae82b87325",
- "created_at": "2025-03-03T10:23:39.650Z",
- "scheduled_at": "2025-03-03T14:30:00.000Z",
- "started_at": "2025-03-03T14:30:05.123Z",
- "finished_at": "2025-03-03T14:31:12.456Z",
- "channel": "voice",
- "direction": "Inbound",
- "language": "es-ES",
- "duration": "53.66",
- "params": { },
- "extraction": {
- "client_id": "string",
- "client_name": "string",
- "client_plate": 1234
}, - "classification": {
- "tag": "string",
- "reasoning": "string"
}, - "metadata": {
- "to": "+34919023811",
- "from": "+34666777888"
}, - "status": "completed",
- "use_case_id": "a1707291-55c6-4bed-abc0-5a1df748d4f1",
- "use_case_name": "Inbound Principal"
}
]Creates a new job for processing based on a use case
| use_case_id required | string <uuid> Unique identifier of the use case to apply |
| channel required | string Value: "voice" Communication channel to use for the job |
| language required | string Enum: "es-ES" "en-US" Language code for the job. The code for English (United States) 'en-US'. The prefix, 'en', is a language code following the ISO 639-1 standard. The suffix, 'US', is a country code following the ISO 3166-1 Alpha-2 standard. |
boolean or string Default: false Controls scheduler behavior. Accepts boolean true/false or string 'true', 'false', '1', '0'.
| |
| scheduled_at | string <date-time> Specific date and time to schedule the job (ISO 8601 format).
|
| params required | object Parameters specific to the use case. The structure depends on the use case's input parameter definitions. |
{- "use_case_id": "a1707291-55c6-4bed-abc0-5a1df748d4f1",
- "channel": "voice",
- "language": "es-ES",
- "skip_scheduler": false,
- "scheduled_at": "2024-03-25T14:30:00+01:00",
- "params": {
- "phone_number": "+34666777888",
- "client_id": "12345"
}
}{- "data": {
- "id": "06e5d73b-e952-49a4-a9af-941f11667289",
- "created_at": "2025-05-08T15:40:01.163Z",
- "scheduled_at": "2025-05-08T16:00:00.000Z",
- "started_at": null,
- "finished_at": null,
- "channel": "voice",
- "language": "es-ES",
- "params": {
- "client_id": "42",
- "phone_number": "+34666777888"
}, - "status": "scheduled",
- "use_case_id": "a121ed46-9710-4949-b933-f78d87ed17dd"
}
}Returns details for a single job by its ID
| job_id required | string <uuid> Example: d85faf05-3605-4b77-94f1-75ae82b87325 Unique identifier of the job to retrieve |
{- "id": "d85faf05-3605-4b77-94f1-75ae82b87325",
- "created_at": "2025-03-03T10:23:39.650Z",
- "scheduled_at": "2025-03-03T14:30:00.000Z",
- "started_at": "2025-03-03T14:30:05.123Z",
- "finished_at": "2025-03-03T14:31:12.456Z",
- "channel": "voice",
- "direction": "Inbound",
- "language": "es-ES",
- "duration": "53.66",
- "params": { },
- "extraction": {
- "client_id": "string",
- "client_name": "string",
- "client_plate": 1234
}, - "classification": {
- "tag": "string",
- "reasoning": "string"
}, - "metadata": {
- "to": "+34919023811",
- "from": "+34666777888"
}, - "status": "completed",
- "use_case_id": "a1707291-55c6-4bed-abc0-5a1df748d4f1",
- "use_case_name": "Inbound Principal",
- "transcript": [
- {
- "role": "assistant",
- "content": "Hi, how can I help you today?"
}
], - "interactions": [
- {
- "templateId": "plate-and-id-number",
- "channel": "whatsapp",
- "status": "completed",
- "params": {
- "agent_name": "Peter",
- "company_name": "Acme Inc."
}, - "values": {
- "plate_number": "1234BBB",
- "id_card_number": "12345"
}
}
]
}Returns the URL of the recording of a specific job ID, if available
| job_id required | string <uuid> Example: d85faf05-3605-4b77-94f1-75ae82b87325 Unique identifier of the job to retrieve |
{- "expires": 3600
}Cancels a job that is in scheduled status and has not been executed yet. Only jobs with status 'scheduled' can be cancelled.
| job_id required | string <uuid> Example: d85faf05-3605-4b77-94f1-75ae82b87325 Unique identifier of the job to cancel |
{- "data": {
- "id": "06e5d73b-e952-49a4-a9af-941f11667289",
- "status": "canceled"
}
}