---
title: "Cancel Subscription"
method: POST
path: "/api/v1/alerts/cancel"
---

# Cancel Subscription

`POST /api/v1/alerts/cancel`

## Request

- Base URL: `https://www.deepmapai.com`
- URL: `https://www.deepmapai.com/api/v1/alerts/cancel`
- Auth: none declared

Stop billing at the end of the paid period.  Does NOT stop emails.

The tier is deliberately NOT downgraded here: they paid through the end
of the current period, so paid access runs to that date.  Stripe's
customer.subscription.deleted webhook downgrades when the period
actually ends, and scripts/reconcile_stripe_tiers.py is the safety net
if that webhook is ever missed.

## Headers

- `x-api-key` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deepmapai/apis/deepmap-ai.md) · [All operations](https://skmtc.dev/deepmapai/apis/deepmap-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/deepmapai/apis/deepmap-ai/revisions/dab995d977d0?raw)
