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

# Get regulatory requirements

> Get regulatory requirements for purchasing phone numbers in a specific country. Some countries require additional documentation (addresses, identity documents) before phone numbers can be activated.



## OpenAPI

````yaml /openapi.json get /v1/phone-numbers/requirements
openapi: 3.0.3
info:
  title: Zavu Unified Messaging Layer API
  version: 0.2.0
  description: >
    Unified multi-channel messaging API for Zavu.


    Supported channels:

    - **SMS**: Simple text messages

    - **WhatsApp**: Rich messaging with media, buttons, lists, CTA URL buttons,
    and templates

    - **Telegram**: Bot messaging with text, media, and interactive elements

    - **Email**: Transactional emails via Amazon SES


    Design goals:

    - Simple `send()` entrypoint for developers

    - Project-level authentication via Bearer token

    - Support for all WhatsApp message types (text, image, video, audio,
    document, sticker, location, contact, buttons, list, cta_url, reaction,
    template)

    - If a non-text message type is sent, WhatsApp channel is used automatically

    - 24-hour WhatsApp conversation window enforcement

    - Universal `to` field accepts phone numbers (E.164), email addresses, or
    numeric chat IDs (Telegram/Instagram)
servers:
  - url: https://api.zavu.dev
security:
  - bearerAuth: []
paths:
  /v1/phone-numbers/requirements:
    get:
      summary: Get regulatory requirements
      description: >-
        Get regulatory requirements for purchasing phone numbers in a specific
        country. Some countries require additional documentation (addresses,
        identity documents) before phone numbers can be activated.
      operationId: getPhoneNumberRequirements
      parameters:
        - name: countryCode
          in: query
          required: true
          schema:
            type: string
            minLength: 2
            maxLength: 2
          example: DE
          description: Two-letter ISO country code.
        - name: type
          in: query
          schema:
            $ref: '#/components/schemas/PhoneNumberType'
          description: Type of phone number (local, mobile, tollFree).
      responses:
        '200':
          description: List of requirements for the country/type combination.
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Requirement'
              example:
                items:
                  - id: req_123
                    countryCode: DE
                    phoneNumberType: local
                    action: ordering
                    requirementTypes:
                      - id: address_proof
                        name: Proof of Address
                        description: A document proving your address in Germany
                        type: document
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    PhoneNumberType:
      type: string
      enum:
        - local
        - mobile
        - tollFree
    Requirement:
      type: object
      description: A group of requirements for a specific country/phone type combination.
      required:
        - id
        - countryCode
        - phoneNumberType
        - action
        - requirementTypes
      properties:
        id:
          type: string
        countryCode:
          type: string
          example: DE
        phoneNumberType:
          type: string
          example: local
        action:
          type: string
          example: ordering
        requirementTypes:
          type: array
          items:
            $ref: '#/components/schemas/RequirementType'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: invalid_request
        message:
          type: string
          example: Phone number is invalid
        details:
          type: object
          additionalProperties: true
    RequirementType:
      type: object
      description: A specific requirement type within a requirement group.
      required:
        - id
        - name
        - description
        - type
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        type:
          $ref: '#/components/schemas/RequirementFieldType'
        example:
          type: string
          nullable: true
        acceptanceCriteria:
          $ref: '#/components/schemas/RequirementAcceptanceCriteria'
    RequirementFieldType:
      type: string
      description: Type of requirement field.
      enum:
        - textual
        - address
        - document
        - action
    RequirementAcceptanceCriteria:
      type: object
      description: Acceptance criteria for a requirement.
      properties:
        minLength:
          type: integer
          nullable: true
        maxLength:
          type: integer
          nullable: true
        allowedValues:
          type: array
          items:
            type: string
          nullable: true
        regexPattern:
          type: string
          nullable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````