---
title: "Get Credits"
method: POST
path: "/api/mcp/get_credits"
tags: ["mcp"]
---

# Get Credits

`POST /api/mcp/get_credits`

## Request

- Base URL: `https://writer.swapp1990.org` (the document declares no server; this is the origin it was published from)
- URL: `https://writer.swapp1990.org/api/mcp/get_credits`
- Auth: none declared

Report the authenticated user's billing and subscription state.

Free, read-only probe. Use before a chargeable call to avoid a 402
mid-flow and to surface whether WriteForYou Pro access is active.

Returns entitlement plus credit_accounting. In subscription mode,
credit_accounting is legacy/free-trial bookkeeping and does not gate
access; use entitlement.allows_access and subscription.allows_access.

## Request body

- EmptyInput

## Response `200`

Successful Response

- GetCreditsResponse
  - `identity` object, nullable
  - `tier` string, nullable
  - `plans` object, nullable
  - `entitlement` object, nullable
  - `credit_accounting` object, nullable
  - `subscription` object, nullable
  - `can_generate_images` boolean, nullable
  - `can_write_articles` boolean, nullable
  - `can_use_pro_experimental` boolean, nullable
  - `can_use_smart_client_authoring` boolean, nullable
  - `can_use_server_llm_authoring` boolean, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api.md) · [All operations](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api/revisions/ce5e2a89ab4d?raw)
