---
title: "Grant credits or activate a plan without Dodo"
method: POST
path: "/api/v1/admin/provision"
tags: ["admin"]
---

# Grant credits or activate a plan without Dodo

`POST /api/v1/admin/provision`

## Request

- Base URL: `https://api.cadencz.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cadencz.com/api/v1/admin/provision`
- Auth: HTTP bearer

Development and recovery tool. Activates a plan tier and/or grants credits for a workspace without going through Dodo Payments — use it when the webhook cannot reach a dev machine. It creates no real payment.

## Request body

- AdminProvisionRequest: Admin-only dev tool: grant credits and/or activate a plan without Dodo. Lets an admin reflect a purchase or plan locally when the Dodo webhook cannot reach the dev machine. Not a substitute for real payment.
  - `tier` string, nullable
  - `grant_credits` integer, nullable
  - `workspace_id` string, nullable

## Response `200`

Successful Response

- SubscriptionRead
  - `id` string, required
  - `workspace_id` string, required
  - `tier` string, required
  - `plan_state` string, required
  - `plan_label` string, required
  - `status` string, required
  - `renews_at` string, nullable, required
  - `cancel_at_period_end` boolean, required
  - `billing_period` 'monthly' | 'yearly', nullable, required
  - `has_provider_subscription` boolean
  - `trial_eligible` boolean, required
  - `included_credits` integer, required
  - `channel_cap` integer, required

## Other responses

- `400`: The request payload is invalid.
- `401`: Missing or invalid Supabase bearer token.
- `422`: Validation Error

---

[API](https://skmtc.dev/cadencz/apis/cadencz-api.md) · [All operations](https://skmtc.dev/cadencz/apis/cadencz-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cadencz/apis/cadencz-api/revisions/3392fe5e93db?raw)
