---
agentTools:
  projectIndex: https://octopush-api.readme.io/llms.txt
---

# Cancel a VMS campaign

## Encoding : UTF-8
## Authentication
Your "api-key" and "api-login" identifiers must be added in the headers.
## Definition
__<p style=color:orange>Note: You must turn on VOICE SMS in Addition services to use this API</p>__If you have a waiting draft Voice Sms campaign, or a scheduled Voice Sms campaign, this web service will allow you to cancel it.
Cancellation is only allowed when the campaign has fewer than 3 recipients.
Cancellation is limited to 1000 requests per month and per API user account.
Waiting campaigns must still be scheduled more than 10 minutes in the future.
## Parameters
| Name | Type | Description |
| -- | --| -- |
| ticket_number | string | This the value representing the ticket number of Voice Sms campaign you want to cancel |

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Octopush API",
    "description": "Octopush API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.octopush.com"
    }
  ],
  "paths": {
    "/v1/public/voice-campaign/cancel": {
      "delete": {
        "tags": [
          "VMS"
        ],
        "summary": "Cancel a VMS campaign",
        "description": "\n## Encoding : UTF-8\n## Authentication\nYour \"api-key\" and \"api-login\" identifiers must be added in the headers.\n## Definition\n__<p style=color:orange>Note: You must turn on VOICE SMS in Addition services to use this API</p>__If you have a waiting draft Voice Sms campaign, or a scheduled Voice Sms campaign, this web service will allow you to cancel it.\nCancellation is only allowed when the campaign has fewer than 3 recipients.\nCancellation is limited to 1000 requests per month and per API user account.\nWaiting campaigns must still be scheduled more than 10 minutes in the future.\n## Parameters\n| Name | Type | Description |\n| -- | --| -- |\n| ticket_number | string | This the value representing the ticket number of Voice Sms campaign you want to cancel |",
        "operationId": "delete_public_api.voice_campaign.cancel",
        "parameters": [
          {
            "name": "api-login",
            "in": "header",
            "description": "Your api login from your account",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-key",
            "in": "header",
            "description": "Your api key from your account",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Payload for cancel voice campaign.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelVoiceCampaignOnListData"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Voice Campaign canceled."
          },
          "400": {
            "description": "Bad request."
          },
          "401": {
            "description": "Unauthorized."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CancelVoiceCampaignOnListData": {
        "required": [
          "ticket_number"
        ],
        "properties": {
          "ticket_number": {
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 104,
      "1": 185,
      "2": 114,
      "3": 51,
      "4": 89,
      "5": 65,
      "6": 148,
      "7": 50,
      "8": 58,
      "9": 175,
      "10": 65,
      "11": 24
    }
  }
}
```