Hosting Orders
Import numbers using hosting orders
Import numbers associated with hosting orders of a specific project and schedule the async provisioning to Sinch SMS platform and linking to campaign if applicable.
<b>Note:</b> This operation is limited to five numbers. If you want to increase the quantity of numbers you can import using this operation, please contact your account manager for authorization.
post/v1/projects/{projectId}/hostingOrders:importNumbers
Path parameters
projectIdstring required
Example:d1923022-5199-4bb3-a513-c47b3a656bc5
Found on your Sinch Customer Dashboard. Settings > Projects.
Request body
Example request
{
"projectId": "YOUR_project_id",
"displayName": "MyImportRequest",
"regionCode": "US",
"numbers": [
"+12025550134"
],
"servicePlanId": "YOUR_service_plan_id",
"campaignId": "YOUR_campaign_id"
}Response
A successful response with a hosting order, or an error
Example response
{
"projectId": "YOUR_project_id",
"hostingOrderId": "YOUR_hosting_order_id",
"displayName": "MyHostingOrder",
"regionCode": "US",
"servicePlanId": "YOUR_service_plan_id",
"campaignId": "YOUR_campaign_id",
"callbackUrl": "https://www.your-callback-server.com/callback"
}