> ## 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.

# Create address

> Create a regulatory address for phone number purchases. Some countries require a verified address before phone numbers can be activated.



## OpenAPI

````yaml /openapi.json post /v1/addresses
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/addresses:
    post:
      tags:
        - Regulatory
      summary: Create address
      description: >-
        Create a regulatory address for phone number purchases. Some countries
        require a verified address before phone numbers can be activated.
      operationId: createAddress
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddressCreateRequest'
            example:
              firstName: John
              lastName: Doe
              streetAddress: 123 Main St
              locality: Berlin
              postalCode: '10115'
              countryCode: DE
      responses:
        '201':
          description: Address created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddressResponse'
        '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:
    AddressCreateRequest:
      type: object
      required:
        - streetAddress
        - locality
        - postalCode
        - countryCode
      properties:
        firstName:
          type: string
          maxLength: 100
        lastName:
          type: string
          maxLength: 100
        businessName:
          type: string
          maxLength: 200
        streetAddress:
          type: string
          maxLength: 200
        extendedAddress:
          type: string
          maxLength: 100
        locality:
          type: string
          maxLength: 100
        administrativeArea:
          type: string
          maxLength: 100
        postalCode:
          type: string
          maxLength: 20
        countryCode:
          type: string
          minLength: 2
          maxLength: 2
          example: DE
    AddressResponse:
      type: object
      required:
        - address
      properties:
        address:
          $ref: '#/components/schemas/Address'
    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
    Address:
      type: object
      description: A regulatory address for phone number requirements.
      required:
        - id
        - streetAddress
        - locality
        - postalCode
        - countryCode
        - status
        - createdAt
      properties:
        id:
          type: string
        firstName:
          type: string
          nullable: true
        lastName:
          type: string
          nullable: true
        businessName:
          type: string
          nullable: true
        streetAddress:
          type: string
        extendedAddress:
          type: string
          nullable: true
        locality:
          type: string
        administrativeArea:
          type: string
          nullable: true
        postalCode:
          type: string
        countryCode:
          type: string
          example: DE
        status:
          $ref: '#/components/schemas/AddressStatus'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    AddressStatus:
      type: string
      enum:
        - pending
        - verified
        - rejected
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````