Endpoints associated with creating and managing user accounts.
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.
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.
Successful response
{- "country_list_ids": [
- 1
]
}
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Here are your countries selection.",
- "data": [
- {
- "id": 1,
- "name": "Australia",
- "code": "AU",
- "region": "Oceania",
- "agreed_at": null,
- "registration_entity": null,
- "registration_status": {
- "id": 1,
- "name": "NOT_INITIATED"
}, - "jotform_id": "12345",
- "sms_registration_type": 0,
- "block_registration": 0,
- "block_leads": 0,
- "trial_from_address": "",
- "restricted_sending": 0,
- "trial_sending": 0,
- "trial_sending_description": "",
- "has_regulation_requirements": 0,
- "regulation_requirements_description": "You can only send from a Dedicated ShortCode. Marketing Messages must be sent from a zero-rated shortcode. Messages must comply with DIA guidelines including opt-in consent and a way to opt-out. https://help.clicksend.com/article/7ifkmw5vd5-australia%22"
}
]
}
Get Countries for global sending
Get the list of selected countries.
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
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": [
- {
- "id": 1,
- "name": "Australia",
- "code": "AU",
- "region": "Oceania",
- "agreed_at": null,
- "registration_entity": null,
- "registration_status": {
- "id": 1,
- "name": "NOT_INITIATED"
}, - "jotform_id": "12345",
- "sms_registration_type": 0,
- "block_registration": 0,
- "block_leads": 0,
- "trial_from_address": "",
- "restricted_sending": 0,
- "trial_sending": 0,
- "trial_sending_description": "",
- "has_regulation_requirements": 0,
- "regulation_requirements_description": "You can only send from a Dedicated ShortCode. Marketing Messages must be sent from a zero-rated shortcode. Messages must comply with DIA guidelines including opt-in consent and a way to opt-out. https://help.clicksend.com/article/7ifkmw5vd5-australia%22"
}
]
}
Update Country Rule
To agree on rules and regulations of selected countries and confirm selection.
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.
Successful response
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": [
- {
- "id": 1,
- "name": "Australia",
- "code": "AU",
- "region": "Oceania",
- "agreed_at": null,
- "registration_entity": null,
- "registration_status": {
- "id": 1,
- "name": "NOT_INITIATED"
}, - "jotform_id": "12345",
- "sms_registration_type": 0,
- "block_registration": 0,
- "block_leads": 0,
- "trial_from_address": "",
- "restricted_sending": 0,
- "trial_sending": 0,
- "trial_sending_description": "",
- "has_regulation_requirements": 0,
- "regulation_requirements_description": "You can only send from a Dedicated ShortCode. Marketing Messages must be sent from a zero-rated shortcode. Messages must comply with DIA guidelines including opt-in consent and a way to opt-out. https://help.clicksend.com/article/7ifkmw5vd5-australia%22"
}
]
}
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.
Successful response
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": [
- {
- "id": 1,
- "name": "Australia",
- "code": "AU",
- "region": "Oceania"
}
]
}
Get all country codes
Get all countries
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
curl --include \ 'https://rest.clicksend.com/v3/countries'
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "List of Countries.",
- "data": [
- {
- "code": "AF",
- "value": "Afghanistan"
}, - {
- "code": "AU",
- "value": "Australia"
}, - {
- "code": "FI",
- "value": "Finland"
}
]
}
Get supported list of timezones.
Get supported list of timezones.
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.
Successful response
curl --include \ --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \ 'https://rest.clicksend.com/v3/timezones'
{- "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..."
]
}