> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Prepare and reconcile one outbound call

> Save an outbound request UUID before dispatch, send one approved call and read its durable state without turning a timeout into a duplicate call.

**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](https://docs.nixflex.com/ai-rules.md#outbound-calls)

Save a call intention before sending it, then reconcile that same request until you know whether a call was accepted.

Before dispatch: **Durable UUID and inputs** · Send: **One approved attempt** · Recovery: **Read request state**

**The important part**

* Generate and persist request\_id before the first dispatch.
* Keep the same account, base URL, UUID and inputs during reconciliation.
* Pending, unknown, 404 or an unavailable read never authorise an automatic redial.

[Business guide](https://docs.nixflex.com/guides/business/call-one-number.md) · [API reference](https://docs.nixflex.com/api-reference/introduction.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Prepare the intention locally

Choose an active owned agent, an eligible sender and a recipient you are permitted to contact. Review the call instructions and variables before dispatch. The [Node, Python, CLI and MCP clients](https://docs.nixflex.com/sdks/ecosystem.md) have local preparation helpers; preparation itself does not place a call.

Persist the complete prepared payload, including its UUID, in a durable application record before sending. Bind that record to the intended account and base URL. Protect phone numbers and instructions as private data. A newly generated UUID after a timeout represents a new call intention and can create another call.

This illustrative body belongs to [POST /calls/outbound](https://docs.nixflex.com/api-reference/calls/create-outbound.md). It uses fictional resources and must not be treated as a live fixture:

```json theme={"dark"}
{
  "request_id":"9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
  "agent_id":"agent_example",
  "from_number":"+12025550100",
  "to_number":"+12025550101",
  "prompt":"Ask {{name}} whether they want to discuss an appointment.",
  "dynamic_vars":{"name":"Sam"}
}
```

The optional UUID belongs in `request_id`. A Knowledge `Idempotency-Key` is a different mechanism and is not a substitute for this field.

## Send one approved request

Submit the saved payload once after approval, with automatic write retries disabled. Save any returned `call_id` immediately. HTTP 201 accepts work; it does not confirm the call connected or completed. A replay can return the same saved call with HTTP 200.

An accepted call can include `request_status:unconfirmed` and `safe_to_retry:false` if journal confirmation is uncertain. Keep the known call ID and reconcile it; do not discard that evidence because a later status field is incomplete.

## Read the saved UUID

Use [GET outbound request](https://docs.nixflex.com/api-reference/calls/get-outbound-request.md) with the same account and UUID. The read never dispatches, reserves capacity or charges.

| State | Next action |
| - | - |
| `pending` | Keep the UUID and poll with a bounded delay. |
| `accepted` | Save and read the returned call ID. |
| `rejected` | Review the recorded reason before a new deliberate intention. |
| `unknown` | Keep the UUID and seek reconciliation; do not redial automatically. |

Pending records display unknown after 15 minutes and are never recycled into another dispatch. Invalid, absent and foreign UUIDs share one 404. A 404 therefore does not confirm that a new call is safe.

## Handle conflicts and lost responses

| Observation | Decision |
| - | - |
| Same UUID with different input | Preserve the original intention; do not overwrite it to bypass a conflict. |
| Timeout, network loss or 503 | Read the saved request; retain `safe_to_retry:false` where returned. |
| Known call ID but status read fails | Read that call later with bounded retries; never create a replacement automatically. |
| Confirmed rejection | Correct the cause and obtain a new deliberate call decision. |

## Read the business outcome

Once accepted, use the call ID to read [call and booking results](https://docs.nixflex.com/guides/developer/call-history.md). Call completion, recording availability and booking evidence have separate states. Late webhooks can be reconciled through those reads without another call.

* [Node local preparation example](https://docs.nixflex.com/sdks/node.md)
* [CLI preparation and status reads](https://docs.nixflex.com/cli/quickstart.md)
* [Outbound request status reference](https://docs.nixflex.com/api-reference/calls/get-outbound-request.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.