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

> List stored Nixflex do-not-contact entries in a channel bucket. Understand the all-channel bucket and how it differs from a combined list.

**FIXED · account** An incoming STOP blocks voice and SMS across the owning account. The receiving business number is evidence only.

**NOT OFFERED → do this instead · number** A number or a separate agent does not create its own STOP boundary. Businesses on a platform share its STOP list. Honour the suppression across their numbers.

**YOU CAN CHANGE · account** Add a do-not-contact entry for all channels, voice or SMS. Check the selected owner and recipient before any change.

**SCOPE · recipient** Preview local contact rules before outreach. Report the reason when a recipient is held and resolve the underlying policy or missing data. `needs_timezone`, `timezone_policy_paused`, `contact_policy_paused`, `consent_required`, `consent_withdrawn`, `do_not_contact`, `outside_hours`, `not_due_local`, `policy_migration_required`, `country_policy_review`, `holiday_data_unavailable`, `public_holiday`.

Keyword STOP works independently. AI recognition of a sender’s clear objection in a verified incoming SMS is off by default. Customers have no switch for it. Where enabled on eligible automatic replies, it blocks calls and texts account-wide and may send one goodbye.

On `GET /v1/contact-suppressions`, business\_number alone selects keyword evidence. Add source=attributed for keyword and AI entries. To correct an eligible AI mistake, the Owner or account key sends phone\_number, channel=all, current review\_version and a reason to `POST /v1/contact-suppressions/ai-corrections`. Reload on review\_changed. Keyword STOP and independent restrictions stay locked. Correction never supplies consent.

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

List stored do-not-contact entries in one channel bucket. channel=all selects entries stored for all channels; it does not combine the voice and SMS buckets.

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

**The important part**

* Entries belong to the account and are listed by channel and cursor. The opted-out business number records where the STOP arrived. It does not limit the suppression to that sender. See [contact controls](https://docs.nixflex.com/guides/developer/contact-controls.md).

* Check the saved scope and contact identifiers.

* A missing row does not confirm consent to contact that person.

[Business guide](https://docs.nixflex.com/guides/business/contact-controls.md) · [Developer guide](https://docs.nixflex.com/guides/developer/contact-controls.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.

## Request fields

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `channel` (query) | string | No | `"all"` | Channel bucket. Allowed: `"all"`, `"voice"`, `"sms"`. |
| `after` (query) | string | No | Omitted | Continue after this E.164 number from next\_cursor. Pattern: `^\+[1-9][0-9]{6,14}$`. |

Do not send a request body.

Pages contain at most 200 rows in phone\_number ascending order. There is no configurable limit. Nonempty pages return their last number as next\_cursor even when short; pass it as after until an empty page returns null. For a full inventory, page all, voice and sms separately. Contact checks can apply an all-channel entry as well as a channel-specific entry.

## 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 |
| - | - | - |
| `entries` | array of object | Saved value. |
| `entries[].phone_number` | string | International number with + and digits; no spaces. Pattern: `^\+[1-9][0-9]{6,14}$`. |
| `entries[].channel` | string | Stored channel bucket. Allowed: `"all"`, `"voice"`, `"sms"`. |
| `entries[].source` | string | Why it was suppressed, for example owner or sms\_optout. |
| `entries[].created_at` | string or null | Saved timestamp, or null. Format: date-time. |
| `entries[].removal_locked` | boolean | Only false for an explicitly removable owner-created entry. |
| `entries[].opted_out_message` | string or null | For SMS opt-outs: retained text, limited to 160 code points. |
| `entries[].opted_out_at` | string or null | Saved timestamp, or null. Format: date-time. |
| `entries[].opted_out_business_number` | string or null | International number with + and digits; no spaces. Pattern: `^\+[1-9][0-9]{6,14}$`. |
| `next_cursor` | string or null | International number with + and digits; no spaces. Pattern: `^\+[1-9][0-9]{6,14}$`. |

## Example request

These 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` private. cURL uses Bash; CLI uses PowerShell and reads the key through `NIXFLEX_API_KEY`. Replace fixture identifiers and reserved example numbers with approved account-owned values. Configure the existing MCP installation for the same account at `https://api.nixflex.com` before using the shown tool arguments. Python shows the synchronous client; `AsyncNixflex` uses the same method with `async with` and `await`.

```bash cURL theme={"dark"}
curl --request GET \
  --url "https://api.nixflex.com/v1/contact-suppressions?channel=sms&after=%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.contacts.list({"channel": "sms", "after": "+12025550123"});
```

```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.contacts.list(channel='sms', after='+12025550123')
```

```powershell CLI (PowerShell) theme={"dark"}
nixflex contacts list --channel sms --after '+12025550123' --json --base-url "https://api.nixflex.com"
```

```json MCP theme={"dark"}
{
  "name": "list_contact_suppressions",
  "arguments": {
    "channel": "sms",
    "after": "+12025550123"
  }
}
```

## Example response

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

```json Response theme={"dark"}
{
  "entries": [],
  "next_cursor": null
}
```

## 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 |
| - | - | - | - |
| 400 | [`invalid_request`](https://docs.nixflex.com/api-reference/errors#invalid_request) | The identifier or request fields are invalid. | Correct the documented fields before resending. |
| 503 | [`unavailable`](https://docs.nixflex.com/api-reference/errors#unavailable) | Suppression entries could not be read. | Retry with bounded backoff; do not assume an unread list is empty. |
| 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

* [Preview contact hours](https://docs.nixflex.com/api-reference/contact-controls/post-contact-hours-preview.md)
* [Add contact suppressions](https://docs.nixflex.com/api-reference/contact-controls/post-contact-suppressions.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json GET /contact-suppressions
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:
  /contact-suppressions:
    get:
      tags:
        - Contact controls
      summary: List contact suppressions
      description: >-
        List stored do-not-contact entries in one channel bucket. channel=all
        selects entries stored for all channels; it does not combine the voice
        and SMS buckets. Pages contain at most 200 rows in phone_number
        ascending order. There is no configurable limit. Nonempty pages return
        their last number as next_cursor even when short; pass it as after until
        an empty page returns null. For a full inventory, page all, voice and
        sms separately. Contact checks can apply an all-channel entry as well as
        a channel-specific entry.
      operationId: get_contact_suppressions
      parameters:
        - name: channel
          in: query
          required: false
          schema:
            type: string
            description: Channel bucket.
            enum:
              - all
              - voice
              - sms
            default: all
        - name: after
          in: query
          required: false
          schema:
            type: string
            description: Continue after this E.164 number from next_cursor.
            pattern: ^\+[1-9][0-9]{6,14}$
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  entries:
                    type: array
                    items:
                      type: object
                      properties:
                        phone_number:
                          type: string
                          description: International number with + and digits; no spaces.
                          pattern: ^\+[1-9][0-9]{6,14}$
                        channel:
                          type: string
                          description: Stored channel bucket.
                          enum:
                            - all
                            - voice
                            - sms
                        source:
                          type: string
                          description: >-
                            Why it was suppressed, for example owner or
                            sms_optout.
                        created_at:
                          type:
                            - string
                            - 'null'
                          description: Saved timestamp, or null.
                          format: date-time
                        removal_locked:
                          type: boolean
                          description: >-
                            Only false for an explicitly removable owner-created
                            entry.
                        opted_out_message:
                          type:
                            - string
                            - 'null'
                          description: >-
                            For SMS opt-outs: retained text, limited to 160 code
                            points.
                        opted_out_at:
                          type:
                            - string
                            - 'null'
                          description: Saved timestamp, or null.
                          format: date-time
                        opted_out_business_number:
                          type:
                            - string
                            - 'null'
                          description: International number with + and digits; no spaces.
                          pattern: ^\+[1-9][0-9]{6,14}$
                      required:
                        - phone_number
                        - channel
                        - source
                        - created_at
                        - removal_locked
                      description: ''
                      additionalProperties: false
                    description: ''
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: International number with + and digits; no spaces.
                    pattern: ^\+[1-9][0-9]{6,14}$
                required:
                  - entries
                  - next_cursor
                description: ''
                additionalProperties: false
              example:
                entries: []
                next_cursor: null
        '400':
          description: 'invalid_request: The identifier or request fields are invalid.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '401':
          description: 'unauthorized: The credential is missing or invalid.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '429':
          description: 'rate_limit_exceeded: The account request limit was reached.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '503':
          description: 'unavailable: Suppression entries could not be read.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
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.