Request an internal phone number
Changed onRenting a phone number incurs a cost. The new number is assigned to you unless you name other users via assign_to, which requires the "Manage Team Phone Numbers" permission.
If a number was rented, a 201 response is returned with the new number. If no number was rented (4xx response code), the response contains a status field which may contain one of the values below. New statuses may be added in the future.
- has-voice-only: This country/prefix combination only has non-SMS-capable numbers. You can attempt renting the number by passing with_sms as false.
- needs-more-info: More information (such as proof of address) is needed to rent this number. This number can only be rented by contacting Close support.
- billing-error: An error related to billing has occurred. For example, the telephony budget has been reached, or there are not enough funds and recharging failed.
- error: An error has occurred while renting this number. A human-readable message is returned in the error field.
Request
- Base URLhttps://api.close.com/api/v1
- URLhttps://api.close.com/api/v1/phone_number/request/internal/
- Auth
- HTTP basic
- or OAuth 2Authorization code: https://app.close.com/oauth2/authorize/Token URL: https://api.close.com/oauth2/token/
Request body
Response
Successful response
Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
- info
added the new optional request property
- info