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.
Successful response
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": [
- {
- "email_address_id": 84,
- "email_address": "my@email.com",
- "from": "+13523944199"
}, - {
- "email_address_id": 85,
- "email_address": "my@email.com",
- "from": "+13523944199"
}
]
}
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.
Successful response
{- "email_address": "test@test.com",
- "from": "test",
- "from_fax": "0411111111",
- "subaccount_id": "{{subaccountId}}"
}
{- "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.
Successful response
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": [
- {
- "rule_id": 18,
- "strip_string": "This is a test1."
}, - {
- "rule_id": 19,
- "strip_string": "This is a test2."
}
]
}
}
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.
Successful response
{- "strip_string": "test"
}
{- "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.
Successful response
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.
Successful response
{- "strip_string": "test"
}
{- "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.
Successful response
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
}