> ## 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.

# 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.

**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)

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.

[Business guide](https://docs.nixflex.com/guides/business/call-history.md) · [Developer guide](https://docs.nixflex.com/guides/developer/call-history.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Authentication

Use `Authorization: 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](https://docs.nixflex.com/api-reference/authentication.md); 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. |

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.

## 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. |

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.

## Example request

Production HTTP examples. Replace the placeholder identifiers with resources owned by the account. Set `NIXFLEX_API_KEY` privately; never print it.

```bash cURL (Bash) theme={"dark"}
curl --request GET \
  --url 'https://api.nixflex.com/v1/calls/outbound/requests/9f9aa2b2-4b77-4fa1-9071-9cf6747a9082' \
  --header "Authorization: Bearer $NIXFLEX_API_KEY"
```

```javascript Node (HTTP) theme={"dark"}
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.
```

```python Python (HTTP) theme={"dark"}
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.
```

```powershell PowerShell (HTTP) theme={"dark"}
$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

```json pending theme={"dark"}
{
  "request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
  "state": "pending",
  "call_id": null,
  "reason": null
}
```

```json accepted theme={"dark"}
{
  "request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
  "state": "accepted",
  "call_id": "call_example",
  "reason": null
}
```

```json rejected theme={"dark"}
{
  "request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
  "state": "rejected",
  "call_id": null,
  "reason": "outside_hours"
}
```

```json unknown theme={"dark"}
{
  "request_id": "9f9aa2b2-4b77-4fa1-9071-9cf6747a9082",
  "state": "unknown",
  "call_id": null,
  "reason": null
}
```

## Errors

Branch on `error.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. |

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.

## 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

* [List calls](https://docs.nixflex.com/api-reference/calls/list.md)
* [Get call history](https://docs.nixflex.com/api-reference/calls/get-calls-history.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json GET /calls/outbound/requests/{request_id}
openapi: 3.1.0
info:
  title: Nixflex public API
  version: 1.0.0
  description: >-
    Nixflex API reference for agents, calls, messaging, knowledge, organisations
    and integrations. Authenticate with the owning account and follow each
    operation’s permissions, response and retry contract.
servers:
  - url: https://api.nixflex.com/v1
security:
  - bearerAuth: []
paths:
  /calls/outbound/requests/{request_id}:
    get:
      tags:
        - Calls
      summary: Read an outbound call request
      description: >-
        Read the durable state of one account-scoped outbound request UUID. This
        does not dispatch, reserve capacity or charge. Pending records display
        unknown after 15 minutes and are never recycled. A 404 is shared by
        invalid, absent and foreign IDs; it is not evidence that an uncertain
        call is safe to redial. Preserve the request ID across lost responses
        and process restarts.
      operationId: getOutboundCallRequest
      parameters:
        - in: path
          name: request_id
          required: true
          description: The UUID saved for the original call intent.
          schema:
            type: string
            format: uuid
            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}$
            description: >-
              Account-scoped UUID for one call intent. Save it before sending.
              Reusing it never starts a second call; changed input conflicts.
      responses:
        '200':
          description: Current request state; call_id and reason can be null.
          headers:
            Cache-Control:
              description: Do not cache private request or booking state.
              schema:
                type: string
                const: no-store
          content:
            application/json:
              schema:
                type: object
                required:
                  - request_id
                  - state
                  - call_id
                  - reason
                additionalProperties: true
                properties:
                  request_id:
                    type: string
                    format: uuid
                    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}$
                    description: >-
                      Account-scoped UUID for one call intent. Save it before
                      sending. Reusing it never starts a second call; changed
                      input conflicts.
                  state:
                    type: string
                    enum:
                      - pending
                      - accepted
                      - rejected
                      - unknown
                  call_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Known call identifier, or null. Unknown does not confirm
                      that no call was placed.
                  reason:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Bounded machine-readable refusal/failure reason when
                      retained; otherwise null.
              examples:
                pending:
                  value:
                    request_id: 9f9aa2b2-4b77-4fa1-9071-9cf6747a9082
                    state: pending
                    call_id: null
                    reason: null
                accepted:
                  value:
                    request_id: 9f9aa2b2-4b77-4fa1-9071-9cf6747a9082
                    state: accepted
                    call_id: call_example
                    reason: null
                rejected:
                  value:
                    request_id: 9f9aa2b2-4b77-4fa1-9071-9cf6747a9082
                    state: rejected
                    call_id: null
                    reason: outside_hours
                unknown:
                  value:
                    request_id: 9f9aa2b2-4b77-4fa1-9071-9cf6747a9082
                    state: unknown
                    call_id: null
                    reason: null
        '401':
          description: >-
            unauthorized: The credential is missing or invalid. Check the full
            account credential.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '403':
          description: >-
            permission_denied: The account or personal session cannot access
            this operation. Resolve access through an authorised person.
          headers:
            Cache-Control:
              description: Do not cache private request or booking state.
              schema:
                type: string
                const: no-store
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                      - details
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                      doc_url:
                        type: string
                        format: uri
                      details:
                        type: object
                        additionalProperties: true
                    additionalProperties: true
                additionalProperties: true
              examples:
                permission:
                  value:
                    error:
                      type: permission_denied
                      code: permission_denied
                      message: You do not have access to this section.
                      doc_url: https://docs.nixflex.com/errors/permission_denied
                      details: {}
        '404':
          description: >-
            not_found: UUID is invalid, missing or foreign. Reconcile the
            original intent; do not automatically redial.
          headers:
            Cache-Control:
              description: Do not cache private request or booking state.
              schema:
                type: string
                const: no-store
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                      - details
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                        enum:
                          - not_found
                      message:
                        type: string
                      doc_url:
                        type: string
                        format: uri
                      details:
                        type: object
                        additionalProperties: true
                    additionalProperties: true
                additionalProperties: true
              examples:
                not_found:
                  value:
                    error:
                      type: not_found
                      code: not_found
                      message: Request not found.
                      doc_url: https://docs.nixflex.com/errors/not_found
                      details: {}
        '429':
          description: >-
            rate_limit_exceeded: The account request limit was reached. Wait for
            Retry-After. Reconcile uncertain writes before resending.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '503':
          description: >-
            outbound_request_unavailable: The status read failed. Keep the
            previous uncertainty and retry the read.
          headers:
            Cache-Control:
              description: Do not cache private request or booking state.
              schema:
                type: string
                const: no-store
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                      - details
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                        enum:
                          - outbound_request_unavailable
                      message:
                        type: string
                      doc_url:
                        type: string
                        format: uri
                      details:
                        type: object
                        additionalProperties: true
                    additionalProperties: true
                additionalProperties: true
              examples:
                unavailable:
                  value:
                    error:
                      type: server_error
                      code: outbound_request_unavailable
                      message: >-
                        The call request could not be checked. Try again
                        shortly.
                      doc_url: >-
                        https://docs.nixflex.com/errors/outbound_request_unavailable
                      details: {}
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A
        verified personal dashboard Bearer session may be used where the
        operation documents role-based access.

````

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