---
updatedAt: 2026-09-09T22:08:03.000Z
agentTools:
  projectIndex: https://developer.callhub.io/llms.txt
---

# /sms_campaigns/:id/

Delete a specific SMS campaign

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "2.1"
  },
  "servers": [
    {
      "url": "https://api.callhub.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "x-default": "",
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/sms_campaigns/{id}/": {
      "delete": {
        "summary": "/sms_campaigns/:id/",
        "description": "",
        "operationId": "delete-sms-campaign",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of the campaign",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "204",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "python",
              "code": "# You'll need to install requests\nimport requests\n# api_key can be found at https://callhub.io/user_detail_change/?action=tabs-1\nheaders = {'Authorization': 'Token %s' % api_key}\n# replace sms_campaigns_id with the id number of the sms campaign you are deleting\nid = sms_campaigns_id\nurl = 'https://api.callhub.io/v1/sms_campaigns/%d/'% id\nr = requests.delete(url, headers=headers)\nprint \"Response status :\",r.status_code"
            },
            {
              "language": "php",
              "code": "<?php\n\n    $ch = curl_init();\n    //  api_key can be found at https://callhub.io/user_detail_change/?action=tabs-1\n    $headers = array();\n    $headers[] = \"Authorization: token {$api_key}\";\n    $headers[] = \"Content-Type: application/json\";\n\n        // replace id with the id number of the sms campaign you are deleting\n    $url =\"https://api.callhub.io/v1/sms_campaigns/{$id}/\";\n    curl_setopt($ch, CURLOPT_URL, $url);\n    curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers);\n    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true);\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n    \n    $curl_response = curl_exec($ch); \n    curl_close($ch); \n?>"
            }
          ],
          "samples-languages": [
            "python",
            "php"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```