API endpoints for managing default sender settings in a user's account. The Smart Assign Service API automatically selects a compliant SenderID for each country you send to, with an option to set your own default. It also lets you retrieve a list of compliant SenderIDs per country, providing transparency, control, and confidence in SMS delivery.
https://rest.clicksend.com/
Creates a new default sender configuration to automate the selection of compliant SenderIDs. By configuring a default sender you no longer need to define the sender_id
string when sending SMS messages. The default sender will be picked up automatically.
For more information on Sender IDs, please refer to What is a Sender ID or Sender Number?
The country code of the recipient. Must be a valid ISO 3166-1 alpha-2 country code.
The type of product for the assignment. Support for additional types coming soon.
Array detailing sender strategies. Must contain exactly 1 element. Multiple strategies support coming soon.
The type of sender for this strategy.
Unique identifier for the sender. Format varies based on sender_type
:
shortcode
: Numeric, 3-8 digits.longcode
, tollfree
, 10DLC
, own_number
: 2-15 digits, may include +
prefix.alpha_tag
: 3-11 alphanumeric characters, must include at least one letter or +
.shared_longcode
: Can be null or empty string.Important: The
sender_id
must be in valid format, owned, and has ready to use status for the correspondingsender_type
.
The country code of the sender, using the ISO 3166-1 alpha-2 format (e.g., "US").
This field is required in the following cases:
sender_type
is own_number
, longcode
, tollfree
, or 10DLC
sender_id
follows the US/Canada number format (starts with +1
)For all other cases, this field is optional.
https://rest.clicksend.com/v3/default-senders
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request POST \
--header "Content-Type: application/json" \
--data-binary " {
\"country_code\": \"AU\",
\"product_type\": \"SMS\",
\"default_sender_strategies\": [
{
\"sender_id\": \"ClickSend\",
\"sender_type\": \"alpha_tag\",
\"note\": \"This is a test default sender\"
}
]
}" \
'https://rest.clicksend.com/v3/senders/default-senders'
Successful response
Message providing additional information.
Type of product for which the setting is applied.
Default sender strategies. Must contain 1 or more objects.
Type of the sender.
Identifier for the sender. Must be between 3-20 characters.
ISO 3166-1 alpha-2 formatted country code.
Priority level of the sender in the strategy. Must be a positive integer.
Status of the sender in the strategy.
Overall status of the default sender.
Timestamp of when the default sender was created. Must be in ISO 8601 format.
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Operation completed successfully", "data": { "id": "f99872cc-11a6-48ba-a9f2-bcfb6dd1e3d4", "user_id": 123456, "subaccount_id": 45678, "country_code": "AU", "product_type": "SMS", "default_sender_strategies": [ … ], "status": "ENABLED", "created_timestamp": "2021-08-02T00:00:00Z", "updated_timestamp": "2021-08-02T00:00:00Z" } }
https://rest.clicksend.com/v3/default-senders
curl --include \
--request GET \
--header "Content-Type: application/json" \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
'https://rest.clicksend.com/v3/senders/default-senders?offset=f99872cc-11a6-48ba-a9f2-bcfb6dd1e3d4%238fa5ebc2-777b-45db-a448-ec76a40d4384&per_page=1&sort_by=created_timestamp&sort_direction=asc'
Successful response
Message providing additional information.
URL for the current page.
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Operation completed successfully", "data": { "data": [ … ], "per_page": 1, "self_page_url": "https://api.clicksend.com/v4/sender_assignment_settings?offset=f99872cc-11a6-48ba-a9f2-bcfb6dd1e3d4#8fa5ebc2-777b-45db-a448-ec76a40d4384&per_page=1", "next_page_url": "https://api.clicksend.com/v4/sender_assignment_settings?offset=f99872cc-11a6-48ba-a9f2-bcfb6dd1e3d4#8fa5ebc2-777b-45db-a448-ec76a40d4384&per_page=1" } }
Updates the details of an existing default sender configuration.
For more information on Sender IDs, please refer to What is a Sender ID or Sender Number?
Array detailing sender strategies. Must contain exactly 1 element. Multiple strategies support coming soon.
The type of sender for this strategy.
Unique identifier for the sender. Format varies based on sender_type
:
shortcode
: Numeric, 3-8 digits.longcode
, tollfree
, 10DLC
, own_number
: 2-15 digits, may include +
prefix.alpha_tag
: 3-11 alphanumeric characters, must include at least one letter or +
.shared_longcode
: Can be null or empty string.Important: The
sender_id
must be in valid format, owned, and has ready to use status for the correspondingsender_type
.
The country code of the sender, using the ISO 3166-1 alpha-2 format (e.g., "US").
This field is required in the following cases:
sender_type
is own_number
, longcode
, tollfree
, or 10DLC
sender_id
follows the US/Canada number format (starts with +1
)For all other cases, this field is optional.
https://rest.clicksend.com/v3/default-senders/{default_sender_id}
curl --include \
--request PATCH \
--header "Content-Type: application/json" \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--data-binary "{
\"default_sender_strategies\": [
{
\"sender_id\": \"ClickSend\",
\"sender_type\": \"alpha_tag\",
\"note\": \"This is a test default sender\"
}
]
}" \
'https://rest.clicksend.com/v3/senders/default-senders/{default_sender_id}'
Successful response
Message providing additional information.
Type of product for which the setting is applied.
Default sender strategies. Must contain 1 or more objects.
Type of the sender.
Identifier for the sender. Must be between 3-20 characters.
ISO 3166-1 alpha-2 formatted country code.
Priority level of the sender in the strategy. Must be a positive integer.
Status of the sender in the strategy.
Overall status of the default sender.
Timestamp of when the default sender was created. Must be in ISO 8601 format.
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Operation completed successfully", "data": { "id": "f99872cc-11a6-48ba-a9f2-bcfb6dd1e3d4", "user_id": 123456, "subaccount_id": 45678, "country_code": "AU", "product_type": "SMS", "default_sender_strategies": [ … ], "status": "ENABLED", "created_timestamp": "2021-08-02T00:00:00Z", "updated_timestamp": "2021-08-02T00:00:00Z" } }
https://rest.clicksend.com/v3/default-senders/{default_sender_id}
curl --include \
--request GET \
--header "Content-Type: application/json" \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
'https://rest.clicksend.com/v3/senders/default-senders/{default_sender_id}'
Successful response
Message providing additional information.
Type of product for which the setting is applied.
Default sender strategies. Must contain 1 or more objects.
Type of the sender.
Identifier for the sender. Must be between 3-20 characters.
ISO 3166-1 alpha-2 formatted country code.
Priority level of the sender in the strategy. Must be a positive integer.
Status of the sender in the strategy.
Overall status of the default sender.
Timestamp of when the default sender was created. Must be in ISO 8601 format.
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Operation completed successfully", "data": { "id": "f99872cc-11a6-48ba-a9f2-bcfb6dd1e3d4", "user_id": 123456, "subaccount_id": 45678, "country_code": "AU", "product_type": "SMS", "default_sender_strategies": [ … ], "status": "ENABLED", "created_timestamp": "2021-08-02T00:00:00Z", "updated_timestamp": "2021-08-02T00:00:00Z" } }
https://rest.clicksend.com/v3/default-senders/{default_sender_id}
curl --include \
--request DELETE \
--header "Content-Type: application/json" \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
'https://rest.clicksend.com/v3/senders/default-senders/{default_sender_id}'
https://rest.clicksend.com/v3/senders/compliant-sender-types
curl --include \
--request GET \
--header "Content-Type: application/json" \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
'https://rest.clicksend.com/v3/senders/compliant-sender-types?filter[product_type]=SMS&filter[country_code][0]=AU&filter[country_code][1]=US'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Compliant sender types retrieved successfully", "data": { "data": [ … ] } }