Download OpenAPI specification:Download
Hosted numbers provide you with an easy method to port your SMS enabled numbers to Sinch or to use SMS messaging and other products to send and receive messages, on voice-enabled numbers (including landline numbers) that you already own.
Note: The SMS enablement process is only supported in United States and Canada.
The Hosting Orders API allows you to manage all the numbers that you are hosting on the Sinch platform. This includes numbers that you have ported to Sinch and/or any non- Sinch numbers that you already own and are hosting on Sinch to enable Sinch SMS messaging and other products.
Lists the hosting orders for the project.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
OK
NOT FOUND: The resource could not be found.
INTERNAL: Internal server error. Typically, a server bug.
{- "hostingOrders": [
- {
- "projectId": "YOUR_project_id",
- "hostingOrderId": "YOUR_hosting_order_id",
- "displayName": "MyHostingOrder",
- "regionCode": "US",
- "state": "HOSTING_ORDER_STATE_UNSPECIFIED",
- "type": "HOSTING_ORDER_TYPE_UNSPECIFIED",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "scheduledOsrUpdateTime": "2019-08-24T14:15:22Z",
- "servicePlanId": "YOUR_service_plan_id",
- "campaignId": "YOUR_campaign_id",
- "migrateToSinchTmo": true,
- "textEnableInfo": {
- "businessName": "Acme, Inc.",
- "authorisedPerson": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@company.com"
}, - "address": {
- "buildingNumber": "123",
- "street": "1st",
- "city": "New York",
- "state": "NY",
- "postalCode": "00001",
- "country": "USA"
}, - "serviceProvider": "string",
- "currentVoiceCarrier": "TMO",
- "nnid": "string",
- "loaType": 0
},
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Returns the hosting order specified by the hosting order ID.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
hostingOrderId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: 01arz3ndektsv4rrffq69g5fav |
OK
projectId | string The project ID to which the hosting order is associated. | ||||||||||||||||||||||||||||||||||||
hostingOrderId | string The unique ID of the hosting order. | ||||||||||||||||||||||||||||||||||||
displayName | string The friendly name of the hosting order. | ||||||||||||||||||||||||||||||||||||
regionCode | string The region code of the hosting order. Number hosting is only available for the US and Canada, so you must enter either "US" or "CA". | ||||||||||||||||||||||||||||||||||||
state | string The state of the hosting order. | ||||||||||||||||||||||||||||||||||||
type | string The hosting order type. | ||||||||||||||||||||||||||||||||||||
createdTime | string <date-time> Timestamp when the hosting order was created | ||||||||||||||||||||||||||||||||||||
updatedTime | string <date-time> Timestamp when the hosting order was last updated | ||||||||||||||||||||||||||||||||||||
scheduledOsrUpdateTime | string <date-time> Timestamp when the OSR update will be done | ||||||||||||||||||||||||||||||||||||
servicePlanId | string The service plan to which the hosting order is associated. | ||||||||||||||||||||||||||||||||||||
campaignId | string The campaign to which the hosting order is associated. | ||||||||||||||||||||||||||||||||||||
migrateToSinchTmo | boolean Displays if a number is assigned to another aggregator in T-Mobile's platform, and requires migration from previous aggregator to Sinch. | ||||||||||||||||||||||||||||||||||||
object (TextEnableInfo) | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
callbackUrl | string The client's callback URL to be called upon finishing the number import. |
NOT FOUND: The resource could not be found.
INTERNAL: Internal server error. Typically, a server bug.
{- "projectId": "YOUR_project_id",
- "hostingOrderId": "YOUR_hosting_order_id",
- "displayName": "MyHostingOrder",
- "regionCode": "US",
- "state": "HOSTING_ORDER_STATE_UNSPECIFIED",
- "type": "HOSTING_ORDER_TYPE_UNSPECIFIED",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "scheduledOsrUpdateTime": "2019-08-24T14:15:22Z",
- "servicePlanId": "YOUR_service_plan_id",
- "campaignId": "YOUR_campaign_id",
- "migrateToSinchTmo": true,
- "textEnableInfo": {
- "businessName": "Acme, Inc.",
- "authorisedPerson": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@company.com"
}, - "address": {
- "buildingNumber": "123",
- "street": "1st",
- "city": "New York",
- "state": "NY",
- "postalCode": "00001",
- "country": "USA"
}, - "serviceProvider": "string",
- "currentVoiceCarrier": "TMO",
- "nnid": "string",
- "loaType": 0
},
}
Returns the report object for a specific hosting order
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
hostingOrderId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: 01arz3ndektsv4rrffq69g5fav |
A successful response with a hosting order report, or an error
The imported number, project, hosting order, qualified number or phone number could not be found
Internal server error. Typically, a server bug.
{- "total": 1,
- "osrUpdated": 1,
- "smsProvisioned": 1,
- "addedToCampaign": 1
}
Lists the numbers belonging to the specified hosting order.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
hostingOrderId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: 01arz3ndektsv4rrffq69g5fav |
orderBy | string Parameter used to order the returned hosting orders |
pageToken | string The next page token value returned from a previous listing. Example: pageToken=C2VNYXJrEg4KDCsxMjAxMjI2MzUyOQ== |
pageSize | integer The maximum number of items to return, server can enforce an upper limit and overwrite the value. Example: pageSize=20 |
osrUpdateState | integer <enum> |
campaignProvisioningState | integer <enum> |
platformProvisioningState | integer <enum> |
OK
Array of objects (HostingOrderNumber) | |||||||||||||
Array
| |||||||||||||
nextPageToken | string | ||||||||||||
totalSize | integer <int32> |
NOT FOUND: The resource could not be found.
INTERNAL: Internal server error. Typically, a server bug.
{- "numbers": [
- {
- "projectId": "YOUR_project_id",
- "hostingOrderId": "YOUR_hosting_order_id",
- "phoneNumber": "+12025550134",
- "osrUpdate": {
- "nnid": "string",
- "state": "WAITING"
}, - "campaignProvisioning": {
- "campaignId": "YOUR_campaign_id",
- "state": "WAITING"
}, - "platformProvisioning": {
- "servicePlanId": "YOUR_service_plan_id",
- "state": "WAITING"
}
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Returns the specified phone number belonging to the specified hosting order.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
hostingOrderId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: 01arz3ndektsv4rrffq69g5fav |
phoneNumber required |
OK
projectId | string The project ID to which the number belongs. |
hostingOrderId | string The ID of the hosting order to which the number belongs. |
phoneNumber | string The phone number in e.164 format with leading +. |
object (HostingOrderNumber_OsrUpdate) | |
object (HostingOrderNumber_CampaignProvisioning) | |
object (HostingOrderNumber_PlatformProvisioning) | |
NOT FOUND: The resource could not be found.
INTERNAL: Internal server error. Typically, a server bug.
{- "projectId": "YOUR_project_id",
- "hostingOrderId": "YOUR_hosting_order_id",
- "phoneNumber": "+12025550134",
- "osrUpdate": {
- "nnid": "string",
- "state": "WAITING"
}, - "campaignProvisioning": {
- "campaignId": "YOUR_campaign_id",
- "state": "WAITING"
}, - "platformProvisioning": {
- "servicePlanId": "YOUR_service_plan_id",
- "state": "WAITING"
}
}
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.
Note: 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.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
The request to import hosting orders numbers in the current project
regionCode required | string The region code for the import request. |
numbers required | Array of strings An array of all the phone numbers associated with the import request. |
servicePlanId required | string The ID of the service plan to which the import request is associated. |
projectId | string The ID of the project to which the import request is associated. |
displayName | string The optional display name of the import request. |
campaignId | string The ID of the campaign to which the request is associated. |
callbackUrl | string The callback URL to be called for import numbers updates |
migrateToSinchTmo | boolean If a number is assigned to another aggregator in T-Mobile's platform, then T-Mobile will give an error code 60135 indicating that number needs to be “migrated” from previous aggregator to Sinch. This “migration” requires provisioning of number by setting this flag named to true for successful number linking process. |
A successful response with a hosting order, or an error
projectId | string The project ID to which the hosting order is associated. |
hostingOrderId | string The unique ID of the hosting order. |
displayName | string The friendly name of the hosting order. |
regionCode | string The region code of the hosting order. Number hosting is only available for the US and Canada, so you must enter either "US" or "CA". |
state | string The state of the hosting order. |
type | string The hosting order type. |
createdTime | string <date-time> Timestamp when the hosting order was created |
updatedTime | string <date-time> Timestamp when the hosting order was last updated |
servicePlanId | string The service plan to which the hosting order is associated. |
campaignId | string The campaign to which the hosting order is associated. |
migrateToSinchTmo | boolean Displays if a number is assigned to another aggregator in T-Mobile's platform, and requires migration from previous aggregator to Sinch. |
numberImport | object The number import object. |
callbackUrl | string The client's callback URL to be called upon finishing the number import. |
INTERNAL: Internal server error. Typically, a server bug.
{- "displayName": "Import numbers order",
- "regionCode": "US",
- "numbers": [
- "+17724295286",
- "+17724295287"
], - "servicePlanId": "07d6c2621f364b68856fe4938b7bb78f",
- "campaignId": "C3O8OGA",
- "migrateToSinchTmo": true
}
{- "projectId": "d1923022-5199-4bb3-a513-c47n7a656bc5",
- "hostingOrderId": "01arz3nhyrtsv4rrffq69g5fav",
- "displayName": "Hosting order with campaignId and smsAppId",
- "regionCode": "US",
- "state": "SUBMITTED",
- "type": "IMPORT",
- "createdTime": "2023-01-12T14:34:40.968Z",
- "updatedTime": "2023-01-12T14:34:40.968Z",
- "servicePlanId": "16e5c8d2odc842bda9a1b90e1673c174",
- "campaignId": "C3O84GA",
- "migrateToSinchTmo": true,
- "numberImport": "{}"
}
Text enable numbers associated with hosting orders of a specific project.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
The request to text-enable hosting orders numbers in the current project
regionCode required | string The region code for the hosting order. | ||||||||||||||||||||||||
numbers required | Array of strings An array of all the phone numbers associated with the hosting order. | ||||||||||||||||||||||||
servicePlanId required | string The ID of the service plan to which the hosting order is associated. | ||||||||||||||||||||||||
projectId | string The ID of the project to which the hosting order is associated. | ||||||||||||||||||||||||
displayName | string The optional display name of the hosting order. | ||||||||||||||||||||||||
nnid | string Defaults to either Sinch NNID or what was originally configured on the customer account. Sinch encourages customers to use the Sinch NNID, but if you want to use another NNID, please contact your account manager. | ||||||||||||||||||||||||
campaignId | string The ID of the campaign to which the hosting order is associated. | ||||||||||||||||||||||||
object (DirectLoaInfo) Letter of Authorization for direct Sinch customers. | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
object (ResellerLoaInfo) Letter of Authorization for resellers. | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
blanketLoaInfo | object (BlanketLoaInfo) You can set up a blanket Letter of Authorization (LoA) that will allow you to import numbers to your account without having to sign an LoA each time you submit a request. To set up a blanket LoA, email your account manager. Once the LoA has been approved, you can use this | ||||||||||||||||||||||||
scheduledOsrUpdateTime | string <date-time> | ||||||||||||||||||||||||
callbackUrl | string The client's callback URL to be called for text enablement updates. |
A successful response with a hosting order, or an error
projectId | string The project ID to which the hosting order is associated. | ||||||||||||||||||||||||||||||||||||
hostingOrderId | string The unique ID of the hosting order. | ||||||||||||||||||||||||||||||||||||
displayName | string The friendly name of the hosting order. | ||||||||||||||||||||||||||||||||||||
regionCode | string The region code of the hosting order. Number hosting is only available for the US and Canada, so you must enter either "US" or "CA". | ||||||||||||||||||||||||||||||||||||
state | string The state of the hosting order. | ||||||||||||||||||||||||||||||||||||
type | string The hosting order type. | ||||||||||||||||||||||||||||||||||||
createdTime | string <date-time> Timestamp when the hosting order was created | ||||||||||||||||||||||||||||||||||||
updatedTime | string <date-time> Timestamp when the hosting order was last updated | ||||||||||||||||||||||||||||||||||||
scheduledOsrUpdateTime | string <date-time> Timestamp when the OSR update will be done | ||||||||||||||||||||||||||||||||||||
servicePlanId | string The service plan to which the hosting order is associated. | ||||||||||||||||||||||||||||||||||||
campaignId | string The campaign to which the hosting order is associated. | ||||||||||||||||||||||||||||||||||||
migrateToSinchTmo | boolean Displays if a number is assigned to another aggregator in T-Mobile's platform, and requires migration from previous aggregator to Sinch. | ||||||||||||||||||||||||||||||||||||
object (TextEnableInfo) | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
callbackUrl | string The client's callback URL to be called upon finishing the number import. |
Status returned if any of the projectId, displayName, regionCode, numbers, nnid, servicePlanId or campaignId parameters are not valid
The imported number, project, hosting order, qualified number or phone number could not be found
The imported number already exists and cannot be created
Internal server error. Typically, a server bug.
{- "regionCode": "US",
- "numbers": [
- "+17724295286",
- "+17724295287"
], - "servicePlanId": "07d6c2621f364b68856fe4938b7bb78f",
- "campaignId": "C3O8OGA",
- "directLoaInfo": {
- "authorisedPerson": {
- "firstName": "John",
- "lastName": "Smith",
- "email": "email@domain.com"
}, - "address": {
- "buildingNumber": "2433",
- "street": "Vesta Drive",
- "city": "Chicago",
- "state": "IL",
- "postalCode": "60647",
- "country": "US"
}, - "currentVoiceCarrier": "Verizon"
}, - "scheduledOsrUpdateTime": "2023-01-13T14:34:40.968Z",
- "migrateToSinchTmo": true
}
{- "projectId": "d1923022-5199-4bb3-a513-c47n7a656bc5",
- "hostingOrderId": "01arz3nhyrtsv4rrffq69g5fav",
- "displayName": "Hosting order with campaignId, nnid and smsAppId",
- "regionCode": "US",
- "state": "SUBMITTED",
- "type": "TYPE_TEXT_ENABLE",
- "createdTime": "2023-01-12T14:34:40.968Z",
- "updatedTime": "2023-01-12T14:34:40.968Z",
- "scheduledOsrUpdateTime": "2023-01-13T14:34:40.968Z",
- "servicePlanId": "16e5c8d2odc842bda9a1b90e1673c174",
- "campaignId": "C3O84GA",
- "migrateToSinchTmo": true,
- "hostingOrderInfo": {
- "businessName": "Sinch AB",
- "authorisedPerson": {
- "firstName": "John",
- "lastName": "Smith",
- "email": "email@domain.com"
}, - "address": {
- "buildingNumber": "2433",
- "street": "Vesta Drive",
- "city": "Chicago",
- "state": "IL",
- "postalCode": "60647",
- "country": "US"
}, - "serviceProvider": "Sinch America Inc.",
- "currentVoiceCarrier": "Verizon",
- "nnid": "104029",
- "loaType": "DIRECT"
}
}
Text enable Toll Free numbers associated with hosting orders of a specific project.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
The request to text-enable hosting orders Toll Free numbers in the current project
Request for text enabling project Toll Free numbers.
regionCode required | string ISO 3166-1 alpha-2 country code of the phone number. Example: US, CA | ||||||||||||||||||||||
numbers required | Array of strings | ||||||||||||||||||||||
servicePlanId required | string The SMS service that the number will be linked to. The | ||||||||||||||||||||||
required | object (DirectLoaInfo) Letter of Authorization for direct Sinch customers. | ||||||||||||||||||||||
| |||||||||||||||||||||||
displayName | string The display name of the numbers. | ||||||||||||||||||||||
scheduledZipwhipProvisioningTime | string Optional field which allow to determine when Zipwhip provisioning will be done. Timestamp needs to be from UTC zone. Important! If LOA is signed after | ||||||||||||||||||||||
callbackUrl | string The callback URL to be called for text enablement updates |
A successful response with a hosting order, or an error
projectId | string The project ID to which the hosting order is associated. | ||||||||||||||||||||||||||||||||||||
hostingOrderId | string The unique ID of the hosting order. | ||||||||||||||||||||||||||||||||||||
displayName | string The friendly name of the hosting order. | ||||||||||||||||||||||||||||||||||||
regionCode | string The region code of the hosting order. Number hosting is only available for the US and Canada, so you must enter either "US" or "CA". | ||||||||||||||||||||||||||||||||||||
state | string The state of the hosting order. | ||||||||||||||||||||||||||||||||||||
type | string The hosting order type. | ||||||||||||||||||||||||||||||||||||
createdTime | string <date-time> Timestamp when the hosting order was created | ||||||||||||||||||||||||||||||||||||
updatedTime | string <date-time> Timestamp when the hosting order was last updated | ||||||||||||||||||||||||||||||||||||
scheduledOsrUpdateTime | string <date-time> Timestamp when the OSR update will be done | ||||||||||||||||||||||||||||||||||||
servicePlanId | string The service plan to which the hosting order is associated. | ||||||||||||||||||||||||||||||||||||
campaignId | string The campaign to which the hosting order is associated. | ||||||||||||||||||||||||||||||||||||
migrateToSinchTmo | boolean Displays if a number is assigned to another aggregator in T-Mobile's platform, and requires migration from previous aggregator to Sinch. | ||||||||||||||||||||||||||||||||||||
object (TextEnableInfo) | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
callbackUrl | string The client's callback URL to be called upon finishing the number import. |
Status returned if any of the projectId, displayName, regionCode, numbers, nnid, servicePlanId or campaignId parameters are not valid
The imported number, project, hosting order, qualified number or phone number could not be found
The imported number already exists and cannot be created
Internal server error. Typically, a server bug.
{- "regionCode": "US",
- "numbers": [
- "+18335870229",
- "+18339460473"
], - "servicePlanId": "07d6c2621f364b68856fe4938b7bb78f",
- "directLoaInfo": {
- "authorisedPerson": {
- "firstName": "John",
- "lastName": "Smith",
- "email": "email@domain.com"
}, - "address": {
- "buildingNumber": "2433",
- "street": "Vesta Drive",
- "city": "Chicago",
- "state": "IL",
- "postalCode": "60647",
- "country": "US"
}, - "currentVoiceCarrier": "Verizon",
- "scheduledZipwhipProvisioningTime": "2023-01-13T14:34:40.968Z",
- "migrateToSinchTmo": true
}
}
{- "projectId": "d1923022-5199-4bb3-a513-c47n7a656bc5",
- "hostingOrderId": "01arz3nhyrtsv4rrffq69g5fav",
- "displayName": "Hosting order with campaignId, nnid and smsAppId",
- "regionCode": "US",
- "state": "SUBMITTED",
- "type": "TYPE_TEXT_ENABLE",
- "createdTime": "2023-01-12T14:34:40.968Z",
- "updatedTime": "2023-01-12T14:34:40.968Z",
- "scheduledOsrUpdateTime": "2023-01-13T14:34:40.968Z",
- "servicePlanId": "16e5c8d2odc842bda9a1b90e1673c174",
- "campaignId": "C3O84GA",
- "migrateToSinchTmo": true,
- "hostingOrderInfo": {
- "businessName": "Sinch AB",
- "authorisedPerson": {
- "firstName": "John",
- "lastName": "Smith",
- "email": "email@domain.com"
}, - "address": {
- "buildingNumber": "2433",
- "street": "Vesta Drive",
- "city": "Chicago",
- "state": "IL",
- "postalCode": "60647",
- "country": "US"
}, - "serviceProvider": "Sinch America Inc.",
- "currentVoiceCarrier": "Verizon",
- "nnid": "104029",
- "loaType": "DIRECT"
}
}