Everything about Email Delivery Receipt Automations
Everything about Email Delivery Receipt Automations
Get all email delivery receipt automations
Get all email delivery receipt automations
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/automations/email/receipt'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Here is your result.", "data": [ { … } ] }
Create email delivery receipt automations
Create email delivery receipt automations
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
rule_name | string | true | none | Rule Name. |
match_type | number | true | none | Match Type. 0=All reports. |
action | string | true | none | Action to be taken (AUTO_REPLY, EMAIL_USER, EMAIL_FIXED, URL, SMS, POLL, GROUP_SMS, MOVE_CONTACT, CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL, CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE). |
action_address | string | true | none | Action address. |
enabled | number | true | none | Enabled: Disabled=0 or Enabled=1. |
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 " {
\"rule_name\":\"My Rule\",
\"match_type\": 0,
\"action\":\"URL\",
\"action_address\":\"http://yourdomain.com\",
\"enabled\":1
}" \
'https://rest.clicksend.com/v3/automations/email/receipt'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Automation email receipt rule has been created.", "data": { "receipt_rule_id": 1, "rule_name": "Email Test Rule", "match_type": 0, "action": "URL", "action_address": "http://yourdomain.com", "enabled": 1 } }
Get specific email delivery receipt automation
Get specific email delivery receipt automation
Parameter | In | Type | Required | Description |
---|---|---|---|---|
receipt_rule_id | path | integer(int32) | true | Receipt rule id |
Refer to Status Codes for definitions of HTTP status code responses.
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
'https://rest.clicksend.com/v3/automations/email/receipt/{rule_id}'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Here is your result.", "data": { "receipt_rule_id": 1, "rule_name": "Email Test Rule", "match_type": 0, "action": "URL", "action_address": "http://yourdomain.com", "enabled": 1 } }
Update email delivery receipt automation
Update email delivery receipt automation
Parameter | In | Type | Required | Description |
---|---|---|---|---|
receipt_rule_id | path | integer(int32) | true | Receipt rule id |
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
rule_name | string | true | none | Rule Name. |
match_type | number | true | none | Match Type. 0=All reports. |
action | string | true | none | Action to be taken (AUTO_REPLY, EMAIL_USER, EMAIL_FIXED, URL, SMS, POLL, GROUP_SMS, MOVE_CONTACT, CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL, CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE). |
action_address | string | true | none | Action address. |
enabled | number | true | none | Enabled: Disabled=0 or Enabled=1. |
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 " {
\"rule_name\":\"My Rule\",
\"match_type\": 0,
\"action\":\"URL\",
\"action_address\":\"http://yourdomain.com\",
\"enabled\":1
}" \
'https://rest.clicksend.com/v3/automations/email/receipt/{rule_id}'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Automation email receipt rule has been updated.", "data": { "receipt_rule_id": 1, "rule_name": "Email Test Rule", "match_type": 0, "action": "URL", "action_address": "http://yourdomain.com", "enabled": 1 } }
Delete email delivery receipt automation
Delete email delivery receipt automation
Parameter | In | Type | Required | Description |
---|---|---|---|---|
receipt_rule_id | path | integer(int32) | true | Receipt rule id |
Refer to Status Codes for definitions of HTTP status code responses.
This endpoint requires authentication, more info...
Refer to Status Codes for definitions of HTTP status code responses.
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request DELETE \
'https://rest.clicksend.com/v3/automations/email/receipt/{rule_id}'
{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Automation email receipt rule has been deleted.", "data": true }