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

# Get phone numbers allow or block list

> Retrieve the list of phone numbers in the allow or block list.

In order to get access to this endpoint, contact our support team.


Retrieve the phone numbers currently on your account's allow list or block list. Use the `{action}` path parameter — either `allow` or `block` — to select which list to fetch. Allow list entries bypass the anti-fraud system; block list entries are rejected before a verification is ever attempted.

<Info>
  Access to the management API is opt-in. [Contact our support team](mailto:support@prelude.so) to enable it on your account. You can also edit these lists from the **Verify API > Configure > Numbers** tab of the [Prelude dashboard](https://app.prelude.so/). For background, see [Prevent Fraud](/verify/v2/documentation/prevent-fraud#allow-and-block-lists).
</Info>


## OpenAPI

````yaml get /v2/verification/management/phone-numbers/{action}
openapi: 3.1.0
info:
  title: Prelude API
  version: 2.0.0
  description: The Prelude API allows you to send messages to your users.
  contact:
    email: support@prelude.so
servers:
  - url: https://api.prelude.dev
    description: Production server
security:
  - apiToken: []
tags:
  - name: Notify
    description: Send transactional and marketing messages with compliance enforcement.
  - name: Transactional
    description: Send transactional messages (deprecated - use Notify API instead).
  - name: Verify
    description: Verify phone numbers.
  - name: Watch
    description: Evaluate email addresses and phone numbers for trustworthiness.
  - name: Lookup
    description: >-
      Retrieve detailed information about a phone number including carrier data,
      line type, and portability status.
paths:
  /v2/verification/management/phone-numbers/{action}:
    get:
      tags:
        - Verify
      summary: Get phone numbers allow or block list
      description: |
        Retrieve the list of phone numbers in the allow or block list.

        In order to get access to this endpoint, contact our support team.
      operationId: getPhoneNumbersAllowOrBlock
      parameters:
        - name: action
          in: path
          required: true
          schema:
            type: string
            enum:
              - allow
              - block
          description: The action type - either "allow" or "block"
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPhoneNumbersAllowOrBlockResponse'
        '400':
          description: KO
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    GetPhoneNumbersAllowOrBlockResponse:
      type: object
      required:
        - phone_numbers
      properties:
        phone_numbers:
          type: array
          description: A list of phone numbers in the allow or block list.
          items:
            type: object
            required:
              - phone_number
              - created_at
            properties:
              phone_number:
                type: string
                format: phone_number
                description: An E.164 formatted phone number.
                examples:
                  - '+30123456789'
              created_at:
                type: string
                format: date-time
                description: The date and time when the phone number was added to the list.
                examples:
                  - '2024-01-01T12:00:00Z'
    Error:
      type: object
      properties:
        code:
          type: string
          description: The error code.
          examples:
            - invalid_phone_number
        message:
          type: string
          examples:
            - >-
              The provided phone number is invalid. Provide a valid E.164 phone
              number.
          description: A human-readable message describing the error.
        type:
          type: string
          examples:
            - bad_request
          description: The error type.
        request_id:
          type: string
          examples:
            - 3d19215e-2991-4a05-a41a-527314e6ff6a
          description: >-
            A string that identifies this specific request. Report it back to us
            to help us diagnose your issues.
      required:
        - code
        - message
        - type
  securitySchemes:
    apiToken:
      type: http
      scheme: bearer

````