International Messaging (1.0.0)

Endpoints associated with creating and managing user accounts.

Select Countries for Global Sending

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.

This endpoint requires authentication, more info...
Request
Request Body schema: application/json
object
Responses
200

Successful response

post/v3/user-countries
Request samples
application/json
{
  • "country_list_ids": [
    ]
}
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "Here are your countries selection.",
  • "data": [
    ]
}

Get Countries for Global Sending

Get Countries for global sending

Get the list of selected countries.

Refer to Status Codes for definitions of HTTP status code responses.

This endpoint requires authentication, more info...
Responses
200

Successful response

get/v3/user-countries
Request samples
curl --location 'https://rest.clicksend.com/v3/user-countries' \
--header 'Authorization: Bearer YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==' \
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "Here are your countries selection.",
  • "data": [
    ]
}

Agree to rules and regulation

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.

This endpoint requires authentication, more info...
Request
Responses
200

Successful response

post/v3/user-countries/agree
Request samples
curl --location --request POST 'https://rest.clicksend.com/v3/user-countries/agree' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==' \
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "Here are your countries selection.",
  • "data": [
    ]
}

International Messaging

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.

This endpoint requires authentication, more info...
Responses
200

Successful response

get/v3/country-list
Request samples
curl --location 'https://rest.clicksend.com/v3/country-list' \
--header 'Authorization: Bearer YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==' \
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "List of Countries.",
  • "data": [
    ]
}

View Countries

Get all country codes

Get all countries

Refer to Status Codes for definitions of HTTP status code responses.

This endpoint does not require authentication
Responses
200

Successful response

get/v3/countries
Request samples
curl --include \
'https://rest.clicksend.com/v3/countries'
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "List of Countries.",
  • "data": [
    ]
}

Timezones

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.

This endpoint requires authentication, more info...
Request
header Parameters
Content-Type
string
Example: application/json
Responses
200

Successful response

get/v3/timezones
Request samples
curl --include \
     --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
'https://rest.clicksend.com/v3/timezones'
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "List of timezones.",
  • "data": [
    ]
}
Copyright © ClickSend 2024. All right reserved.