International Messaging
Endpoints associated with creating and managing user accounts.
https://rest.clicksend.com/
Request
Select Countries
Use this endpoint to select countries that you intend to send sms / mms to. To remove / unselect a country, just remove the country id from the array in the payload.
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
country_list_ids | number | true | none | Country list ID's |
Refer to Status Codes for definitions of HTTP status code responses.
https://rest.clicksend.com/v3/user-countries
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl --location --request POST 'https://rest.clicksend.com/v3/user-countries' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==' \
--data '{
"country_list_ids": [1, 2]
}'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Here are your countries selection.", "data": [ { … } ] }
Request
Get Countries for global sending
Get the list of selected countries.
Refer to Status Codes for definitions of HTTP status code responses.
https://rest.clicksend.com/v3/user-countries
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl --location 'https://rest.clicksend.com/v3/user-countries' \
--header 'Authorization: Bearer YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==' \
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Here are your countries selection.", "data": [ { … } ] }
Request
Update Country Rule
To agree on rules and regulations of selected countries and confirm selection.
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
country_list_ids | number | true | none | Country list ID's |
Refer to Status Codes for definitions of HTTP status code responses.
https://rest.clicksend.com/v3/user-countries/agree
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl --location --request POST 'https://rest.clicksend.com/v3/user-countries/agree' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==' \
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Here are your countries selection.", "data": [ { … } ] }
Request
List of countries
List of countries with IDs that can be used in selecting countries for Global sending.
Refer to Status Codes for definitions of HTTP status code responses.
https://rest.clicksend.com/v3/country-list
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl --location 'https://rest.clicksend.com/v3/country-list' \
--header 'Authorization: Bearer YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==' \
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "List of Countries.", "data": [ { … } ] }
Request
Get all country codes
Get all countries
Refer to Status Codes for definitions of HTTP status code responses.
https://rest.clicksend.com/v3/countries
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl --include \
'https://rest.clicksend.com/v3/countries'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "List of Countries.", "data": [ { … }, { … }, { … } ] }
Request
Get supported list of timezones.
Get supported list of timezones.
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
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.
https://rest.clicksend.com/v3/timezones
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
'https://rest.clicksend.com/v3/timezones'
Successful response
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "List of timezones.", "data": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Asmera", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "etc..." ] }