This endpoint is deprecated.
Purchase number
DEPRECATED:
SUNSET:
SUCCESSOR:
Using the number ID or number, this method enables you to buy a new number. For buying a US number, only the number should be provided. For all other purchases, only the numberKey must be provided.
For purchasing US numbers, it is not advisable to use this method, but rather its successor.
Please log in to see full path URL. Learn why.
post
/numbers/1/numbers
Authorizations:
Scopes:
Request rate limit:
1 requests / second (per account)
Request Body schema:
application/jsoncollapse all -
Either numberKey of the number to be purchased or a number needs to be provided
numberKey | string |
number | string |
applicationId | string [ 0 .. 255 ] characters ID of the Application that would be associated with the number. |
entityId | string [ 0 .. 255 ] characters ID of the Entity that would be associated with the number. |
Responses
200
OK
201
Created
400
Bad Request
401
Unauthorized
403
Forbidden
404
Not Found
429
Too Many Requests
500
Internal Server Error
Request samples
- Payload
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
Content type
application/json
Example
numberKey
numberKey
Copy
Collapse all {- "numberKey": "58B3840032C7774BAC840EEEA2C23A44"
}
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
Content type
application/json
Copy
Collapse all {- "numberKey": "58B3840032C7774BAC840EEEA2C23A44",
- "number": "447860041117",
- "country": "GB",
- "type": "VIRTUAL_LONG_NUMBER",
- "capabilities": [
- "SMS"
], - "shared": false,
- "price": {
- "pricePerMonth": 5,
- "setupPrice": 0,
- "currency": "EUR"
}
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See