API endpoints for managing dedicated numbers as sender IDs for messaging services.
Get all available dedicated numbers
Parameter | In | Type | Required | Description |
---|---|---|---|---|
page | query | integer(int32) | false | Page number |
limit | query | integer(int32) | false | Number of records per page |
q | query | string | false | Filter numbers based on multiple criteria. The query string should be formatted as key-value pairs separated by commas. Available filter keys: type , number_type , country |
q2 | query | string | false | Filter numbers based on multiple criteria. The query string should be formatted as key-value pairs separated by commas. Available filter keys: type |
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
curl --include \ --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \ 'https://rest.clicksend.com/v3/numbers'
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Here are you dedicated numbers.",
- "data": {
- "total": 2,
- "per_page": 15,
- "current_page": 1,
- "last_page": 1,
- "next_page_url": null,
- "prev_page_url": null,
- "from": 1,
- "to": 2,
- "data": [
- {
- "dedicated_number": "+61411111111",
- "country": "AU",
- "price": "18.59",
- "_country_name": "Australia"
}, - {
- "dedicated_number": "+61411111111",
- "country": "AU",
- "price": "18.59",
- "_country_name": "Australia"
}
]
}
}
Buy dedicated number
Parameter | In | Type | Required | Description |
---|---|---|---|---|
dedicated_number | path | string | true | Phone number to purchase |
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
""
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Here is your new number.",
- "data": {
- "dedicated_number": "+12282060576",
- "country": "US",
- "price_total": "8.98",
- "_price_setup": "22.22",
- "_price_monthly": "11.11",
- "_currency": {
- "currency_name_short": "USD",
- "currency_prefix_d": "$",
- "currency_prefix_c": "¢",
- "currency_name_long": "US Dollar"
}
}
}
Get all dedicated numbers by country
Parameter | In | Type | Required | Description |
---|---|---|---|---|
country | path | string | true | Country code to search |
search | query | string | false | Your search pattern or query. |
search_type | query | integer(int32) | false | Your strategy for searching, 0 = starts with, 1 = anywhere, 2 = ends with. |
page | query | integer(int32) | false | Page number |
limit | query | integer(int32) | false | Number of records per page |
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
curl --include \ --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \ 'https://rest.clicksend.com/v3/numbers/search/{country}'
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Here are some numbers.",
- "data": [
- {
- "country": "US",
- "country_name": "United States of America",
- "dedicated_number": "+12132633745",
- "price_setup": "0.0000",
- "price_monthly": "20.7100",
- "price_total": "20.7100"
}, - {
- "country": "US",
- "country_name": "United States of America",
- "dedicated_number": "+12134657532",
- "price_setup": "0.0000",
- "price_monthly": "20.7100",
- "price_total": "20.7100"
}
], - "_currency": {
- "currency_name_short": "AUD",
- "currency_prefix_d": "$",
- "currency_prefix_c": "c",
- "currency_name_long": "Australian Dollars"
}
}