Outbound calls
Get an outbound job
Permission
calls:readAuthenticationGET
Returns the current job and ordered attempts. Retry-After is present while status is scheduled, queued, claimed, reserving, dialing, ringing, active, retry_wait, or provider_unknown; it is absent for completed, failed, canceled, and expired jobs.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidCurrent job snapshot and attempts ordered by attempt_number.
application/json- response
job*Stable job-owned state and resource identifiers. Mutable agent, pool, phone-number, and trunk display enrichment is intentionally resolved through each canonical resource so it cannot change beneath this representation.
attempts*array<>curl -X GET 'https://api.kejue.co/v1/outbound-jobs/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "job": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2", "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "group_member_id": "03c46fef-cbe7-4bba-8c49-d666090d0932", "agent_version_id": "1c2a713c-7248-4a56-a9eb-0bdcb3a41741", "contact_id": "f245e2a3-e141-4d41-912c-b1c1f5bd5598", "destination_e164": "string", "number_pool_id": "3a45de3c-a4e6-4170-8728-80f90ed3f295", "phone_number_id": "54afc7b8-17df-415a-9fb0-21ee66219576", "trunk_id": "d1c0247b-6570-4df5-9107-7986a22149d1", "transport": "livekit_sip", "status": "scheduled", "priority": -100, "scheduled_at": "2019-08-24T14:15:22Z", "not_before": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "contact_timezone": "string", "attempt_count": 0, "consumed_attempt_count": 0, "max_attempts": 1, "variables": { "property1": "string", "property2": "string" }, "metadata": {}, "policy_context": { "schema_version": 1, "source": "organization", "org_policy_version": 0, "timezone": "string", "windows": [ { "weekdays": [ 1 ], "start": "09:00", "end": "17:00" } ] }, "retry_policy": { "version": 1, "source": "organization", "org_policy_version": 0, "destination_busy_backoff_seconds": [ 1 ], "destination_unavailable_backoff_seconds": [ 1 ], "destination_declined_backoff_seconds": [ 1 ], "retry_declined": true, "capacity_retry": { "minimum_seconds": 1, "maximum_seconds": 1, "jitter": true }, "ambiguous_provider_result": "reconcile_before_retry" }, "last_failure_class": "string", "last_provider_code": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "dncr": { "schema_version": 1, "requested": { "mode": "inherit", "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9" }, "enabled": true, "enforced": true, "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9", "policy_version": 0, "source": "organization" }, "dncr_result": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "decision": "allowed", "reason": "string", "checked_at": "2019-08-24T14:15:22Z", "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9", "credential_revision": 1, "transaction_id": "string", "policy": { "schema_version": 1, "requested": { "mode": "inherit", "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9" }, "enabled": true, "enforced": true, "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9", "policy_version": 0, "source": "organization" }, "detail": "string" } }, "attempts": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "attempt_number": 1, "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82", "phone_number_id": "54afc7b8-17df-415a-9fb0-21ee66219576", "trunk_id": "d1c0247b-6570-4df5-9107-7986a22149d1", "transport": "livekit_sip", "status": "reserved", "provider_call_id": "string", "sip_call_id": "string", "failure_class": "string", "provider_status_code": "string", "requested_at": "2019-08-24T14:15:22Z", "ringing_at": "2019-08-24T14:15:22Z", "answered_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ]}