---
title: "Cancel current subscription"
method: POST
path: "/api/subscriptions/cancel"
tags: ["Subscriptions"]
---

# Cancel current subscription

`POST /api/subscriptions/cancel`

## Request

- Base URL: `https://api.hiyd.ai`
- URL: `https://api.hiyd.ai/api/subscriptions/cancel`
- Auth: HTTP bearer

## Request body

- object
  - `immediately` boolean: If true, cancel immediately. Otherwise, cancel at period end.

## Response `200`

Subscription canceled

## Other responses

- `400`: No active subscription found

---

[API](https://skmtc.dev/hiyd/apis/hiyd-backend-api.md) - [All operations](https://skmtc.dev/hiyd/apis/hiyd-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hiyd/apis/hiyd-backend-api/revisions/23598d347e1b?raw)
