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

> List all blocked IP addresses and CIDR ranges. Use when auditing which visitors are barred from the AI assistant, or reconciling against an external abuse list.

# List blocked IPs



## OpenAPI

````yaml get /blocklist/ips
openapi: 3.1.0
info:
  title: OpenCX API
  description: >

    OpenCX is an AI-powered, all-in-one platform for customer support and
    outbound communications.


    Use this API to manage your OpenCX organization's AI agents, actions,
    conversations, contacts, and more.


    To get started, generate a new API key from the dashboard.


    ## Authentication

    All API endpoints require authentication using a Bearer token. You can
    generate an API key from your OpenCX dashboard.


    ## Rate Limiting

    API requests are rate limited to ensure fair usage. The current limits are:

    - 100 requests per minute for standard endpoints

    - 1000 requests per minute for streaming endpoints


    ## Error Handling

    The API uses standard HTTP status codes and returns detailed error messages
    in the response body.
  version: 1.0-beta
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: http://localhost:8080
    description: Development
  - url: https://api.open.cx
    description: Production
security:
  - bearerAuth: []
paths:
  /blocklist/ips:
    get:
      summary: List blocked IPs
      description: >-
        List all blocked IP addresses and CIDR ranges. Visitors on these
        addresses cannot interact with the AI assistant.
      operationId: listBlockedIps
      parameters:
        - schema:
            default: 1
            type: integer
            minimum: 1
            maximum: 9007199254740991
          in: query
          name: page
          required: false
          description: 'Page number (default: 1)'
        - schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 200
          in: query
          name: limit
          required: false
          description: 'Results per page (default: 20, max: 200)'
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListBlockedIpsOutput'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
components:
  schemas:
    ListBlockedIpsOutput:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/ListBlockedIpsOutput'
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: Block record ID
              ip_address:
                type: string
                description: >-
                  The blocked address — a single IP (203.0.113.7) or a CIDR
                  range (203.0.113.0/24)
              reason:
                anyOf:
                  - type: string
                  - type: 'null'
                description: Why the address was blocked
              created_at:
                type: string
                format: date-time
              expires_at:
                anyOf:
                  - type: string
                    format: date-time
                  - type: 'null'
                description: When the block lifts automatically. Null means it never does.
            required:
              - id
              - ip_address
              - reason
              - created_at
              - expires_at
            additionalProperties: false
        total:
          type: number
        page:
          type: number
        total_pages:
          type: number
      required:
        - data
        - total
        - page
        - total_pages
      additionalProperties: false
    ErrorDto:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````