---
title: "Cancel User Subscription"
method: POST
path: "/v2/user/cancel"
tags: ["App user provisioning"]
---

# Cancel User Subscription

`POST /v2/user/cancel`

## Request

- Base URL: `https://api.village.ai`
- URL: `https://api.village.ai/v2/user/cancel`
- Auth: HTTP bearer

Deactivate a user and invalidate all their tokens. Use this when a user cancels their subscription or should lose access. The user is marked inactive and all tokens are revoked. To reactivate, generate a new token via the create_auth_token endpoint.

## Response `200`

User subscription cancelled successfully

- object
  - `data` CancelUserResponse, required: User subscription cancellation response
    - `message` string, required: Success message
    - `external_user_id` string, required: External user identifier that was cancelled
  - `metadata` object, required
    - `request_id` string, required

## Other responses

- `400`: Bad request - invalid parameters
- `401`: Unauthorized - missing or invalid authentication

---

[API](https://skmtc.dev/village/apis/village-v2-api.md) - [All operations](https://skmtc.dev/village/apis/village-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/village/apis/village-v2-api/revisions/aebe21a1a544?raw)
