You can use the Qualified Numbers API to qualify numbers you want Sinch to host and have available for use with Sinch SMS services. Qualifying a number involves verifying ownership of a number either by providing a one time passcode sent to the number by voice call or by providing invoices for multiple numbers. Once numbers are qualified, you can then enable those numbers for SMS text messaging services.
Note: The SMS enablement process is only supported in United States and Canada.
Returns a list of qualified numbers 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.
{- "qualifiedNumbers": [
- {
- "phoneNumber": "+12025550134",
- "projectId": "abcd12ef-ab12-ab12-bc34-abcdef123456",
- "regionCode": "string",
- "globalProcessState": "GLOBAL_PROCESS_STATE_UNSPECIFIED",
- "osrEligibility": {
- "status": 0,
- "error": "string"
}, - "ownershipVerification": {
- "status": 0,
- "error": "string"
}, - "hostedNumber": {
- "status": 0,
- "error": "string"
}, - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z"
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Return a qualified number as specified by the phone number in the path.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
phoneNumber required |
OK
phoneNumber | string The phone number in e.164 format with leading +. |
projectId | string The ID of the project to which the number belongs. |
regionCode | string |
globalProcessState | string <enum> The global processing state of the qualified number. |
object (QualifiedNumber_OsrEligibilityDetails) | |
object (QualifiedNumber_OwnershipVerificationDetails) | |
object (QualifiedNumber_HostedNumberDetails) | |
createdTime | string <date-time> |
updatedTime | string <date-time> |
NOT FOUND: The resource could not be found.
INTERNAL: Internal server error. Typically, a server bug.
{- "phoneNumber": "+12025550134",
- "projectId": "abcd12ef-ab12-ab12-bc34-abcdef123456",
- "regionCode": "string",
- "globalProcessState": "GLOBAL_PROCESS_STATE_UNSPECIFIED",
- "osrEligibility": {
- "status": 0,
- "error": "string"
}, - "ownershipVerification": {
- "status": 0,
- "error": "string"
}, - "hostedNumber": {
- "status": 0,
- "error": "string"
}, - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z"
}
Deletes a qualified number as specified by the phone number in the path.
OK
NOT FOUND: The resource could not be found.
INTERNAL: Internal server error. Typically, a server bug.
{- "code": "404",
- "message": "The imported number could not be found.",
- "status": "NOT_FOUND"
}
Create a request to qualify a batch of numbers. After you have submitted the request, you must send an email to orders@sinch.com attaching all of the invoices related to the phone numbers in the request. In most cases, it will take the Sinch team 1-3 days to review your documentation and qualify your numbers.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
OK
Array of objects (QualifiedNumber) | |||||||||||||||||||
Array
|
NOT FOUND: The resource could not be found.
INTERNAL: Internal server error. Typically, a server bug.
{- "phoneNumbers": [
- "+12345612345"
]
}
{- "qualifiedNumbers": [
- {
- "phoneNumber": "+12025550134",
- "projectId": "abcd12ef-ab12-ab12-bc34-abcdef123456",
- "regionCode": "string",
- "globalProcessState": "GLOBAL_PROCESS_STATE_UNSPECIFIED",
- "osrEligibility": {
- "status": 0,
- "error": "string"
}, - "ownershipVerification": {
- "status": 0,
- "error": "string"
}, - "hostedNumber": {
- "status": 0,
- "error": "string"
}, - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z"
}
]
}
Enables text capability for the specified qualified numbers. You can enable up to 500 numbers at once. To enable a number for SMS, you must include a Campaign ID and billing information for a Letter of Authorization to be generated. The information required can differ depending on if you are a direct customer of Sinch or a reseller. The Letter of Authorization will be sent to the email you provide in the request to be e-signed.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
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. |
{- "regionCode": "US",
- "numbers": [
- "+12025550134"
], - "servicePlanId": "YOUR_service_plan_id",
- "campaignId": "YOUR_campaign_id",
- "directLoaInfo": {
- "authorisedPerson": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@email.com"
}, - "address": {
- "buildingNumber": "1234",
- "street": "Main St",
- "city": "NYC",
- "state": "NY",
- "postalCode": "01002",
- "country": "US"
}, - "currentVoiceCarrier": "Verizon"
}, - "scheduledOsrUpdateTime": "2023-01-13T14:34:40.968Z",
- "migrateToSinchTmo": true
}
{- "hostingOrderId": "string"
}
Text enable Toll Free qualified numbers of a specific project by creating a hosting order.
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"
}
}
Uses the code you received from the Send voice challenge operation to verify that you own the phone number.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
phoneNumber required |
OK
phoneNumber | string The phone number in e.164 format with leading +. |
projectId | string The ID of the project to which the number belongs. |
regionCode | string |
globalProcessState | string <enum> The global processing state of the qualified number. |
object (QualifiedNumber_OsrEligibilityDetails) | |
object (QualifiedNumber_OwnershipVerificationDetails) | |
object (QualifiedNumber_HostedNumberDetails) | |
createdTime | string <date-time> |
updatedTime | string <date-time> |
NOT FOUND: The resource could not be found.
INTERNAL: Internal server error. Typically, a server bug.
{- "code": "1234"
}
{- "phoneNumber": "+12025550134",
- "projectId": "abcd12ef-ab12-ab12-bc34-abcdef123456",
- "regionCode": "string",
- "globalProcessState": "GLOBAL_PROCESS_STATE_UNSPECIFIED",
- "osrEligibility": {
- "status": 0,
- "error": "string"
}, - "ownershipVerification": {
- "status": 0,
- "error": "string"
}, - "hostedNumber": {
- "status": 0,
- "error": "string"
}, - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z"
}
Sends a voice challenge to the phone number specified in the path to verify that you own the number. The voice call contains a code that you must use to verify the number.
projectId required | string Found on your Sinch Customer Dashboard. Settings > Projects. Example: d1923022-5199-4bb3-a513-c47b3a656bc5 |
phoneNumber required |
OK
phoneNumber | string The phone number in e.164 format with leading +. |
projectId | string The ID of the project to which the number belongs. |
regionCode | string |
globalProcessState | string <enum> The global processing state of the qualified number. |
object (QualifiedNumber_OsrEligibilityDetails) | |
object (QualifiedNumber_OwnershipVerificationDetails) | |
object (QualifiedNumber_HostedNumberDetails) | |
createdTime | string <date-time> |
updatedTime | string <date-time> |
NOT FOUND: The resource could not be found.
INTERNAL: Internal server error. Typically, a server bug.
{- "phoneNumber": "+12025550134",
- "projectId": "abcd12ef-ab12-ab12-bc34-abcdef123456",
- "regionCode": "string",
- "globalProcessState": "GLOBAL_PROCESS_STATE_UNSPECIFIED",
- "osrEligibility": {
- "status": 0,
- "error": "string"
}, - "ownershipVerification": {
- "status": 0,
- "error": "string"
}, - "hostedNumber": {
- "status": 0,
- "error": "string"
}, - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z"
}