---
updatedAt: 2025-05-19T20:19:58.000Z
agentTools:
  projectIndex: https://cogito.readme.io/llms.txt
---

# Terminate a specified subscription

Terminates a specified subscription. Upon successful termination, the callback
associated with the subscription will no longer be invoked with notifications.

<HTMLBlock>{`
<style>
  .rm-PlaygroundResponse,
  .Reference-section,
  .rm-TryIt{
      display: none;
  }
</style>
`}</HTMLBlock>

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Cogito Notifications API Reference",
    "version": "1.0",
    "description": "API exposed from the Cogito Dialog Application Server\n",
    "contact": {
      "name": "Cogito Corporation",
      "email": "info@cogitocorp.com",
      "url": "https://cogitocorp.com"
    }
  },
  "paths": {
    "/api/subscriptions/{subscriptionId}": {
      "delete": {
        "tags": [
          "Subscription"
        ],
        "summary": "Terminate a specified subscription",
        "operationId": "unsubscribeFromNotifications",
        "description": "Terminates a specified subscription. Upon successful termination, the callback\nassociated with the subscription will no longer be invoked with notifications.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/subscriptionId"
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "subscriptionId": {
        "name": "subscriptionId",
        "in": "path",
        "description": "subscription ID",
        "required": true,
        "schema": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```