This API lets you create a hosted messaging number order for the number you want to provision for SMS.
POST
https://api.plivo.com/v1/Account/{auth_id}/HostedMessagingNumber/
alias Requiredstring | A friendly name for the hosted messaging order. |
number Requiredstring | Phone number to be hosted, in E.164 format. It must be a local number in the US or Canada. |
application_id Requiredstring | The application to be assigned to the phone number. |
loa_id Requiredstring | The unique identifier of the LOA. |
HTTP Status Code: 201
{
"alias":"check-profile-number-profile-test1-25",
"api_id":"65dbe7be-4080-11ec-a1c3-0242ac110006",
"application":"/v1/Account/MA2025RK4E639VJFZAGV/Application/43598296806979568/",
"created_at":"2022-10-13T05:51:47.946467Z",
"failure_reason":"",
"hosted_messaging_number_id":"3b4afde5-80e0-4fb6-463a-281b688d8a7d",
"hosting_status":"IN_REVIEW",
"loa_id":"b855aaf1-1b1d-443c-8a35-4cf65102e2ef",
"message":"created",
"number":"12142292186",
"resource_uri":"/v1/Account/MA2025RK4E639VJFZAGV/HostedMessagingNumber/3b4afde5-80e0-4fb6-463a-281b688d8a7d/"
}
1
2
3
4
curl -i --user AUTH_ID:AUTH_TOKEN \
-H "Content-Type: application/json" \
-d '{"alias": "Testing", "loa_id": "b855aaf1-1b1d-443c-8a35-4cf65102e2ef","application_id": "43598296806979568","number": "12142292275"}' \
https://api.plivo.com/v1/Account/{auth_id}/HostedMessagingNumber/