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

# Export do not call list

> Retrieve a paginated list of phone numbers on the Do Not Call list. Use this endpoint for bulk export of DNC data.



## OpenAPI

````yaml get /api/export/do-not-call-list
openapi: 3.1.0
info:
  title: Strada Voice API
  version: 1.0.0
  description: API for managing voice calls
servers:
  - url: https://api.getstrada.com
    description: Production server
security: []
paths:
  /api/export/do-not-call-list:
    get:
      tags:
        - Export
      summary: Export do not call list
      description: >-
        Retrieve a paginated list of phone numbers on the Do Not Call list. Use
        this endpoint for bulk export of DNC data.
      parameters:
        - name: createdAtGt
          in: query
          schema:
            type: string
            format: date-time
          description: Filter entries created after this timestamp
        - name: createdAtLt
          in: query
          schema:
            type: string
            format: date-time
          description: Filter entries created before this timestamp
        - name: pageSize
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 10000
            default: 10000
          description: Number of results per page (max 10000)
      responses:
        '200':
          description: Successfully retrieved Do Not Call list entries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDoNotCallListResponse'
              example:
                doNotCallList:
                  - customerPhoneNumber: '+14155551234'
                    callId: call_abc123
                    createdAt: '2024-01-15T10:30:00Z'
                  - customerPhoneNumber: '+14155555678'
                    callId: null
                    createdAt: '2024-01-14T08:15:00Z'
                metadata:
                  nextPage: >-
                    https://api.getstrada.com/api/export/do-not-call-list?createdAtLt=2024-01-14T08:14:59.999Z&pageSize=10000
        '400':
          description: Bad request - invalid query parameters
        '403':
          description: Forbidden - invalid authentication or authorization
      security:
        - bearerAuth: []
components:
  schemas:
    ListDoNotCallListResponse:
      type: object
      properties:
        doNotCallList:
          type: array
          items:
            $ref: '#/components/schemas/DoNotCallListEntry'
        metadata:
          type: object
          properties:
            nextPage:
              type: string
              description: URL to fetch the next page of results
    DoNotCallListEntry:
      type: object
      properties:
        customerPhoneNumber:
          type: string
          description: The phone number on the Do Not Call list
        callId:
          type: string
          nullable: true
          description: The ID of the call that triggered this entry, if applicable
        createdAt:
          type: string
          format: date-time
          description: When the entry was added to the Do Not Call list
      required:
        - customerPhoneNumber
        - createdAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Key authentication

````