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

# List DND Numbers

> Returns the active do-not-disturb entries for an agent. Numbers on this list are skipped when the agent places calls.



## OpenAPI

````yaml GET /v1/dnd_numbers
openapi: 3.1.0
info:
  title: OSVI AI API
  description: REST API for the OSVI AI voice and chat platform
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.osvi.ai
security:
  - ApiToken: []
paths:
  /v1/dnd_numbers:
    get:
      summary: List DND numbers
      description: >-
        Returns the active do-not-disturb entries for an agent. Numbers on this
        list are skipped when the agent places calls.
      parameters:
        - name: agent_uuid
          in: query
          required: true
          schema:
            type: string
          example: agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og
        - name: search
          in: query
          required: false
          description: Partial match on the phone number.
          schema:
            type: string
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
        - name: per_page
          in: query
          required: false
          description: Results per page (max 100).
          schema:
            type: integer
            default: 25
      responses:
        '200':
          description: Paginated DND entries.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/V1DndNumber'
                  meta:
                    $ref: '#/components/schemas/Pagination'
        '401':
          description: Invalid or missing API token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorUnauthorized'
        '404':
          description: The `agent_uuid` is not on your account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorNotFound'
              example:
                success: false
                error: agent_not_found
                details: null
components:
  schemas:
    V1DndNumber:
      type: object
      properties:
        id:
          type: integer
          example: 31
        agent_uuid:
          type: string
          example: agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og
        phone:
          type: string
          description: >-
            Canonical E.164 form (Indian numbers are normalized to
            `+91XXXXXXXXXX`).
          example: '+919876543210'
        reason:
          type: string
          nullable: true
          example: customer opted out
        created_at:
          type: string
          format: date-time
          example: '2026-06-12T09:30:00+05:30'
    Pagination:
      type: object
      description: Pagination metadata. `per_page` is capped at 100.
      properties:
        current_page:
          type: integer
          example: 1
        total_pages:
          type: integer
          example: 4
        total_count:
          type: integer
          example: 87
        per_page:
          type: integer
          example: 25
    ErrorUnauthorized:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: Invalid API token
    ErrorNotFound:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: agent_not_found
        details:
          type: object
          nullable: true
          example: null
  securitySchemes:
    ApiToken:
      type: apiKey
      in: header
      name: API-Token
      description: >-
        16-character API token associated with your OSVI account. Find it in
        your dashboard under Settings → API.

````