Billing
Get subscription
Read the account's plan and every credit expiry.
api.leadity.io/v1/billing/subscriptionreadMCP tool get_subscriptionAnswers the account's monthly plan, or null when it has none (most accounts buy one-time packs), any older plans still running out beside it, and every expiring credit on the balance grouped by the exact moment it expires. Credits from a one-time pack never expire and are not listed. Cancelling or changing a plan is done by a person on Whop, at manageUrl.
Headers
Bearer, a space, then an API key: Bearer lk_api_... An MCP key is refused here with wrong_key_kind.
Response
The plan the account keeps, or null.
Show child attributesHide child attributes
The plan's sku.
Credits each payment grants.
The price of each payment in US cents.
The plan's state on Whop: active, or past_due while a payment is failing.
True once the plan was cancelled: it will not renew.
When the latest payment's credits were granted. An ISO 8601 timestamp in UTC.
When the latest payment's credits expire. An ISO 8601 timestamp in UTC.
When Whop will next charge the plan, when known. An ISO 8601 timestamp in UTC, or null.
Where a person manages or cancels the plan on Whop.
Other plans still live beside it, newest first: a plan that stopped renewing when a new size started. Usually empty.
Show child attributesHide child attributes
The plan's sku.
Credits each payment grants.
The price of each payment in US cents.
The plan's state on Whop: active, or past_due while a payment is failing.
True once the plan was cancelled: it will not renew.
When this plan's latest credits expire. An ISO 8601 timestamp in UTC, or null.
What is left of this plan's own credits.
Every expiring credit on the balance, one entry per exact expiry, soonest first. Expiring credits are spent first.
Show child attributesHide child attributes
When these credits expire. An ISO 8601 timestamp in UTC.
Errors
Every refusal answers { error, message } with the status below. The full list is on the Errors page.
| Code | Status | Meaning | Extra fields |
|---|---|---|---|
| unauthorized | 401 | The API key is missing, malformed, revoked or expired. | - |
| wrong_key_kind | 401 | This key opens the other surface: an API key works on the HTTP API, an MCP key on the MCP server. | - |
| account_suspended | 403 | The account is suspended. | - |
| email_not_verified | 403 | The account's email address is not verified yet. | - |
| rate_limited | 429 | Too many requests. Wait for the Retry-After seconds and try again. | retryAfterSeconds: The seconds to wait, the same number as the Retry-After header. |
| try_again | 503 | Leadity could not answer just now. Retry in a moment, with the same Idempotency-Key on a spending call. | retryAfterSeconds: When a request with this Idempotency-Key is still being processed: the seconds to wait before retrying with the same key, as the Retry-After header says. |
| internal_error | 500 | Something failed on our side. Nothing was charged twice. | body: On the MCP server, when Leadity answered in a shape the tool does not publish: that answer as it came. |