openapi: 3.0.0
info:
  title: SMS
  description: Everything about Inbound SMS Rules
servers:
  - url: https://rest.clicksend.com
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
  schemas:
    pagination:
      type: object
      properties:
        total:
          type: integer
          description: The total number of items available for viewing.
          example: 2
        per_page:
          type: integer
          description: >-
            The number of items returned per page. This is specified in the
            limit parameter. You can have 100 items at maximum, and 15 at
            minimum.
          example: 15
        current_page:
          type: integer
          description: The current page number.
          example: 1
        last_page:
          type: integer
          description: The last page number.
          example: 1
        next_page_url:
          type: string
          nullable: true
          description: >-
            A URL of the next page. It will return **null** if there’s no next
            page.
          example: null
        prev_page_url:
          type: string
          nullable: true
          description: >-
            A URL of the previous page. It will return **null** if there’s no
            previous page.
          example: null
        from:
          type: integer
          description: The number of the first result in the current page.
          example: 1
        to:
          type: integer
          description: The number of the last result in the current page.
          example: 2
    sms_inbound_rule:
      type: object
      properties:
        inbound_rule_id:
          type: integer
          description: The ID of the inbound rule.
          example: 10
        dedicated_number:
          type: string
          description: The number to be used in the inbound rule.
          example: '+61298441484'
        rule_name:
          type: string
          description: The name of the inbound rule.
          example: My Rule 10
        message_search_type:
          type: integer
          description: The type of message search to be used in the inbound rule.
          example: 3
        message_search_term:
          type: string
          description: The message search term to be used in the inbound rule.
          example: My Search Term
        action:
          type: string
          description: The action to be taken in the inbound rule.
          example: CREATE_CONTACT_PLUS_EMAIL
        action_address:
          type: string
          description: The action address to be used in the inbound rule.
          example: '430'
        body:
          type: string
          nullable: true
          description: The body of the inbound rule.
          example: Hello, World!
        enabled:
          type: integer
          description: The status of the inbound rule.
          example: 1
    view-sms-inbound-automations:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your list of inbound rules.
        data:
          allOf:
            - $ref: '#/components/schemas/pagination'
            - type: object
              properties:
                data:
                  type: array
                  items:
                    $ref: '#/components/schemas/sms_inbound_rule'
                  example:
                    - sms_inbound_rule_id: 1
                      dedicated_number: '+61298441484'
                      rule_name: My Rule 10
                      message_search_type: 3
                      message_search_term: My Search Term
                      action: CREATE_CONTACT_PLUS_EMAIL
                      action_address: '430'
                      body: test@test.com
                      enabled: 1
                    - sms_inbound_rule_id: 9
                      dedicated_number: '+61298441484'
                      rule_name: My Rule 9
                      message_search_type: 3
                      message_search_term: My Search Term
                      action: CREATE_CONTACT
                      action_address: john@doe.com
                      body: null
                      enabled: 1
    create-sms-inbound-automation:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your record has been added.
        data:
          $ref: '#/components/schemas/sms_inbound_rule'
    view-sms-inbound-automation:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your inbound rule.
        data:
          $ref: '#/components/schemas/sms_inbound_rule'
    update-sms-inbound-automation:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your record has been updated.
        data:
          $ref: '#/components/schemas/sms_inbound_rule'
    delete-sms-inbound-automation:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your record has been deleted.
        data:
          type: array
          items: []
          example: []
    sms_delivery_receipt_rule:
      type: object
      properties:
        receipt_rule_id:
          type: integer
          description: The ID of the receipt rule.
          example: 5
        rule_name:
          type: string
          description: The name of the receipt rule.
          example: My Rule
        match_type:
          type: integer
          description: The type of match.
          example: 0
        action:
          type: string
          description: The type of action.
          example: EMAIL_FIXED
        action_address:
          type: string
          description: The address associated with the action.
          example: john@doe.com
        enabled:
          type: integer
          description: Indicates whether the rule is enabled.
          example: 1
    view-sms-delivery-receipt-rules:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your list of rule incoming sms receipt.
        data:
          allOf:
            - $ref: '#/components/schemas/pagination'
            - type: object
              properties:
                data:
                  type: array
                  items:
                    $ref: '#/components/schemas/sms_delivery_receipt_rule'
                  example:
                    - receipt_rule_id: 5
                      rule_name: My Rule
                      match_type: 0
                      action: EMAIL_FIXED
                      action_address: john@doe.com
                      enabled: 0
                    - receipt_rule_id: 6
                      rule_name: My Rule
                      match_type: 0
                      action: EMAIL_FIXED
                      action_address: john@doe.com
                      enabled: 1
                    - receipt_rule_id: 7
                      rule_name: My Rule
                      match_type: 0
                      action: EMAIL_FIXED
                      action_address: john@doe.com
                      enabled: 1
                    - receipt_rule_id: 8
                      rule_name: My Rule
                      match_type: 0
                      action: SMS
                      action_address: '+61298441484'
                      enabled: 1
                    - receipt_rule_id: 9
                      rule_name: My Rule
                      match_type: 0
                      action: URL
                      action_address: '+61298441485'
                      enabled: 1
    create-sms-delivery-receipt-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your new SMS receipt has been added.
        data:
          $ref: '#/components/schemas/sms_delivery_receipt_rule'
    view-sms-delivery-receipt-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your rule incoming voice receipt.
        data:
          $ref: '#/components/schemas/sms_delivery_receipt_rule'
    update-sms-delivery-receipt-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your rule incoming sms receipt has been updated.
        data:
          $ref: '#/components/schemas/sms_delivery_receipt_rule'
    delete-sms-delivery-receipt-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your rule incoming sms receipt has been deleted.
        data:
          type: array
          items: []
          example: []
paths:
  /v3/automations/sms/inbound:
    get:
      summary: View SMS Inbound Automations
      operationId: view-sms-inbound-automations
      description: >-
        _Get all inbound sms automations_


        Get all inbound sms automations


        ### Parameters


        | 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](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/docs/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/view-sms-inbound-automations'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
            'https://rest.clicksend.com/v3/automations/sms/inbound'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\InboundSMSRulesApi(new
            GuzzleHttp\Client(),$config);

            $q = "q_example"; // string | Your keyword or query.

            $page = 1; // int | Page number

            $limit = 10; // int | Number of records per page


            try {
                $result = $apiInstance->smsInboundAutomationsGet($q, $page, $limit);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling InboundSMSRulesApi->smsInboundAutomationsGet: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: |-
            using IO.ClickSend.ClickSend.Api;
            using IO.ClickSend.Client;
            using IO.ClickSend.ClickSend.Model;

            var configuration = new Configuration()
            {
                Username = USERNAME, 
                Password = API_KEY  
            };
            var inboundSMSRulesApi = new InboundSMSRulesApi(configuration);
            var response = inboundSMSRulesApi.SmsInboundAutomationsGet();
        - lang: Java
          source: |-
            package ClickSend;

            import ClickSend.Api.InboundSmsRulesApi;

            public class view_all_sms_inbound_automation {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                InboundSmsRulesApi apiInstance = new InboundSmsRulesApi(defaultClient);
                String q = "q_example"; // String | Your keyword or query.
                Integer page = 1; // Integer | Page number
                Integer limit = 10; // Integer | Number of records per page
                try {
                  String result = apiInstance.smsInboundAutomationsGet(q, page, limit);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling InboundSmsRulesApi#smsInboundAutomationsGet");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var inboundSmsRuleApi = new api.InboundSMSRulesApi("USERNAME",
            "API_KEY");


            var q = "q_example";

            var page = 1;

            var limit = 10;


            inboundSmsRuleApi.smsInboundAutomationsGet(q, page,
            limit).then(function(response) {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::InboundSMSRulesApi.new

            opts = {
              page: 1,  # Integer | Page number
              limit: 10 # Integer | Number of records per page
            }

            begin
              # Get all inbound sms automations
              result = api_instance.sms_inbound_automations_get(opts)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling InboundSMSRulesApi->sms_inbound_automations_get: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.InboundSMSRulesApi(clicksend_client.ApiClient(configuration))

            page = 1 # int | Page number (optional) (default to 1)

            limit = 10 # int | Number of records per page (optional) (default to
            10)


            try:
                # Get all inbound sms automations
                api_response = api_instance.sms_inbound_automations_get(page=page, limit=limit)
                print(api_response)
            except ApiException as e:
                print("Exception when calling InboundSMSRulesApi->sms_inbound_automations_get: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::InboundSMSRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api = WWW::ClickSendClient::InboundSMSRulesApi->new(username =>
            $username, password => $password);


            my $json_output = $api->sms_inbound_automations_get('page' =>
            '1','limit' => '10');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSInboundSmsRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *page = [[NSNumber alloc] initWithInt:1];

            NSNumber *limit = [[NSNumber alloc] initWithInt:15];


            CSInboundSMSRulesApi *inboundSmsRulesApiInstance =
            [[CSInboundSMSRulesApi alloc] init];

            [inboundSmsRulesApiInstance smsInboundAutomationsGetWithQ:@"q"
            page:page limit:limit completionHandler:^(NSString *output, NSError
            *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            InboundSMSRulesAPI.smsInboundAutomationsGet { (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
    post:
      summary: Create SMS Inbound Automation
      operationId: create-sms-inbound-automation
      description: >-
        _Create new inbound sms automation_


        Create new inbound sms automation


        | Name | Type | Required | Restrictions | Description |

        | --- | --- | --- | --- | --- |

        | dedicated_number | string | true | none | Decicated Number. Can be
        '\*' to apply to all numbers. |

        | rule_name | string | true | none | Rule Name. |

        | message_search_type | number | true | none | Message Search Type:
        0=Any message, 1=starts with, 2=contains, 3=does not contain. |

        | message_search_term | string | true | none | Message search term. |

        | 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. |

        | webhook_type | string | false | URL action only | Set as post, get, or
        json to change the format of the request sent. |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/docs/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                dedicated_number:
                  type: string
                rule_name:
                  type: string
                message_search_type:
                  type: integer
                message_search_term:
                  type: string
                  nullable: true
                action:
                  type: string
                action_address:
                  type: string
                body:
                  type: string
                  nullable: true
                enabled:
                  type: integer
              example:
                dedicated_number: '*'
                rule_name: IFTTT Test
                message_search_type: 0
                message_search_term: null
                action: POLL
                action_address: ''
                body: null
                enabled: 1
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/create-sms-inbound-automation'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request POST \
                 --header "Content-Type: application/json" \
                 --data-binary "{
                \"dedicated_number\":\"+61298441484\",
                \"rule_name\":\"My Rule\",
                \"message_search_type\":3,
                \"message_search_term\":\"My Search Term\",
                \"action\":\"EMAIL_FIXED\",
                \"action_address\":\"john@doe.com\",
                \"enabled\":1,
                \"webhook_type\":\"json\"
            }" \
            'https://rest.clicksend.com/v3/automations/sms/inbound'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\InboundSMSRulesApi(new
            GuzzleHttp\Client(),$config);

            // \ClickSend\Model\InboundSMSRule | Inbound sms rule model

            $inbound_sms_rule = new \ClickSend\Model\InboundSMSRule();

            $inbound_sms_rule->setDedicatedNumber("*");

            $inbound_sms_rule->setRuleName("rule name");

            $inbound_sms_rule->setMessageSearchType(3);

            $inbound_sms_rule->setMessageSearchTerm("My Search Term");

            $inbound_sms_rule->setAction("EMAIL_FIXED");

            $inbound_sms_rule->setActionAddress("john@doe.com");

            $inbound_sms_rule->setEnabled(1);


            try {
                $result = $apiInstance->smsInboundAutomationPost($inbound_sms_rule);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling InboundSMSRulesApi->smsInboundAutomationPost: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var inboundSMSRulesApi = new InboundSMSRulesApi(configuration);

            var response = inboundSMSRulesApi.SmsInboundAutomationPost(new
            InboundSMSRule(
                dedicatedNumber: "+11231231234",
                ruleName: "NEW RULE",
                messageSearchType: 3,
                messageSearchTerm: "My Search Term",
                action: "EMAIL_FIXED",
                actionAddress: "john@doe.com",
                enabled: 1
            ));
        - lang: Java
          source: |-
            package ClickSend;

            import java.math.BigDecimal;
            import ClickSend.Api.InboundSmsRulesApi;
            import ClickSend.Model.InboundSMSRule;

            public class create_sms_inbound_automation {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                InboundSmsRulesApi apiInstance = new InboundSmsRulesApi(defaultClient);
                // InboundSMSRule | Inbound sms rule model
                InboundSMSRule inboundSmsRule = new InboundSMSRule(); 
                inboundSmsRule.dedicatedNumber("*");
                inboundSmsRule.ruleName("rulename");
                inboundSmsRule.messageSearchTerm("messagesearchterm");
                inboundSmsRule.action("EMAIL_FIXED");
                inboundSmsRule.actionAddress("john@doe.com");
                inboundSmsRule.enabled(new BigDecimal(1));
                inboundSmsRule.messageSearchType(new BigDecimal(3));
                try {
                    String result = apiInstance.smsInboundAutomationPost(inboundSmsRule);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling InboundSmsRulesApi#smsInboundAutomationPost");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var inboundSmsRuleApi = new api.InboundSMSRulesApi("USERNAME",
            "API_KEY");


            var inboundSmsRule = new api.InboundSMSRule();


            inboundSmsRule.dedicatedNumber = "*";

            inboundSmsRule.ruleName = "Rule Name";

            inboundSmsRule.messageSearchType = 3;

            inboundSmsRule.messageSearchTerm = "My Search Term";

            inboundSmsRule.action = "URL";

            inboundSmsRule.actionAddress = "https://john@doe.com";

            inboundSmsRule.enabled = 1;

            inboundSmsRule.webhookType = "post";


            inboundSmsRuleApi.smsInboundAutomationPost(inboundSmsRule).then(function(response)
            {

            console.log(response.body);

            }).catch(function(err){

            console.error(err.body);

            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::InboundSMSRulesApi.new

            # InboundSMSRule | Inbound sms rule model
            inbound_sms_rule = ClickSendClient::InboundSMSRule.new(
              "message_search_type": 1,
              "message_search_term": "message_search_term",
              "action_address": "action_address",
              "dedicated_number": "dedicated_number",
              "rule_name": "rule_name",
              "action": "action",
              "enabled": 1
            )

            begin
              # Create new inbound sms automation
              result = api_instance.sms_inbound_automation_post(inbound_sms_rule)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling InboundSMSRulesApi->sms_inbound_automation_post: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.InboundSMSRulesApi(clicksend_client.ApiClient(configuration))

            # InboundSMSRule | Inbound sms rule model

            inbound_sms_rule = clicksend_client.InboundSMSRule(
                                dedicated_number="*",
                                rule_name="My Rule",
                                message_search_type=3,
                                message_search_term="My Search Term",
                                action="EMAIL_FIXED",
                                action_address="john@doe.com",
                                enabled=1) 

            try:
                # Create new inbound sms automation
                api_response = api_instance.sms_inbound_automation_post(inbound_sms_rule)
                print(api_response)
            except ApiException as e:
                print("Exception when calling InboundSMSRulesApi->sms_inbound_automation_post: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::InboundSMSRulesApi;

            use WWW::ClickSendClient::Object::InboundSMSRule;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api = WWW::ClickSendClient::InboundSMSRulesApi->new(username =>
            $username, password => $password);


            my %params = (
                'dedicated_number'    => '+111111111',
                'rule_name'           => 'rule_name',
                'message_search_type' => '1',
                'message_search_term' => 'message_search_term',
                'action'              => 'EMAIL_FIXED',
                'action_address'      => 'test1@test.com',  
                'enabled'             => '1'
            );


            my $inbound_sms_obj =
            WWW::ClickSendClient::Object::InboundSMSRule->new(%params);

            my $json_output =
            $api->sms_inbound_automation_post('inbound_sms_rule' =>
            $inbound_sms_obj);


            print $json_output;
        - lang: objc
          source: >-
            #import "CSInboundSmsRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            CSInboundSMSRule *inboundSmsRule = [[CSInboundSMSRule alloc] init];

            inboundSmsRule.dedicatedNumber = @"dedicated_number";

            inboundSmsRule.ruleName = @"rule_name";

            inboundSmsRule.messageSearchType = @(0);

            inboundSmsRule.messageSearchTerm = @"message_search_term";

            inboundSmsRule.action = @"action";

            inboundSmsRule.actionAddress = @"action_address";

            inboundSmsRule.enabled = @(0);


            CSInboundSMSRulesApi *inboundSmsRulesApiInstance =
            [[CSInboundSMSRulesApi alloc] init];

            [inboundSmsRulesApiInstance
            smsInboundAutomationPostWithInboundSmsRule:inboundSmsRule
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {

            ClickSendClientAPI.customHeaders = [authHeader.key :
            authHeader.value]

            }


            let inboundSmsRule = InboundSMSRule(dedicatedNumber:
            "dedicated_number",
                                                ruleName: "rule_name",
                                                messageSearchType: 0,
                                                messageSearchTerm: "message_search_term",
                                                action: "action",
                                                actionAddress: "action_address",
                                                enabled: 0)

            InboundSMSRulesAPI.smsInboundAutomationPost(inboundSmsRule:
            inboundSmsRule) { (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                    print(error)
                    }
                }
            }
  /v3/automations/sms/inbound/{inbound_rule_id}:
    get:
      summary: View SMS Inbound Automation
      operationId: view-sms-inbound-automation
      description: >-
        _Get specific inbound sms automation_


        Get specific inbound sms automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | inbound_rule_id | path | integer(int32) | true | Inbound rule id |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/docs/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: inbound_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/view-sms-inbound-automation'
      x-codeSamples:
        - lang: curl
          source: >-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
            'https://rest.clicksend.com/v3/automations/sms/inbound/{inbound_rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\InboundSMSRulesApi(new
            GuzzleHttp\Client(),$config);

            $inbound_rule_id = 149731; // int | Inbound rule id


            try {
                $result = $apiInstance->smsInboundAutomationGet($inbound_rule_id);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling InboundSMSRulesApi->smsInboundAutomationGet: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: |-
            using IO.ClickSend.ClickSend.Api;
            using IO.ClickSend.Client;
            using IO.ClickSend.ClickSend.Model;

            var configuration = new Configuration()
            {
                Username = USERNAME, 
                Password = API_KEY  
            };
            var inboundSMSRulesApi = new InboundSMSRulesApi(configuration);
            var response = inboundSMSRulesApi.SmsInboundAutomationGet(RULE_ID);
        - lang: Java
          source: |
            package ClickSend;

            import ClickSend.Api.InboundSmsRulesApi;

            public class view_specific_sms_inbound_automation {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                InboundSmsRulesApi apiInstance = new InboundSmsRulesApi(defaultClient);
                Integer inboundRuleId = 139860; // Integer | Inbound rule id
                try {
                    String result = apiInstance.smsInboundAutomationGet(inboundRuleId);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling InboundSmsRulesApi#smsInboundAutomationGet");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var inboundSmsRuleApi = new api.InboundSMSRulesApi("USERNAME",
            "API_KEY");


            var inboundRuleId = 134750;


            inboundSmsRuleApi.smsInboundAutomationGet(inboundRuleId).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::InboundSMSRulesApi.new

            inbound_rule_id = 56 # Integer | Inbound rule id

            begin
              # Get specific inbound sms automation
              result = api_instance.sms_inbound_automation_get(inbound_rule_id)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling InboundSMSRulesApi->sms_inbound_automation_get: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.InboundSMSRulesApi(clicksend_client.ApiClient(configuration))

            inbound_rule_id = 136887 # int | Inbound rule id


            try:
                # Get specific inbound sms automation
                api_response = api_instance.sms_inbound_automation_get(inbound_rule_id)
                print(api_response)
            except ApiException as e:
                print("Exception when calling InboundSMSRulesApi->sms_inbound_automation_get: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::InboundSMSRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api = WWW::ClickSendClient::InboundSMSRulesApi->new(username =>
            $username, password => $password);


            my $json_output = $api->sms_inbound_automation_get('inbound_rule_id'
            => '123456');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSInboundSmsRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *ruleId =[[NSNumber alloc] initWithInt:1];


            CSInboundSMSRulesApi *inboundSmsRulesApiInstance =
            [[CSInboundSMSRulesApi alloc] init];

            [inboundSmsRulesApiInstance
            smsInboundAutomationGetWithInboundRuleId:ruleId
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            InboundSMSRulesAPI.smsInboundAutomationGet(inboundRuleId: 0) {
            (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
    put:
      summary: Update SMS Inbound Automation
      operationId: update-sms-inbound-automation
      description: >-
        _Update inbound sms automation_


        Update inbound sms automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | inbound_rule_id | path | integer(int32) | true | Inbound rule id |


        ### Properties


        | Name | Type | Required | Restrictions | Description |

        | --- | --- | --- | --- | --- |

        | dedicated_number | string | true | none | Dedicated Number. Can be
        '\*' to apply to all numbers. |

        | rule_name | string | true | none | Rule Name. |

        | message_search_type | number | true | none | Message Search Type:
        0=Any message, 1=starts with, 2=contains, 3=does not contain. |

        | message_search_term | string | true | none | Message search term. |

        | 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. |

        | webhook_type | string | false | URL action only | Set as post, get, or
        json to change the format of the request sent. |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/docs/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                dedicated_number:
                  type: string
                rule_name:
                  type: string
                message_search_type:
                  type: integer
                message_search_term:
                  type: string
                action:
                  type: string
                action_address:
                  type: string
                enabled:
                  type: integer
              example:
                dedicated_number: '+61411111111'
                rule_name: My Rule
                message_search_type: 0
                message_search_term: My Search Term
                action: SMS
                action_address: '15627562233'
                enabled: 0
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: inbound_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/update-sms-inbound-automation'
      x-codeSamples:
        - lang: curl
          source: >-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request PUT \
                 --header "Content-Type: application/json" \
                 --data-binary "{
                \"dedicated_number\":\"+61298441484\",
                \"rule_name\":\"My Rule\",
                \"message_search_type\":3,
                \"message_search_term\":\"My Search Term\",
                \"action\":\"EMAIL_FIXED\",
                \"action_address\":\"john@doe.com\",
                \"enabled\":1,
                \"webhook_type\":\"json\"
            }" \

            'https://rest.clicksend.com/v3/automations/sms/inbound/{inbound_rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\InboundSMSRulesApi(new
            GuzzleHttp\Client(),$config);

            $inbound_rule_id = 149731; // int | Inbound rule id

            // \ClickSend\Model\InboundSMSRule | Inbound sms rule model

            $inbound_sms_rule = new \ClickSend\Model\InboundSMSRule(); 

            $inbound_sms_rule->setDedicatedNumber("*");

            $inbound_sms_rule->setRuleName("rule name");

            $inbound_sms_rule->setMessageSearchType(3);

            $inbound_sms_rule->setMessageSearchTerm("My Search Term");

            $inbound_sms_rule->setAction("EMAIL_FIXED");

            $inbound_sms_rule->setActionAddress("john@doe.com");

            $inbound_sms_rule->setEnabled(1);


            try {
                $result = $apiInstance->smsInboundAutomationPut($inbound_rule_id, $inbound_sms_rule);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling InboundSMSRulesApi->smsInboundAutomationPut: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var inboundSMSRulesApi = new InboundSMSRulesApi(configuration);

            var response = inboundSMSRulesApi.SmsInboundAutomationPut(RULE_ID,
            new InboundSMSRule(
                dedicatedNumber: "+11231231234",
                ruleName: "NEW RULE",
                messageSearchType: 3,
                messageSearchTerm: "My Search Term",
                action: "EMAIL_FIXED",
                actionAddress: "john@doe.com",
                enabled: 1
            ));
        - lang: Java
          source: |-
            package ClickSend;

            import java.math.BigDecimal;
            import ClickSend.Api.InboundSmsRulesApi;
            import ClickSend.Model.InboundSMSRule;

            public class update_sms_inbound_automation {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                InboundSmsRulesApi apiInstance = new InboundSmsRulesApi(defaultClient);
                Integer inboundRuleId = 140979; // Integer | Inbound rule id
                // InboundSMSRule | Inbound sms rule model
                InboundSMSRule inboundSmsRule = new InboundSMSRule(); 
                inboundSmsRule.dedicatedNumber("*");
                inboundSmsRule.ruleName("rulename");
                inboundSmsRule.messageSearchTerm("messagesearchterm");
                inboundSmsRule.action("EMAIL_FIXED");
                inboundSmsRule.actionAddress("john@doe.com");
                inboundSmsRule.enabled(new BigDecimal(1));
                inboundSmsRule.messageSearchType(new BigDecimal(3));
                try {
                    String result = apiInstance.smsInboundAutomationPut(inboundRuleId, inboundSmsRule);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling InboundSmsRulesApi#smsInboundAutomationPut");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var inboundSmsRuleApi = new api.InboundSMSRulesApi("USERNAME",
            "API_KEY");


            var inboundRuleId =  148061;


            var inboundSmsRule = new api.InboundSMSRule();


            inboundSmsRule.dedicatedNumber = "*";

            inboundSmsRule.ruleName = "Rule Name";

            inboundSmsRule.messageSearchType = 3;

            inboundSmsRule.messageSearchTerm = "My Search Term";

            inboundSmsRule.action = "URL";

            inboundSmsRule.actionAddress = "https://john@doe.com";

            inboundSmsRule.enabled = 1;

            inboundSmsRule.webhookType = "post";


            inboundSmsRuleApi.smsInboundAutomationPut(inboundRuleId,
            inboundSmsRule).then(function(response) {

            console.log(response.body);

            }).catch(function(err){

            console.error(err.body);

            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::InboundSMSRulesApi.new

            inbound_rule_id = 56 # Integer | Inbound rule id

            # InboundSMSRule | Inbound sms rule model
            inbound_sms_rule = ClickSendClient::InboundSMSRule.new(
              "message_search_type": 1,
              "message_search_term": "message_search_term",
              "action_address": "action_address",
              "dedicated_number": "dedicated_number",
              "rule_name": "rule_name",
              "action": "action",
              "enabled": 1
            )

            begin
              # Update inbound sms automation
              result = api_instance.sms_inbound_automation_put(inbound_rule_id, inbound_sms_rule)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling InboundSMSRulesApi->sms_inbound_automation_put: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.InboundSMSRulesApi(clicksend_client.ApiClient(configuration))

            inbound_rule_id = 136887 # int | Inbound rule id

            inbound_sms_rule = clicksend_client.InboundSMSRule(
                                dedicated_number="*",
                                rule_name="My Rule",
                                message_search_type=3,
                                message_search_term="My Search Term",
                                action="EMAIL_FIXED",
                                action_address="abc@doe.com",
                                enabled=1) # InboundSMSRule | Inbound sms rule model

            try:
                # Update inbound sms automation
                api_response = api_instance.sms_inbound_automation_put(inbound_rule_id, inbound_sms_rule)
                print(api_response)
            except ApiException as e:
                print("Exception when calling InboundSMSRulesApi->sms_inbound_automation_put: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::InboundSMSRulesApi;

            use WWW::ClickSendClient::Object::InboundSMSRule;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api = WWW::ClickSendClient::InboundSMSRulesApi->new(username =>
            $username, password => $password);


            my %params = (
                'dedicated_number'    => '+1111111111',
                'rule_name'           => 'rule_name',
                'message_search_type' => '1',
                'message_search_term' => 'message_search_term',
                'action'              => 'EMAIL_FIXED',
                'action_address'      => 'test1@test.com',  
                'enabled'             => '1'
            );


            my $inbound_sms_obj =
            WWW::ClickSendClient::Object::InboundSMSRule->new(%params);

            my $json_output = $api->sms_inbound_automation_put('inbound_rule_id'
            => '12345','inbound_sms_rule' => $inbound_sms_obj);


            print $json_output;
        - lang: objc
          source: >-
            #import "CSInboundSmsRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *ruleId = [[NSNumber alloc] initWithInt:1];


            CSInboundSMSRule *inboundSmsRule = [[CSInboundSMSRule alloc] init];

            inboundSmsRule.dedicatedNumber = @"dedicated_number";

            inboundSmsRule.ruleName = @"rule_name";

            inboundSmsRule.messageSearchTerm = @"message_search_term";

            inboundSmsRule.action = @"action";

            inboundSmsRule.actionAddress = @"action_address";

            inboundSmsRule.enabled = @(0);


            CSInboundSMSRulesApi *inboundSmsRulesApiInstance =
            [[CSInboundSMSRulesApi alloc] init];

            [inboundSmsRulesApiInstance
            smsInboundAutomationPutWithInboundRuleId:ruleId
            inboundSmsRule:inboundSmsRule completionHandler:^(NSString *output,
            NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {

            ClickSendClientAPI.customHeaders = [authHeader.key :
            authHeader.value]

            }


            let inboundSmsRule = InboundSMSRule(dedicatedNumber:
            "dedicated_number",
                                                ruleName: "rule_name",
                                                messageSearchType: 0,
                                                messageSearchTerm: "message_search_term",
                                                action: "action",
                                                actionAddress: "action_address",
                                                enabled: 0)

            InboundSMSRulesAPI.smsInboundAutomationPut(inboundRuleId: 1,
            inboundSmsRule: inboundSmsRule) { (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                    print(error)
                    }
                }
            }
    delete:
      summary: Delete SMS Inbound Automation
      operationId: delete-sms-inbound-automation
      description: >-
        _Delete inbound sms automation_


        Delete inbound sms automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | inbound_rule_id | path | integer(int32) | true | Inbound rule id |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/docs/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: inbound_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/delete-sms-inbound-automation'
      x-codeSamples:
        - lang: curl
          source: >-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request DELETE \
            'https://rest.clicksend.com/v3/automations/sms/inbound/{inbound_rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\InboundSMSRulesApi(new
            GuzzleHttp\Client(),$config);

            $inbound_rule_id = 149731; // int | Inbound rule id


            try {
                $result = $apiInstance->smsInboundAutomationDelete($inbound_rule_id);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling InboundSMSRulesApi->smsInboundAutomationDelete: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var inboundSMSRulesApi = new InboundSMSRulesApi(configuration);

            var response =
            inboundSMSRulesApi.SmsInboundAutomationDelete(RULE_ID);
        - lang: Java
          source: |-
            package ClickSend;

            import ClickSend.Api.InboundSmsRulesApi;

            public class delete_sms_inbound_automation {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                InboundSmsRulesApi apiInstance = new InboundSmsRulesApi(defaultClient);
                Integer inboundRuleId = 139860; // Integer | Inbound rule id
                try {
                    String result = apiInstance.smsInboundAutomationDelete(inboundRuleId);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling InboundSmsRulesApi#smsInboundAutomationDelete");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var inboundSmsRuleApi = new api.InboundSMSRulesApi("USERNAME",
            "API_KEY");


            var inboundRuleId = 134750;


            inboundSmsRuleApi.smsInboundAutomationDelete(inboundRuleId).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::InboundSMSRulesApi.new

            inbound_rule_id = 56 # Integer | Inbound rule id

            begin
              # Delete inbound sms automation
              result = api_instance.sms_inbound_automation_delete(inbound_rule_id)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling InboundSMSRulesApi->sms_inbound_automation_delete: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.InboundSMSRulesApi(clicksend_client.ApiClient(configuration))

            inbound_rule_id = 136887 # int | Inbound rule id


            try:
                # Delete inbound sms automation
                api_response = api_instance.sms_inbound_automation_delete(inbound_rule_id)
                print(api_response)
            except ApiException as e:
                print("Exception when calling InboundSMSRulesApi->sms_inbound_automation_delete: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::InboundSMSRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api = WWW::ClickSendClient::InboundSMSRulesApi->new(username =>
            $username, password => $password);


            my $json_output =
            $api->sms_inbound_automation_delete('inbound_rule_id' => '123456');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSInboundSmsRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *ruleId = [[NSNumber alloc] initWithInt:1];


            CSInboundSMSRulesApi *inboundSmsRulesApiInstance =
            [[CSInboundSMSRulesApi alloc] init];

            [inboundSmsRulesApiInstance
            smsInboundAutomationDeleteWithInboundRuleId:ruleId
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            InboundSMSRulesAPI.smsInboundAutomationDelete(inboundRuleId: 1) {
            (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                    print(error)
                    }
                }
            }
  /v3/automations/sms/receipts:
    get:
      summary: View SMS Delivery Receipt Rules
      operationId: view-sms-delivery-receipt-rules
      description: >-
        _Get all sms delivery receipt automations_


        Get all sms delivery receipt automations


        ### Parameters


        | 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](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/docs/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/view-sms-delivery-receipt-rules'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
            'https://rest.clicksend.com/v3/automations/sms/receipts'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\SMSDeliveryReceiptRulesApi(new
            GuzzleHttp\Client(),$config);

            $q = "q_example"; // string | Your keyword or query.

            $page = 1; // int | Page number

            $limit = 10; // int | Number of records per page


            try {
                $result = $apiInstance->smsDeliveryReceiptAutomationsGet($q, $page, $limit);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling SMSDeliveryReceiptRulesApi->smsDeliveryReceiptAutomationsGet: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var smsDeliveryReceiptRulesApi = new
            SMSDeliveryReceiptRulesApi(configuration);

            var response =
            smsDeliveryReceiptRulesApi.SmsDeliveryReceiptAutomationsGet();
        - lang: Java
          source: |
            package ClickSend;

            import ClickSend.Api.SmsDeliveryReceiptRulesApi;

            public class view_all_sms_delivery_receipt_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                SmsDeliveryReceiptRulesApi apiInstance = new SmsDeliveryReceiptRulesApi(defaultClient);
                String q = "q_example"; // String | Your keyword or query.
                Integer page = 1; // Integer | Page number
                Integer limit = 10; // Integer | Number of records per page
                try {
                  String result = apiInstance.smsDeliveryReceiptAutomationsGet(q, page, limit);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling SmsDeliveryReceiptRulesApi#smsDeliveryReceiptAutomationsGet");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var smsDeliveryReceiptApi = new
            api.SMSDeliveryReceiptRulesApi("USERNAME", "API_KEY");


            var q = "";

            var page = 1;

            var limit = 10;


            smsDeliveryReceiptApi.smsDeliveryReceiptAutomationsGet(q, page,
            limit).then(function(response) {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::SMSDeliveryReceiptRulesApi.new

            opts = {
              page: 1,  # Integer | Page number
              limit: 10 # Integer | Number of records per page
            }

            begin
              # Get all sms delivery receipt automations
              result = api_instance.sms_delivery_receipt_automations_get(opts)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling SMSDeliveryReceiptRulesApi->sms_delivery_receipt_automations_get: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.SMSDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))

            page = 1 # int | Page number (optional) (default to 1)

            limit = 10 # int | Number of records per page (optional) (default to
            10)


            try:
                # Get all sms delivery receipt automations
                api_response = api_instance.sms_delivery_receipt_automations_get(page=page, limit=limit)
                print(api_response)
            except ApiException as e:
                print("Exception when calling SMSDeliveryReceiptRulesApi->sms_delivery_receipt_automations_get: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::SMSDeliveryReceiptRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api =
            WWW::ClickSendClient::SMSDeliveryReceiptRulesApi->new(username =>
            $username, password => $password);


            my $json_output = $api->sms_delivery_receipt_automations_get('page'
            => '1' ,'limit' => '10');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSSMSDeliveryReceiptRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *page = [[NSNumber alloc] initWithInt:1];

            NSNumber *limit = [[NSNumber alloc] initWithInt:15];


            CSSMSDeliveryReceiptRulesApi *smsDeliveryReceiptRulesApiInstance =
            [[CSSMSDeliveryReceiptRulesApi alloc] init];

            [smsDeliveryReceiptRulesApiInstance
            smsDeliveryReceiptAutomationsGetWithQ:@"q" page:page limit:limit
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            SMSDeliveryReceiptRulesAPI.smsDeliveryReceiptAutomationsGet(q: "q",
            page: 1, limit: 15) { (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
    post:
      summary: Create SMS Delivery Receipt Rule
      operationId: create-sms-delivery-receipt-rule
      description: >-
        _Create sms delivery receipt automations_


        Create sms delivery receipt automations


        ### Properties


        | 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](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/docs/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                rule_name:
                  type: string
                match_type:
                  type: integer
                action:
                  type: string
                action_address:
                  type: string
                enabled:
                  type: integer
              example:
                rule_name: My Rule
                match_type: 1
                action: EMAIL_FIXED
                action_address: john@doe.com
                enabled: 1
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/create-sms-delivery-receipt-rule'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request POST \
                 --header "Content-Type: application/json" \
                 --data-binary "{
                \"rule_name\": \"My Rule\",
                \"match_type\": 3,
                \"action\": \"EMAIL_FIXED\",
                \"action_address\": \"john@doe.com\",
                \"enabled\": 1
            }" \
            'https://rest.clicksend.com/v3/automations/sms/receipts'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\SMSDeliveryReceiptRulesApi(new
            GuzzleHttp\Client(),$config);

            // \ClickSend\Model\DeliveryReceiptRule | sms delivery receipt rule
            model

            $delivery_receipt_rule = new
            \ClickSend\Model\DeliveryReceiptRule(); 

            $delivery_receipt_rule->setRuleName("my rule");

            $delivery_receipt_rule->setMatchType(0);

            $delivery_receipt_rule->setAction("URL");

            $delivery_receipt_rule->setActionAddress("http://example.com");

            $delivery_receipt_rule->setEnabled(1);


            try {
                $result = $apiInstance->smsDeliveryReceiptAutomationPost($delivery_receipt_rule);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling SMSDeliveryReceiptRulesApi->smsDeliveryReceiptAutomationPost: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var smsDeliveryReceiptRulesApi = new
            SMSDeliveryReceiptRulesApi(configuration);

            var response =
            smsDeliveryReceiptRulesApi.SmsDeliveryReceiptAutomationPost(new
            DeliveryReceiptRule(
                ruleName: "Rule Name",
                matchType: 1,
                action: "URL",
                actionAddress: "https://yourdomain.com",
                enabled: 1
            ));
        - lang: Java
          source: |
            package ClickSend;

            import java.math.BigDecimal;
            import ClickSend.Api.SmsDeliveryReceiptRulesApi;
            import ClickSend.Model.DeliveryReceiptRule;

            public class create_sms_delivery_receipt_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                SmsDeliveryReceiptRulesApi apiInstance = new SmsDeliveryReceiptRulesApi(defaultClient);
                // DeliveryReceiptRule | sms delivery receipt rule model
                DeliveryReceiptRule deliveryReceiptRule = new DeliveryReceiptRule(); 
                deliveryReceiptRule.ruleName("new rule");
                deliveryReceiptRule.matchType(new BigDecimal(1.25));
                deliveryReceiptRule.action("EMAIL_FIXED");
                deliveryReceiptRule.actionAddress("xxx@gmail.com");
                deliveryReceiptRule.enabled(new BigDecimal(1));
                try {
                    String result = apiInstance.smsDeliveryReceiptAutomationPost(deliveryReceiptRule);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling SmsDeliveryReceiptRulesApi#smsDeliveryReceiptAutomationPost");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var smsDeliveryReceiptApi = new
            api.SMSDeliveryReceiptRulesApi("USERNAME", "API_KEY");


            var deliveryReceiptRule = new api.DeliveryReceiptRule();


            deliveryReceiptRule.ruleName = "My rule";

            deliveryReceiptRule.matchType = 1;

            deliveryReceiptRule.action = "EMAIL_FIXED";

            deliveryReceiptRule.actionAddress = "john@doe.com";

            deliveryReceiptRule.enabled = 1;


            smsDeliveryReceiptApi.smsDeliveryReceiptAutomationPost(deliveryReceiptRule).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::SMSDeliveryReceiptRulesApi.new

            # DeliveryReceiptRule | fax delivery receipt rule model
            delivery_receipt_rule = ClickSendClient::DeliveryReceiptRule.new(
              "rule_name": "rule_name",
              "match_type": 1,
              "action": "action",
              "action_address": "action_address",
              "enabled": 1
            )

            begin
              # Create sms delivery receipt automations
              result = api_instance.sms_delivery_receipt_automation_post(delivery_receipt_rule)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling SMSDeliveryReceiptRulesApi->sms_delivery_receipt_automation_post: #{e.response_body}"
            end 
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.SMSDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))

            # DeliveryReceiptRule | sms delivery receipt rule model

            delivery_receipt_rule = clicksend_client.DeliveryReceiptRule(
                                    rule_name="My Rule",
                                    match_type= 1,
                                    action="EMAIL_FIXED",
                                    action_address="john@doe.com",
                                    enabled= 1)


            try:
                # Create sms delivery receipt automations
                api_response = api_instance.sms_delivery_receipt_automation_post(delivery_receipt_rule)
                print(api_response)
            except ApiException as e:
                print("Exception when calling SMSDeliveryReceiptRulesApi->sms_delivery_receipt_automation_post: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::SMSDeliveryReceiptRulesApi;

            use WWW::ClickSendClient::Object::DeliveryReceiptRule;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api =
            WWW::ClickSendClient::SMSDeliveryReceiptRulesApi->new(username =>
            $username, password => $password);


            my %params = (
                'rule_name'      => 'rule_name',
                'match_type'     => '1',
                'action'         => 'EMAIL_FIXED',
                'action_address' => 'test1@test.com',
                'enabled'        => '0'
            );


            my $sms_delivery_obj =
            WWW::ClickSendClient::Object::DeliveryReceiptRule->new(%params);

            my $json_output =
            $api->sms_delivery_receipt_automation_post('delivery_receipt_rule'
            => $sms_delivery_obj);


            print $json_output;
        - lang: objc
          source: >-
            #import "CSSMSDeliveryReceiptRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            CSDeliveryReceiptRule *deliveryReceiptRule = [[CSDeliveryReceiptRule
            alloc] init];

            deliveryReceiptRule.ruleName = @"rule_name";

            deliveryReceiptRule.matchType = @(0);

            deliveryReceiptRule.action = @"actiion";

            deliveryReceiptRule.actionAddress = @"action_address";

            deliveryReceiptRule.enabled = @(0);


            CSSMSDeliveryReceiptRulesApi *smsDeliveryReceiptRulesApiInstance =
            [[CSSMSDeliveryReceiptRulesApi alloc] init];

            [smsDeliveryReceiptRulesApiInstance
            smsDeliveryReceiptAutomationPostWithDeliveryReceiptRule:deliveryReceiptRule
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }

            let deliveryReceiptRule = DeliveryReceiptRule(ruleName: "rule_name",
                                                          matchType: 0,
                                                          action: "action",
                                                          actionAddress: "action_address",
                                                          enabled: 0)

            SMSDeliveryReceiptRulesAPI.smsDeliveryReceiptAutomationPost(deliveryReceiptRule:
            deliveryReceiptRule) { (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
  /v3/automations/sms/receipts/{receipt_rule_id}:
    get:
      summary: View SMS Delivery Receipt Rule
      operationId: view-sms-delivery-receipt-rule
      description: >-
        _Get specific sms delivery receipt automation_


        Get specific sms delivery receipt automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | receipt_rule_id | path | integer(int32) | true | Receipt rule id |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/docs/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: receipt_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/view-sms-delivery-receipt-rule'
      x-codeSamples:
        - lang: curl
          source: >-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
            'https://rest.clicksend.com/v3/automations/sms/receipts/{receipt_rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\SMSDeliveryReceiptRulesApi(new
            GuzzleHttp\Client(),$config);

            $receipt_rule_id = 5334; // int | Receipt rule id


            try {
                $result = $apiInstance->smsDeliveryReceiptAutomationGet($receipt_rule_id);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling SMSDeliveryReceiptRulesApi->smsDeliveryReceiptAutomationGet: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var smsDeliveryReceiptRulesApi = new
            SMSDeliveryReceiptRulesApi(configuration);

            var response =
            smsDeliveryReceiptRulesApi.SmsDeliveryReceiptAutomationGet(RULE_ID)
        - lang: Java
          source: |
            package ClickSend;

            import ClickSend.Api.SmsDeliveryReceiptRulesApi;

            public class view_specific_sms_delivery_receipt_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                SmsDeliveryReceiptRulesApi apiInstance = new SmsDeliveryReceiptRulesApi(defaultClient);
                Integer receiptRuleId = 5271; // Integer | Receipt rule id
                try {
                    String result = apiInstance.smsDeliveryReceiptAutomationGet(receiptRuleId);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling SmsDeliveryReceiptRulesApi#smsDeliveryReceiptAutomationGet");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var smsDeliveryReceiptApi = new
            api.SMSDeliveryReceiptRulesApi("USERNAME", "API_KEY");


            var receiptRuleId = 5314;


            smsDeliveryReceiptApi.smsDeliveryReceiptAutomationGet(receiptRuleId).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::SMSDeliveryReceiptRulesApi.new

            receipt_rule_id = 56 # Integer | Receipt rule id

            begin
              # Get specific sms delivery receipt automation
              result = api_instance.sms_delivery_receipt_automation_get(receipt_rule_id)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling SMSDeliveryReceiptRulesApi->sms_delivery_receipt_automation_get: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.SMSDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))

            receipt_rule_id = 5254 # int | Receipt rule id


            try:
                # Get specific sms delivery receipt automation
                api_response = api_instance.sms_delivery_receipt_automation_get(receipt_rule_id)
                print(api_response)
            except ApiException as e:
                print("Exception when calling SMSDeliveryReceiptRulesApi->sms_delivery_receipt_automation_get: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::SMSDeliveryReceiptRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api =
            WWW::ClickSendClient::SMSDeliveryReceiptRulesApi->new(username =>
            $username, password => $password);


            my $json_output =
            $api->sms_delivery_receipt_automation_get('receipt_rule_id' =>
            '1234');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSSMSDeliveryReceiptRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *receiptRuleId = [[NSNumber alloc] initWithInt:1];


            CSSMSDeliveryReceiptRulesApi *smsDeliveryReceiptRulesApiInstance =
            [[CSSMSDeliveryReceiptRulesApi alloc] init];

            [smsDeliveryReceiptRulesApiInstance
            smsDeliveryReceiptAutomationGetWithReceiptRuleId:receiptRuleId
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            SMSDeliveryReceiptRulesAPI.smsDeliveryReceiptAutomationGet(receiptRuleId:
            1) { (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
    put:
      summary: Update SMS Delivery Receipt Rule
      operationId: update-sms-delivery-receipt-rule
      description: >-
        _Update sms delivery receipt automation_


        Update sms delivery receipt automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | receipt_rule_id | path | integer(int32) | true | Receipt rule id |


        ### Properties


        | 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](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/docs/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                rule_name:
                  type: string
                match_type:
                  type: integer
                action:
                  type: string
                action_address:
                  type: string
                enabled:
                  type: integer
              example:
                rule_name: My Rule
                match_type: 1
                action: EMAIL_FIXED
                action_address: john@doe.com
                enabled: 1
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: receipt_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/update-sms-delivery-receipt-rule'
      x-codeSamples:
        - lang: curl
          source: >-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request PUT \
                 --header "Content-Type: application/json" \
                 --data-binary "{
                \"rule_name\": \"My Rule\",
                \"match_type\": 3,
                \"action\": \"EMAIL_FIXED\",
                \"action_address\": \"john@doe.com\",
                \"enabled\": 1
            }" \

            'https://rest.clicksend.com/v3/automations/sms/receipts/{receipt_rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\SMSDeliveryReceiptRulesApi(new
            GuzzleHttp\Client(),$config);

            $receipt_rule_id = 5334; // int | Receipt rule id

            // \ClickSend\Model\DeliveryReceiptRule | Delivery receipt rule
            model

            $delivery_receipt_rule = new
            \ClickSend\Model\DeliveryReceiptRule(); 

            $delivery_receipt_rule->setRuleName("my rule");

            $delivery_receipt_rule->setMatchType(0);

            $delivery_receipt_rule->setAction("URL");

            $delivery_receipt_rule->setActionAddress("http://example.com");

            $delivery_receipt_rule->setEnabled(1);


            try {
                $result = $apiInstance->smsDeliveryReceiptAutomationPut($receipt_rule_id, $delivery_receipt_rule);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling SMSDeliveryReceiptRulesApi->smsDeliveryReceiptAutomationPut: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var smsDeliveryReceiptRulesApi = new
            SMSDeliveryReceiptRulesApi(configuration);

            var response =
            smsDeliveryReceiptRulesApi.SmsDeliveryReceiptAutomationPut(RULE_ID,
            new DeliveryReceiptRule( 
                ruleName: "Rule Name",
                matchType: 1,
                action: "URL",
                actionAddress: "https://yourdomain.com",
                enabled: 1
            });
        - lang: Java
          source: |-
            package ClickSend;

            import java.math.BigDecimal;
            import ClickSend.Api.SmsDeliveryReceiptRulesApi;
            import ClickSend.Model.DeliveryReceiptRule;

            public class update_sms_delivery_receipt_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                SmsDeliveryReceiptRulesApi apiInstance = new SmsDeliveryReceiptRulesApi(defaultClient);
                Integer receiptRuleId = 5279; // Integer | Receipt rule id
                // DeliveryReceiptRule | Delivery receipt rule model
                DeliveryReceiptRule deliveryReceiptRule = new DeliveryReceiptRule(); 
                deliveryReceiptRule.ruleName("updated rule");
                deliveryReceiptRule.matchType(new BigDecimal(1.25));
                deliveryReceiptRule.action("EMAIL_FIXED");
                deliveryReceiptRule.actionAddress("xxx@gmail.com");
                deliveryReceiptRule.enabled(new BigDecimal(1));
                try {
                    String result = apiInstance.smsDeliveryReceiptAutomationPut(receiptRuleId, deliveryReceiptRule);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling SmsDeliveryReceiptRulesApi#smsDeliveryReceiptAutomationPut");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var smsDeliveryReceiptApi = new
            api.SMSDeliveryReceiptRulesApi("USERNAME", "API_KEY");


            var receiptRuleId = 5314;


            var deliveryReceiptRule = new api.DeliveryReceiptRule();


            deliveryReceiptRule.ruleName = "My rule";

            deliveryReceiptRule.matchType = 1;

            deliveryReceiptRule.action = "EMAIL_FIXED";

            deliveryReceiptRule.actionAddress = "john@doe.com";

            deliveryReceiptRule.enabled = 1;


            smsDeliveryReceiptApi.smsDeliveryReceiptAutomationPut(receiptRuleId,
            deliveryReceiptRule).then(function(response) {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::SMSDeliveryReceiptRulesApi.new

            receipt_rule_id = 56 # Integer | Receipt rule id

            # DeliveryReceiptRule | fax delivery receipt rule model
            delivery_receipt_rule = ClickSendClient::DeliveryReceiptRule.new(
              "rule_name": "rule_name",
              "match_type": 1,
              "action": "action",
              "action_address": "action_address",
              "enabled": 1
            )

            begin
              # Update sms delivery receipt automation
              result = api_instance.sms_delivery_receipt_automation_put(receipt_rule_id, delivery_receipt_rule)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling SMSDeliveryReceiptRulesApi->sms_delivery_receipt_automation_put: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.SMSDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))

            receipt_rule_id = 5254 # int | Receipt rule id

            # DeliveryReceiptRule | Delivery receipt rule model

            delivery_receipt_rule = clicksend_client.DeliveryReceiptRule(
                                    rule_name="update rule",
                                    match_type= 1,
                                    action="EMAIL_FIXED",
                                    action_address="abc@doe.com",
                                    enabled= 1)

            try:
                # Update sms delivery receipt automation
                api_response = api_instance.sms_delivery_receipt_automation_put(receipt_rule_id, delivery_receipt_rule)
                print(api_response)
            except ApiException as e:
                print("Exception when calling SMSDeliveryReceiptRulesApi->sms_delivery_receipt_automation_put: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::SMSDeliveryReceiptRulesApi;

            use WWW::ClickSendClient::Object::DeliveryReceiptRule;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api =
            WWW::ClickSendClient::SMSDeliveryReceiptRulesApi->new(username =>
            $username, password => $password);


            my %params = (
                'rule_name'      => 'rule_name',
                'match_type'     => '1',
                'action'         => 'EMAIL_FIXED',
                'action_address' => 'test1@test.com',
                'enabled'        => '0'
            );


            my $sms_delivery_obj =
            WWW::ClickSendClient::Object::DeliveryReceiptRule->new(%params);


            my $json_output =
            $api->sms_delivery_receipt_automation_put('receipt_rule_id' =>
            '1234','delivery_receipt_rule' => $sms_delivery_obj);


            print $json_output;
        - lang: objc
          source: >-
            #import "CSSMSDeliveryReceiptRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *receiptRuleId = [[NSNumber alloc] initWithInt:1];


            CSDeliveryReceiptRule *deliveryReceipt = [[CSDeliveryReceiptRule
            alloc] init];

            deliveryReceipt.ruleName = @"rule_name";

            deliveryReceipt.matchType = @(0);

            deliveryReceipt.action = @"action";

            deliveryReceipt.actionAddress = @"action_address";

            deliveryReceipt.enabled = @(0);


            CSSMSDeliveryReceiptRulesApi *smsDeliveryReceiptRulesApiInstance =
            [[CSSMSDeliveryReceiptRulesApi alloc] init];

            [smsDeliveryReceiptRulesApiInstance
            smsDeliveryReceiptAutomationPutWithReceiptRuleId:receiptRuleId
            deliveryReceiptRule:deliveryReceipt completionHandler:^(NSString
            *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {

            ClickSendClientAPI.customHeaders = [authHeader.key :
            authHeader.value]

            }


            let deliveryReceiptRule = DeliveryReceiptRule(ruleName: "rule_name",
                                                          matchType: 0,
                                                          action: "action",
                                                          actionAddress: "action_address",
                                                          enabled: 0)

            SMSDeliveryReceiptRulesAPI.smsDeliveryReceiptAutomationPut(receiptRuleId:
            1, deliveryReceiptRule: deliveryReceiptRule) { (dataString, error)
            in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
    delete:
      summary: Delete SMS Delivery Receipt Rule
      operationId: delete-sms-delivery-receipt-rule
      description: >-
        _Delete sms delivery receipt automation_


        Delete sms delivery receipt automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | receipt_rule_id | path | integer(int32) | true | Receipt rule id |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/docs/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: receipt_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/delete-sms-delivery-receipt-rule'
      x-codeSamples:
        - lang: curl
          source: >-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request DELETE \
            'https://rest.clicksend.com/v3/automations/sms/receipts/{receipt_rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\SMSDeliveryReceiptRulesApi(new
            GuzzleHttp\Client(),$config);

            $receipt_rule_id = 5334; // int | Receipt rule id


            try {
                $result = $apiInstance->smsDeliveryReceiptAutomationDelete($receipt_rule_id);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling SMSDeliveryReceiptRulesApi->smsDeliveryReceiptAutomationDelete: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var smsDeliveryReceiptRulesApi = new
            SMSDeliveryReceiptRulesApi(configuration);

            var response =
            smsDeliveryReceiptRulesApi.SmsDeliveryReceiptAutomationDelete(RULE_ID);
        - lang: Java
          source: |-
            package ClickSend;

            import ClickSend.Api.SmsDeliveryReceiptRulesApi;

            public class delete_sms_delivery_receipt_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                SmsDeliveryReceiptRulesApi apiInstance = new SmsDeliveryReceiptRulesApi(defaultClient);
                Integer receiptRuleId = 5278; // Integer | Receipt rule id
                try {
                    String result = apiInstance.smsDeliveryReceiptAutomationDelete(receiptRuleId);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling SmsDeliveryReceiptRulesApi#smsDeliveryReceiptAutomationDelete");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var smsDeliveryReceiptApi = new
            api.SMSDeliveryReceiptRulesApi("USERNAME", "API_KEY");


            var receiptRuleId = 5314;


            smsDeliveryReceiptApi.smsDeliveryReceiptAutomationDelete(receiptRuleId).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::SMSDeliveryReceiptRulesApi.new

            receipt_rule_id = 56 # Integer | Receipt rule id

            begin
              # Delete sms delivery receipt automation
              result = api_instance.sms_delivery_receipt_automation_delete(receipt_rule_id)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling SMSDeliveryReceiptRulesApi->sms_delivery_receipt_automation_delete: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.SMSDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))

            receipt_rule_id = 5254 # int | Receipt rule id


            try:
                # Delete sms delivery receipt automation
                api_response = api_instance.sms_delivery_receipt_automation_delete(receipt_rule_id)
                print(api_response)
            except ApiException as e:
                print("Exception when calling SMSDeliveryReceiptRulesApi->sms_delivery_receipt_automation_delete: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::SMSDeliveryReceiptRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api =
            WWW::ClickSendClient::SMSDeliveryReceiptRulesApi->new(username =>
            $username, password => $password);


            my $json_output =
            $api->sms_delivery_receipt_automation_delete('receipt_rule_id' =>
            '1234');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSSMSDeliveryReceiptRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *ruleId = [[NSNumber alloc] initWithInt:1];


            CSSMSDeliveryReceiptRulesApi *smsDeliveryReceiptRulesApiInstance =
            [[CSSMSDeliveryReceiptRulesApi alloc] init];

            [smsDeliveryReceiptRulesApiInstance
            smsDeliveryReceiptAutomationDeleteWithReceiptRuleId:ruleId
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            SMSDeliveryReceiptRulesAPI.smsDeliveryReceiptAutomationDelete(receiptRuleId:
            1) { (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
