Authentifizierung
| Schlüssel | Beschreibung | Wo | Beispiel |
|---|---|---|---|
| Authorization | Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt. | Headers | Basic <base64> |
Pfad Parameter
abcd1234Account ID to filter to. Use your Vonage API key as the value. You can see your API Key on your Vonage API Dashboard.
10Items per page
12Page Offset
1100Number of pages in the entire result set
100Number of items in the entire result set
PoolSpecifies the behaviour when no number with matching prefix
PoolCustomFromRejecttrueIf set to true and such a number is available, select a number at random from within this pool with the same country prefix as the destination.
trueWhen true, select the same Sender ID on any subsequent messages to a given destination.
pool_nameID assigned to a pool of numbers
abcd1234Account ID to work against
/v2/numberpools/abcd123/custom_user_pool_idLink to the current pool
/v2/numberpools/abcd123/custom_user_pool_id/numbersLink to the numbers in the pool
/v2/numberpools?page=3Link to the current page
/v2/numberpools?page=4Link to the next available page
/v2/numberpools?page=2Link to the previous available page
/v2/numberpools?page=1Link to the first available page
/v2/numberpools?page=10Link to the last available page
Beispiel Antwort
{
"page_size": 10,
"page": 2,
"total_pages": 100,
"total_items": 100,
"_embedded": {
"pools": [
{
"fallback": "Pool",
"localized_sender_preferred": true,
"predictable_sender_preferred": true,
"pool_id": "pool_name",
"account_id": "abcd1234",
"_links": {
"self": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id"
},
"numbers": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id/numbers"
}
}
}
]
},
"_links": {
"self": {
"href": "/v2/numberpools?page=3"
},
"next": {
"href": "/v2/numberpools?page=4"
},
"previous": {
"href": "/v2/numberpools?page=2"
},
"first": {
"href": "/v2/numberpools?page=1"
},
"last": {
"href": "/v2/numberpools?page=10"
}
}
}Authentifizierung
| Schlüssel | Beschreibung | Wo | Beispiel |
|---|---|---|---|
| Authorization | Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt. | Headers | Basic <base64> |
Pfad Parameter
abcd1234Account ID to filter to. Use your Vonage API key as the value. You can see your API Key on your Vonage API Dashboard.
PoolSpecifies the behaviour when no number with matching prefix
PoolCustomFromRejecttrueIf set to true and such a number is available, select a number at random from within this pool with the same country prefix as the destination.
trueWhen true, select the same Sender ID on any subsequent messages to a given destination.
pool_nameID assigned to a pool of numbers
Beispiel Anfrage
{
"fallback": "Pool",
"localized_sender_preferred": true,
"predictable_sender_preferred": true,
"pool_id": "pool_name"
}{
"fallback": "Pool",
"localized_sender_preferred": true,
"predictable_sender_preferred": true,
"pool_id": "pool_name"
}PoolSpecifies the behaviour when no number with matching prefix
PoolCustomFromRejecttrueIf set to true and such a number is available, select a number at random from within this pool with the same country prefix as the destination.
trueWhen true, select the same Sender ID on any subsequent messages to a given destination.
pool_nameID assigned to a pool of numbers
abcd1234Account ID to work against
/v2/numberpools/abcd123/custom_user_pool_idLink to the current pool
/v2/numberpools/abcd123/custom_user_pool_id/numbersLink to the numbers in the pool
Beispiel Antwort
{
"fallback": "Pool",
"localized_sender_preferred": true,
"predictable_sender_preferred": true,
"pool_id": "pool_name",
"account_id": "abcd1234",
"_links": {
"self": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id"
},
"numbers": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id/numbers"
}
}
}Authentifizierung
| Schlüssel | Beschreibung | Wo | Beispiel |
|---|---|---|---|
| Authorization | Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt. | Headers | Basic <base64> |
Pfad Parameter
abcd1234Account ID to filter to. Use your Vonage API key as the value. You can see your API Key on your Vonage API Dashboard.
pool_namePool ID to work with
PoolSpecifies the behaviour when no number with matching prefix
PoolCustomFromRejecttrueIf set to true and such a number is available, select a number at random from within this pool with the same country prefix as the destination.
trueWhen true, select the same Sender ID on any subsequent messages to a given destination.
pool_nameID assigned to a pool of numbers
abcd1234Account ID to work against
/v2/numberpools/abcd123/custom_user_pool_idLink to the current pool
/v2/numberpools/abcd123/custom_user_pool_id/numbersLink to the numbers in the pool
Beispiel Antwort
{
"fallback": "Pool",
"localized_sender_preferred": true,
"predictable_sender_preferred": true,
"pool_id": "pool_name",
"account_id": "abcd1234",
"_links": {
"self": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id"
},
"numbers": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id/numbers"
}
}
}Authentifizierung
| Schlüssel | Beschreibung | Wo | Beispiel |
|---|---|---|---|
| Authorization | Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt. | Headers | Basic <base64> |
Pfad Parameter
abcd1234Account ID to filter to. Use your Vonage API key as the value. You can see your API Key on your Vonage API Dashboard.
pool_namePool ID to work with
PoolSpecifies the behaviour when no number with matching prefix
PoolCustomFromRejecttrueIf set to true and such a number is available, select a number at random from within this pool with the same country prefix as the destination.
trueWhen true, select the same Sender ID on any subsequent messages to a given destination.
pool_nameID assigned to a pool of numbers
Beispiel Anfrage
{
"fallback": "Pool",
"localized_sender_preferred": true,
"predictable_sender_preferred": true,
"pool_id": "pool_name"
}{
"fallback": "Pool",
"localized_sender_preferred": true,
"predictable_sender_preferred": true,
"pool_id": "pool_name"
}PoolSpecifies the behaviour when no number with matching prefix
PoolCustomFromRejecttrueIf set to true and such a number is available, select a number at random from within this pool with the same country prefix as the destination.
trueWhen true, select the same Sender ID on any subsequent messages to a given destination.
pool_nameID assigned to a pool of numbers
abcd1234Account ID to work against
/v2/numberpools/abcd123/custom_user_pool_idLink to the current pool
/v2/numberpools/abcd123/custom_user_pool_id/numbersLink to the numbers in the pool
Beispiel Antwort
{
"fallback": "Pool",
"localized_sender_preferred": true,
"predictable_sender_preferred": true,
"pool_id": "pool_name",
"account_id": "abcd1234",
"_links": {
"self": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id"
},
"numbers": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id/numbers"
}
}
}Authentifizierung
| Schlüssel | Beschreibung | Wo | Beispiel |
|---|---|---|---|
| Authorization | Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt. | Headers | Basic <base64> |
Pfad Parameter
abcd1234Account ID to filter to. Use your Vonage API key as the value. You can see your API Key on your Vonage API Dashboard.
pool_namePool ID to work with
PoolSpecifies the behaviour when no number with matching prefix
PoolCustomFromRejecttrueIf set to true and such a number is available, select a number at random from within this pool with the same country prefix as the destination.
trueWhen true, select the same Sender ID on any subsequent messages to a given destination.
pool_nameID assigned to a pool of numbers
abcd1234Account ID to work against
/v2/numberpools/abcd123/custom_user_pool_idLink to the current pool
/v2/numberpools/abcd123/custom_user_pool_id/numbersLink to the numbers in the pool
Beispiel Antwort
{
"fallback": "Pool",
"localized_sender_preferred": true,
"predictable_sender_preferred": true,
"pool_id": "pool_name",
"account_id": "abcd1234",
"_links": {
"self": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id"
},
"numbers": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id/numbers"
}
}
}Authentifizierung
| Schlüssel | Beschreibung | Wo | Beispiel |
|---|---|---|---|
| Authorization | Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt. | Headers | Basic <base64> |
Pfad Parameter
abcd1234Account ID to filter to. Use your Vonage API key as the value. You can see your API Key on your Vonage API Dashboard.
pool_namePool ID to work with
10Items per page
12Page Offset
1100Number of pages in the entire result set
100Number of items in the entire result set
/v2/numberpools/abcd123/pool_id/numbers?page=3Link to the current page
/v2/numberpools/abcd123/pool_id/numbers?page=4Link to the next available page
/v2/numberpools/abcd123/pool_id/numbers?page=2Link to the previous available page
/v2/numberpools/abcd123/pool_id/numbers?page=1Link to the first available page
/v2/numberpools/abcd123/pool_id/numbers?page=10Link to the last available page
Beispiel Antwort
{
"page_size": 10,
"page": 2,
"total_pages": 100,
"total_items": 100,
"_embedded": {
"numbers": [
"15556660001",
"15556660002"
]
},
"_links": {
"self": {
"href": "/v2/numberpools/abcd123/pool_id/numbers?page=3"
},
"next": {
"href": "/v2/numberpools/abcd123/pool_id/numbers?page=4"
},
"previous": {
"href": "/v2/numberpools/abcd123/pool_id/numbers?page=2"
},
"first": {
"href": "/v2/numberpools/abcd123/pool_id/numbers?page=1"
},
"last": {
"href": "/v2/numberpools/abcd123/pool_id/numbers?page=10"
}
}
}Add numbers to a pool
Add a series of numbers to a pool. This endpoint supports partial successes. If a request is partially
successful, the response code will be 207 and information will be returned in the body.
If all items succeed, you will receive a 200. If all items fail, you will receive a 400.
Authentifizierung
| Schlüssel | Beschreibung | Wo | Beispiel |
|---|---|---|---|
| Authorization | Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt. | Headers | Basic <base64> |
Pfad Parameter
abcd1234Account ID to filter to. Use your Vonage API key as the value. You can see your API Key on your Vonage API Dashboard.
pool_namePool ID to work with
Beispiel Anfrage
{
"numbers": [
"15556660001",
"15556660002"
]
}{
"numbers": [
"15556660001",
"15556660002"
]
}Numbers added to pool
/v2/numberpools/abcd123/custom_user_pool_id/numbersLink back to the number pool
Beispiel Antwort
{
"numbers": [
"15556660001"
],
"_links": {
"self": {
"href": "/v2/numberpools/abcd123/custom_user_pool_id/numbers"
}
}
}Remove a series of number from a pool
Remove a series of numbers from a pool. This endpoint supports partial successes. If a request is partially
successful, the response code will be 207 and details can be found in the response body.
If all items succeed, you will receive a 200. If all items fail, you will receive a 400.
Authentifizierung
| Schlüssel | Beschreibung | Wo | Beispiel |
|---|---|---|---|
| Authorization | Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt. | Headers | Basic <base64> |
Pfad Parameter
abcd1234Account ID to filter to. Use your Vonage API key as the value. You can see your API Key on your Vonage API Dashboard.
pool_namePool ID to work with
Beispiel Anfrage
{
"numbers": [
"15556660001",
"15556660002"
]
}{
"numbers": [
"15556660001",
"15556660002"
]
}Authentifizierung
| Schlüssel | Beschreibung | Wo | Beispiel |
|---|---|---|---|
| Authorization | Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt. | Headers | Basic <base64> |
Pfad Parameter
abcd1234Account ID to filter to. Use your Vonage API key as the value. You can see your API Key on your Vonage API Dashboard.
pool_namePool ID to work with
71514155550110Number to work with inside a pool