---
title: "Assign Subscription"
method: POST
path: "/admin/tenants/{tenant_id}/subscription"
tags: ["Subscriptions"]
---

# Assign Subscription

`POST /admin/tenants/{tenant_id}/subscription`

## Request

- Base URL: `https://developer.claimmind.life` (the document declares no server; this is the origin it was published from)
- URL: `https://developer.claimmind.life/admin/tenants/{tenant_id}/subscription`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Assign a subscription plan to a tenant.

Creates a new subscription in Lago for the specified tenant.
The subscription starts on the provided start_date and ends after
the configured subscription period.

**Access:** mtk_admin only

**Request body:**
```json
{
    "plan_code": "claim_mind_pro",
    "start_date": "2026-01-21"
}
```

## Path parameters

- `tenant_id` string, required

## Request body

- PlanAssignRequest: Request to assign a plan to a tenant.
  - `plan_code` string, required
  - `start_date` string, required
  - `end_date` string, nullable

## Response `200`

Successful Response

- SubscriptionAssignResponse: Response after assigning a subscription.
  - `subscription` SubscriptionDetail, required: Subscription details from Lago.
    - `lago_id` string, required
    - `external_id` string, required
    - `plan_code` string, required
    - `plan_name` string, required
    - `status` string, required
    - `billing_time` string, nullable
    - `started_at` string, date-time, nullable
    - `ending_at` string, date-time, nullable
    - `created_at` string, date-time, required
  - `message` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/claimmind/apis/claimmind-open-api-service.md) - [All operations](https://skmtc.dev/claimmind/apis/claimmind-open-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/claimmind/apis/claimmind-open-api-service/revisions/ee8bfbeadb8a?raw)
