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

# List custom functions

> List up to 15 saved custom functions for an owned Nixflex number. An empty list means no matching functions are saved for that account and number.

**FIXED · number** When website functions are enabled, eligible enabled functions on that number can be offered to visitors. A visitor ID groups a conversation and cannot authorise access to your own customer records.

**NOT OFFERED → do this instead · operation** Putting a new action tag like \[BOOK\_NOW] in a prompt does not create a function. Configure a number-scoped function with its argument schema, or use a supported phone booking integration.

**YOU CAN CHANGE · number** Choose a supported name, HTTPS destination and HTTP method. Keep credentials in trusted configuration and return only the response fields the agent needs.

**SCOPE · operation** A configured function can call your service with validated arguments. Make each public function safe for its intended audience.

[Read the compact AI rules](https://docs.nixflex.com/ai-rules.md#custom-functions)

Read up to 15 saved custom functions for this account and number. No matching rows returns an empty list; the handler does not separately prove number ownership.

Method: **GET** · Success: **200** · Scope: **Owning account**

**The important part**

* Read the current setting for this exact owned target before changing it.
* Verify signed inputs before executing consequential work.

[Business guide](https://docs.nixflex.com/guides/business/integrations.md) · [Developer guide](https://docs.nixflex.com/advanced/custom-functions.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Authentication

Send `Authorization: Bearer KEY_ID:KEY_SECRET` using the owning account’s server-side credential. When personal dashboard sessions are enabled, Owner and Admin sessions can write these settings; Member sessions can read only. Ownership checks still apply.

## Request fields

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `phoneNumber` (path) | string | Yes | None | Owned E.164 number. URL-encode the leading plus sign. |

Do not send a request body.

## Response fields

`200 OK` returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.

| Field | Type | Meaning |
| - | - | - |
| `phone_number` | string | Owned phone number. |
| `functions` | array of object | At most 15 functions; no cursor. Maximum 15 items. |
| `functions[].id` | string | Function identifier. |
| `functions[].name` | string | Saved name. |
| `functions[].description` | string | Saved description. |
| `functions[].method` | string | Saved HTTP method. |
| `functions[].url` | string | Saved destination; keep it private. |
| `functions[].parameters` | object | JSON object; nested properties are supplied by your integration. |
| `functions[].speak_during` | string or null | Saved phrase. |
| `functions[].timeout_ms` | integer | Saved timeout in milliseconds. |
| `functions[].is_active` | boolean | Saved enabled flag. |
| `functions[].has_headers` | boolean | Private headers exist; header values are never returned. |

## Example request

Examples require Node/CLI 0.11.0 or later, Python 0.4.0 or later and MCP 0.5.0 or later. Keep `NIXFLEX_API_KEY` in your private process environment. The cURL example uses Bash. Use approved owned fixtures and keep configuration responses private. Python shows sync usage; AsyncNixflex uses the same method with async with and await. Configure the existing MCP installation for the same account at `https://api.nixflex.com`.

```bash cURL theme={"dark"}
curl --request GET \
  --url "https://api.nixflex.com/v1/integrations/custom-functions/number/%2B12025550123" \
  --header "Authorization: Bearer $NIXFLEX_API_KEY"
```

```javascript Node theme={"dark"}
import Nixflex from 'nixflex';
const c = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl:'https://api.nixflex.com',maxRetries:0});
const result = await c.integrations.listFunctions("+12025550123");
// Keep private responses out of logs and AI conversations.
```

```python Python theme={"dark"}
import os
from nixflex import Nixflex
with Nixflex(api_key=os.environ["NIXFLEX_API_KEY"], base_url="https://api.nixflex.com", max_retries=0) as c:
    result = c.integrations.list_functions('+12025550123')
```

```powershell CLI (PowerShell) theme={"dark"}
nixflex integrations listFunctions '+12025550123' --json --base-url "https://api.nixflex.com"
```

```json MCP theme={"dark"}
{
  "name": "list_custom_functions",
  "arguments": {
    "phone_number": "+12025550123"
  }
}
```

## Example response

Illustrative `200` response. Identifiers and values are examples; some optional or compatibility fields are omitted.

```json Response theme={"dark"}
{
  "phone_number": "+12025550100",
  "functions": []
}
```

## Errors

Failures return an `error` object with `code`, `message`, `doc_url` and optional details. Each code links to the shared error catalog. Read the message and details before deciding whether to resend.

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 500 | [`server_error`](https://docs.nixflex.com/api-reference/errors#server_error) | The result could not be confirmed. | Read the current state before retrying a write. |
| 401 | [`unauthorized`](https://docs.nixflex.com/api-reference/errors#unauthorized) | The credential is missing or invalid. | Check the full account credential. |
| 429 | [`rate_limit_exceeded`](https://docs.nixflex.com/api-reference/errors#rate_limit_exceeded) | The account request limit was reached. | Wait for Retry-After. Reconcile uncertain writes before resending. |

## Retry and idempotency

This is a read-only request. Retry transient connection or server failures with bounded backoff; respect Retry-After for 429. Do not retry validation or ownership errors unchanged. A later read can return newer state.

## Related endpoints

* [Create a custom function](https://docs.nixflex.com/api-reference/integration-settings/post-integrations-custom-functions-number-phoneNumber.md)
* [Update a custom function](https://docs.nixflex.com/api-reference/integration-settings/patch-integrations-custom-functions-number-phoneNumber-id.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json GET /integrations/custom-functions/number/{phoneNumber}
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:
  /integrations/custom-functions/number/{phoneNumber}:
    get:
      tags:
        - Integration settings
      summary: List custom functions
      description: >-
        Read up to 15 saved custom functions for this account and number. No
        matching rows returns an empty list; the handler does not separately
        prove number ownership. 
      operationId: listCustomFunctions
      parameters:
        - name: phoneNumber
          in: path
          required: true
          schema:
            type: string
            description: Owned E.164 number. URL-encode the leading plus sign.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  phone_number:
                    type: string
                    description: Owned phone number.
                  functions:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Function identifier.
                        name:
                          type: string
                          description: Saved name.
                        description:
                          type: string
                          description: Saved description.
                        method:
                          type: string
                          description: Saved HTTP method.
                        url:
                          type: string
                          description: Saved destination; keep it private.
                        parameters:
                          type: object
                          additionalProperties: true
                          description: >-
                            JSON object; nested properties are supplied by your
                            integration.
                        speak_during:
                          type:
                            - string
                            - 'null'
                          description: Saved phrase.
                        timeout_ms:
                          type: integer
                          description: Saved timeout in milliseconds.
                        is_active:
                          type: boolean
                          description: Saved enabled flag.
                        has_headers:
                          type: boolean
                          description: >-
                            Private headers exist; header values are never
                            returned.
                      required:
                        - id
                        - name
                        - description
                        - method
                        - url
                        - parameters
                        - speak_during
                        - timeout_ms
                        - is_active
                        - has_headers
                      additionalProperties: false
                      description: ''
                    description: At most 15 functions; no cursor.
                    maxItems: 15
                required:
                  - phone_number
                  - functions
                additionalProperties: false
                description: ''
              example:
                phone_number: '+12025550100'
                functions: []
        '401':
          description: 'unauthorized: The credential is missing or invalid.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
        '429':
          description: 'rate_limit_exceeded: The account request limit was reached.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
        '500':
          description: 'server_error: The result could not be confirmed.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
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.