---
title: "Buy Number"
method: POST
path: "/phone-numbers/buy-number"
---

# Buy Number

`POST /phone-numbers/buy-number`

## Headers

- `authorization` string, required

## Request body

- PhoneNumberRequest
  - `phoneNumber` string, required
  - `countryCode` string, required
  - `agentId` string, required
  - `provider` string
  - `isSecondary` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/phonely/apis/fastapi.md) · [All operations](https://skmtc.net/phonely/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phonely/fastapi/revisions/9bfd5599d479/schema)
