Everything about Email to SMS
Everything about Email to SMS
Get list of email to sms allowed addresses
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.
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
'https://rest.clicksend.com/v3/sms/email-sms'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Here are some data.", "data": [ { … }, { … } ] }
Create email to sms allowed address
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
email_address | string | true | none | Your email address |
from | string | false | yes | Your sender id |
Refer to Status Codes for definitions of HTTP status code responses.
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request POST \
--header "Content-Type: application/json" \
--data-binary " {
\"email_address\":\"Cv3p0@gmail.com\",
\"from\":\"+17128845887\"
}" \
'https://rest.clicksend.com/v3/sms/email-sms'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "New data has been saved.", "data": { "email_address_id": 107, "email_address": "Cv3p0@gmail.com", "from": "+17128845887" } }
Get list of email to sms stripped string rules
Get list of email to sms stripped string rules
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.
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
'https://rest.clicksend.com/v3/sms/email-sms-stripped-strings'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "New data has been saved.", "data": { "total": 2, "per_page": 15, "current_page": 1, "last_page": 1, "next_page_url": null, "prev_page_url": null, "data": [ … ] } }
Create email to sms stripped string rule
Create email to sms stripped string rules
Parameter | In | Type | Required | Description |
---|---|---|---|---|
stripped-string | body | string | true | String to be stripped. |
Refer to Status Codes for definitions of HTTP status code responses.
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request POST \
--header "Content-Type: application/json" \
--data-binary "{
\"strip_string\" : \"~~~test~~~\"
}" \
'https://rest.clicksend.com/v3/sms/email-sms-stripped-strings'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Strip string has been created.", "data": { "rule_id": 20, "strip_string": "test" } }
Get email to sms stripped string rule
Get email to sms stripped string rule
Parameter | In | Type | Required | Description |
---|---|---|---|---|
rule_id | path | integer(int32) | true | Your rule id |
Refer to Status Codes for definitions of HTTP status code responses.
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
'https://rest.clicksend.com/v3/sms/email-sms-stripped-strings/{rule_id}'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Here is your result.", "data": { "rule_id": 18, "stripped_string": "You've received a reply from." } }
Update email to sms stripped string rule
Update email to sms stripped string rule
Parameter | In | Type | Required | Description |
---|---|---|---|---|
rule_id | path | integer(int32) | true | Your rule id |
stripped-string | body | string | true | String to be stripped. |
Refer to Status Codes for definitions of HTTP status code responses.
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request PUT \
--header "Content-Type: application/json" \
--data-binary "{
\"strip_string\" : \"~~~test1~~~\"
}" \
'https://rest.clicksend.com/v3/sms/email-sms-stripped-strings/{rule_id}'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Strip string has been updated.", "data": { "rule_id": 20, "stripped_string": "~~~~test1~~~~" } }
Delete email to sms stripped string rule
Delete email to sms stripped string rule
Parameter | In | Type | Required | Description |
---|---|---|---|---|
rule_id | path | integer(int32) | true | Your rule id |
Refer to Status Codes for definitions of HTTP status code responses.
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request DELETE \
'https://rest.clicksend.com/v3/sms/email-sms-stripped-strings/{rule_id}'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Strip string has been deleted.", "data": true }