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.
Join the BETA Program:
Early access to Smart Assign is available. Contact the sales team to opt-in and participate in the BETA program.
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?
Successful response
{- "country_code": "AU",
- "product_type": "SMS",
- "default_sender_strategies": [
- {
- "sender_id": "ClickSend",
- "sender_type": "alpha_tag",
- "note": "This is a test default sender"
}
]
}
{- "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": [
- {
- "sender_type": "alpha_tag",
- "sender_id": "ClickSend",
- "priority": 1,
- "status": "ENABLED",
- "note": "This is a test default sender"
}
], - "status": "ENABLED",
- "created_timestamp": "2021-08-02T00:00:00Z",
- "updated_timestamp": "2021-08-02T00:00:00Z"
}
}
Retrieve a list of default senders for the current user
Successful response
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'
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Operation completed successfully",
- "data": {
- "data": [
- {
- "id": "f99872cc-11a6-48ba-a9f2-bcfb6dd1e3d4",
- "user_id": 123456,
- "subaccount_id": 45678,
- "country_code": "AU",
- "product_type": "SMS",
- "default_sender_strategies": [
- {
- "sender_type": "alpha_tag",
- "sender_id": "ClickSend",
- "priority": 1,
- "status": "ENABLED",
- "note": "This is a test default sender"
}
], - "status": "ENABLED",
- "created_timestamp": "2021-08-02T00:00:00Z",
- "updated_timestamp": "2021-08-02T00:00:00Z"
}
], - "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?
required | Array of objects = 1 items Array detailing sender strategies. Must contain exactly 1 element. Multiple strategies support coming soon. |
Successful response
{- "default_sender_strategies": [
- {
- "sender_id": "ClickSend",
- "sender_type": "alpha_tag",
- "note": "This is a test default sender"
}
]
}
{- "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": [
- {
- "sender_type": "alpha_tag",
- "sender_id": "ClickSend",
- "priority": 1,
- "status": "ENABLED",
- "note": "This is a test default sender"
}
], - "status": "ENABLED",
- "created_timestamp": "2021-08-02T00:00:00Z",
- "updated_timestamp": "2021-08-02T00:00:00Z"
}
}
Retrieve detailed information about a specific default sender configuration
Successful response
curl --include \ --request GET \ --header "Content-Type: application/json" \ --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \ 'https://rest.clicksend.com/v3/senders/default-senders/{default_sender_id}'
{- "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": [
- {
- "sender_type": "alpha_tag",
- "sender_id": "ClickSend",
- "priority": 1,
- "status": "ENABLED",
- "note": "This is a test default sender"
}
], - "status": "ENABLED",
- "created_timestamp": "2021-08-02T00:00:00Z",
- "updated_timestamp": "2021-08-02T00:00:00Z"
}
}
Removes a specified default sender setting.
If you don't configure a default sender and leave the sender_id
string blank when sending an SMS,
Smart Assign will pick the best suitable, compliant, available SenderID for you.
Successful response (No Content)
curl --include \ --request DELETE \ --header "Content-Type: application/json" \ --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \ 'https://rest.clicksend.com/v3/senders/default-senders/{default_sender_id}'
Retrieves the list of compliant sender types for specific countries
Successful response
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][]=AU&filter[country_code][]=US'
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Compliant sender types retrieved successfully",
- "data": {
- "data": [
- {
- "recipient_country_code": "AU",
- "blocked_sender_types": [
- "tollfree",
- "10DLC"
], - "allowed_sender_types": [
- {
- "sender_type": "longcode",
- "allowed_sender_countries": {
- "global": false,
- "country_codes": [
- "AU",
- "US",
- "GB"
]
}
}, - {
- "sender_type": "alpha_tag",
- "allowed_sender_countries": {
- "global": true
}
}
]
}, - {
- "recipient_country_code": "US",
- "blocked_sender_types": [
- "own_number"
], - "allowed_sender_types": [
- {
- "sender_type": "10DLC",
- "allowed_sender_countries": {
- "global": false,
- "country_codes": [
- "US",
- "CA"
]
}
}
]
}
]
}
}