Get information about your numbers. It returns a list of numbers that you own, as well as their capability (voice or SMS). For the ones that are assigned to an app, it returns the application key of the app.
A success response, or an Error.
{- "numbers": [
- {
- "number": "+141511122233334\"",
- "capability": "voice"
}, - {
- "number": "+14151112223333",
- "applicationkey": "2457b630-45ef-4939-be88-93ffaebf4346",
- "capability": "voice"
}, - {
- "number": "+141511122233332",
- "applicationkey": "2457b656-45ed-4934-be77-88feaebe4238",
- "capability": "voice"
}
]
}
Assign a number or a list of numbers to an application.
numbers | Array of strings [ 1 .. 100 ] items The phone number or list of numbers in E.164 format. |
applicationkey | string indicates the application where the number(s) will be assigned. If empty, the application key that is used to sign the request will be used. |
capability | string indicates the DID capability that needs to be assigned to the chosen application. Valid values are 'voice' and 'sms'. Please note that the DID needs to support the selected capability. |
A success response, or an Error.
{- "numbers": "+14151112223333",
- "applicationkey": "11983f76-12c8-1111-9515-4785c7b67ca8",
- "capability": "voice"
}
Un-assign a number from an application.
number | string The phone number in E.164 format (https://en.wikipedia.org/wiki/E.164) |
applicationkey | string Indicates the application where the number(s) was assigned. dIf empty, the application key that is used to sign the request will be used. |
capability | string (optional) indicates the DID capability that was assigned to the chosen application. Please note that the DID needs to support the selected capability. |
A success response, or an Error.
{- "numbers": "+14151112223333",
- "applicationkey": "11983f76-12c8-1111-9515-4785c7b67ca8",
- "capability": "voice"
}
Returns any callback URLs configured for the specified application.
A success response, or an Error.
{
}
Update the configured callback URLs for the specified application.
A success response, or an Error.
{
}
Returns information about the requested number.
A success response, or an Error.
{- "method": "numberItem",
- "numberItem": {
- "countryId": "SE",
- "numberType": "Mobile",
- "normalizedNumber": "+14151112223333",
- "restricted": false,
- "rate": {
- "currencyId": "USD",
- "amount": 0.368
}
}
}