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

# Purchase a number

> Purchase an available phone number for your Amplify account.

Purchases the specified available number when additional regulatory information is not required in the request.

Provide `number` in [E.164 format](/guides/api-conventions), including the leading `+` (for example, `+13346412481`). A number without the leading `+` is invalid.

The optional `type` field selects the service type. Its currently accepted values are `fax` and `voice`.


## OpenAPI

````yaml POST /v1/numbers/purchase
openapi: 3.1.0
info:
  title: Amplify Customer API
  version: 1.0.0
  description: |-
    Canonical contract for the Amplify customer-facing API. This YAML file is
    the source of truth for Postman and Mintlify. Operations marked with
    x-amplify-validation-status: pending were migrated from the legacy Postman
    collection and must be validated before their contract is considered final.
servers:
  - url: https://api.amplify.xyz
    description: Production
  - url: https://dev-api.amplify.xyz
    description: Development
security: []
tags:
  - name: Authentication
  - name: Fax
  - name: Send Faxes
  - name: Receive Faxes
  - name: Manage Faxes
  - name: Workspace
  - name: Numbers
  - name: Contacts
  - name: Documents
  - name: Templates
paths:
  /v1/numbers/purchase:
    post:
      tags:
        - Numbers
      summary: Purchase a number
      description: >-
        Purchases an available phone number for the authenticated account when
        no additional regulatory submission is required in the request.
      operationId: postv1NumbersPurchase
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                number:
                  type: string
                  pattern: ^\+[1-9]\d{1,14}$
                  description: >-
                    Phone number to purchase in E.164 format, including the
                    leading `+`.
                type:
                  type: string
                  enum:
                    - fax
                    - voice
                  description: Optional service type for the purchased number.
              required:
                - number
            example:
              number: '+13346412481'
              type: fax
      responses:
        '200':
          description: >-
            The number was purchased and provisioned to the authenticated
            account.
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - message
                  - data
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    required:
                      - number_id
                      - order_id
                    properties:
                      number_id:
                        type: integer
                      order_id:
                        type: string
              example:
                status: 1
                message: Number purchased successfully
                data:
                  number_id: 2650
                  order_id: '3042009471086757685'
        '422':
          description: >-
            The number could not be purchased because it is invalid or no longer
            available.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationMessageResponse'
              example:
                status: 0
                message: >-
                  Your selected number is already purchased by other user please
                  choose other number
      security:
        - bearerAuth: []
components:
  schemas:
    ValidationMessageResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: integer
          description: Indicates that the request was not accepted.
        message:
          type: string
          description: Human-readable validation message.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````