Skip to main content
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 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 Create one authorised outbound call with a specific purpose, then reconcile its request and call results without automatic redial.
Effect: One outbound call ·
Identity: Saved request UUID ·
Result: Read and reconcile
The important part
  • Creating the request can place a real call and incur charges.
  • Save a UUID with the exact account, base URL and call inputs before the first send.
  • An accepted request, a completed call and a confirmed booking are different results.

Prerequisites

Keep NIXFLEX_API_KEY private on the server. Raw HTTP base URL: https://api.nixflex.com/v1. Node and Python SDK base URL: https://api.nixflex.com. The SDK adds /v1. Use owned identifiers; SDK and CLI examples need the documented minimum versions. Set NXF_AGENT_ID, NXF_PHONE_NUMBER and NXF_TO_NUMBER to the intended owned sender and approved recipient.

1. Prepare a clear purpose

Describe the business, reason for calling, two or three questions and a polite finish. Include prompt on the call request. Supply dynamic_vars for known values and validate required placeholders before sending.

2. Create the call

Before dispatch, generate and persist a UUID with the complete inputs, account and base URL. Use the local preparation examples, then load that saved UUID into NXF_REQUEST_ID. Never generate a fresh UUID inside a send or retry loop. These examples use that existing identity.

3. Save the returned identity

Persist call_id with the existing UUID and operation record. Keep a known call ID even if the receipt reports request_status:unconfirmed; it still says safe_to_retry:false. Acceptance is not a connected call. If the network response is lost, reconcile before repeating; do not enable automatic transport retries for call creation.

4. Read the outcome

Read the saved outbound request, then read its accepted call or consume the signed event. Pending, unknown and an unavailable request read do not authorise a replacement call. Use observed answers and analysis as reviewable data. A summary can be delayed or unavailable and is not a guarantee every requested question was answered.

5. Plan follow-up deliberately

Respect contact restrictions and the person’s wishes. If you send a follow-up text, use an explicit eligible sender and approved wording. A failed wait in your client does not hang up the call or prove it was never placed.

Example response

The create response identifies the accepted call and current state. Read the create schema and retain any safe outcome or retry fields returned on failure.

Errors and limits

Next steps