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

# Purchase Number

> Purchase an available Israeli number. Requires a payment method. Only Israeli numbers are supported — a non-Israeli `phone_number` is rejected with `400 {"error":"Only Israeli phone numbers are supported"}`.




## OpenAPI

````yaml POST /phone-numbers/purchase
openapi: 3.1.0
info:
  title: Yappr API
  description: >
    Create and manage AI voice agents, purchase phone numbers, configure tools,
    and initiate calls — all via REST.
  version: 1.0.0
  contact:
    url: https://goyappr.com
servers:
  - url: https://api.goyappr.com
    description: Production
security:
  - apiKey: []
paths:
  /phone-numbers/purchase:
    post:
      tags:
        - Phone Numbers
      summary: Purchase number
      description: >
        Purchase an available Israeli number. Requires a payment method. Only
        Israeli numbers are supported — a non-Israeli `phone_number` is rejected
        with `400 {"error":"Only Israeli phone numbers are supported"}`.
      operationId: purchasePhoneNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - phone_number
              properties:
                phone_number:
                  type: string
                  example: '+972551234567'
      responses:
        '200':
          description: >
            Purchase result. Israeli numbers always start as
            `pending_requirements` — they are never `active` at purchase time.
            Activation happens later, once regulatory requirements clear
            (usually 1–3 business days), promoted by a background job.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  phoneNumber:
                    type: string
                  monthlyPrice:
                    type: integer
                    description: Monthly cost in cents
                  currency:
                    type: string
                  status:
                    type: string
                    enum:
                      - pending_requirements
                    description: >-
                      Always pending_requirements at purchase time for Israeli
                      numbers.
                  message:
                    type: string
                    description: >-
                      Human-readable status note (e.g. regulatory-review
                      notice).
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard
        under **Settings → API Keys**.

````