curl --request GET \
--url 'https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082' \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
const response = await fetch('https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082', {
method: 'GET',
headers: { Authorization: `Bearer ${process.env.NIXFLEX_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
// Handle the private result without logging it.
import os, json
from urllib.request import Request, urlopen
request = Request('https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082', method='GET',
headers={'Authorization': 'Bearer ' + os.environ['NIXFLEX_API_KEY']})
with urlopen(request, timeout=30) as response:
result = json.load(response)
# Handle the private result without logging it.
$headers = @{ Authorization = "Bearer $env:NIXFLEX_API_KEY" }
$result = Invoke-RestMethod -Method GET -Uri 'https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082' -Headers $headers -DisableKeepAlive
# Handle $result privately.
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "pending",
"call_id": null,
"reason": null
}
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "accepted",
"call_id": "call_example",
"reason": null
}
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "rejected",
"call_id": null,
"reason": "outside_hours"
}
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "unknown",
"call_id": null,
"reason": null
}
Calls
Read an outbound call request
Check a Nixflex outbound request by its saved UUID. Keep pending and unknown outcomes distinct and avoid starting a duplicate call.
GET
/
calls
/
outbound
/
requests
/
{request_id}
curl --request GET \
--url 'https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082' \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
const response = await fetch('https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082', {
method: 'GET',
headers: { Authorization: `Bearer ${process.env.NIXFLEX_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
// Handle the private result without logging it.
import os, json
from urllib.request import Request, urlopen
request = Request('https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082', method='GET',
headers={'Authorization': 'Bearer ' + os.environ['NIXFLEX_API_KEY']})
with urlopen(request, timeout=30) as response:
result = json.load(response)
# Handle the private result without logging it.
$headers = @{ Authorization = "Bearer $env:NIXFLEX_API_KEY" }
$result = Invoke-RestMethod -Method GET -Uri 'https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082' -Headers $headers -DisableKeepAlive
# Handle $result privately.
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "pending",
"call_id": null,
"reason": null
}
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "accepted",
"call_id": "call_example",
"reason": null
}
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "rejected",
"call_id": null,
"reason": "outside_hours"
}
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "unknown",
"call_id": null,
"reason": null
}
FIXED · call Pass the customer’s verified from_number. With require_from_number_for_shared_agent off (default), omission selects the oldest eligible number by created_at then id; a disabled number is not eligible. With it on, two or more settled attachments, even disabled ones, require an explicit sender (400 from_number_required). A sole eligible number works; none gives 400 agent_missing_phone_number. Pending imports do not count.
NOT OFFERED → do this instead · call Outbound developer instructions do not inherit the agent’s inbound system_prompt or the number’s custom_prompt. Include the business and purpose in prompt or the recipient’s prompt_override. Fixed call rules and enabled knowledge and tools can still apply.
YOU CAN CHANGE · call Send agent_id, from_number, to_number and a meaningful prompt. Choose dynamic_vars for this call.
SCOPE · call Track an outbound request using its receipt. Preserve the request ID across an uncertain response and check its status before another dial.
Read
Do not send a request body.
Use the same UUID that was saved before the launch request. This is an account-scoped lookup. Invalid, absent and foreign UUIDs share one 404. The response uses Cache-Control: no-store.
Pending records display unknown after 15 minutes. They are never recycled into another dispatch. Neither a 404 nor an unavailable status read makes a new UUID safe automatically.
Keep the UUID after a 503 or lost response. Retry this status read with bounded backoff. Neither an unavailable read nor a 404 authorises an automatic new call or a replacement UUID.
GET /v1/organisation/outbound-settings. Where available, the Owner or organisation API key can PATCH the same path with require_from_number_for_shared_agent. Campaigns need a reviewed sender. If it changes, choose and confirm again.
Read the compact AI rules
Check the durable state of the UUID saved for an outbound call intent. This read never dispatches a call, reserves capacity or charges.
Method: GET ·
Success: 200 ·
Scope: Owning account
The important part
- This read cannot place a call, reserve capacity or charge the account.
- pending and unknown mean keep the same UUID and reconcile; accepted gives the saved call ID.
Authentication
UseAuthorization: Bearer KEY_ID:KEY_SECRET for the owning account. An organisation API key has Owner authority. Personal sessions use the role rules documented in Authentication; do not treat a Member session as an API key.
Request fields
| Field | Type | Required | Default and limits |
|---|---|---|---|
request_id (path) | string | Yes | The UUID saved for the original call intent. |
Response fields
200 OK returns request_id, state, call_id and reason. The last two fields can be null. The response is Cache-Control: no-store.
| State | Meaning | Next action |
|---|---|---|
| pending | The saved intent is still being checked. | Keep the UUID and refresh the read with a limit. |
| accepted | A call ID was recorded; the call may not be complete. | Read that call ID. |
| rejected | A bounded refusal was recorded. | Review reason and correct the cause before a new deliberate intent. |
| unknown | The launch outcome cannot be confirmed. | Keep the UUID and reconcile; never automatically redial. |
Example request
Production HTTP examples. Replace the placeholder identifiers with resources owned by the account. SetNIXFLEX_API_KEY privately; never print it.
curl --request GET \
--url 'https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082' \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
const response = await fetch('https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082', {
method: 'GET',
headers: { Authorization: `Bearer ${process.env.NIXFLEX_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
// Handle the private result without logging it.
import os, json
from urllib.request import Request, urlopen
request = Request('https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082', method='GET',
headers={'Authorization': 'Bearer ' + os.environ['NIXFLEX_API_KEY']})
with urlopen(request, timeout=30) as response:
result = json.load(response)
# Handle the private result without logging it.
$headers = @{ Authorization = "Bearer $env:NIXFLEX_API_KEY" }
$result = Invoke-RestMethod -Method GET -Uri 'https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082' -Headers $headers -DisableKeepAlive
# Handle $result privately.
Example response
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "pending",
"call_id": null,
"reason": null
}
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "accepted",
"call_id": "call_example",
"reason": null
}
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "rejected",
"call_id": null,
"reason": "outside_hours"
}
{
"request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
"state": "unknown",
"call_id": null,
"reason": null
}
Errors
Branch onerror.code, not the wording of error.message. The envelope includes type, code, message, doc_url and details.
| Status / code | What it means | What to do |
|---|---|---|
401 · unauthorized | The credential is missing or invalid. | Check the full account credential and API host privately; stop the retry loop. |
403 · permission_denied | This actor cannot perform the operation. | Resolve the account or role restriction through an authorised person. |
404 · not_found | UUID is invalid, missing or foreign. Reconcile the original intent; do not automatically redial. | Check the exact owned identifier and current resource state; do not probe another account. |
429 · rate_limit_exceeded | The request limit was reached. | Wait at least Retry-After and use a bounded read retry. |
503 · outbound_request_unavailable | The status read failed. Keep the previous uncertainty and retry the read. | Keep the saved UUID and retry this status read with bounded backoff. Do not launch another call. |
Retry and idempotency
This read does not reserve an intent, place a call or charge the account. Retry temporary read failures with bounded backoff while keeping the saved UUID. A failed read or 404 is not permission to launch with a new UUID. This endpoint is not paginated.Related endpoints
Authorizations
Path Parameters
The UUID saved for the original call intent. Account-scoped UUID for one call intent. Save it before sending. Reusing it never starts a second call; changed input conflicts.
Pattern:
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$Response
Current request state; call_id and reason can be null.