> ## Documentation Index
> Fetch the complete documentation index at: https://docs.migma.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Agents can check credits, upgrade, and buy domains

> Agents can check plan and credits, get an upgrade link, and buy domains through the API and MCP

Adds billing and domain purchase to the API and the Migma MCP server.

* Check the current plan and remaining email, image, and monthly credits.
* Get a Stripe checkout or billing portal link to upgrade or manage the subscription. The link is opened and approved by the account owner in a browser; the call itself charges nothing.
* Search available domains with yearly prices, buy one, and track registration until it is active. Domains renew yearly, and failed registrations are refunded automatically.
* Add and remove DNS records on domains bought in Migma, such as Google Workspace MX or site-verification TXT records. Migma's email sending records stay protected.

Adds `billing:read` and `billing:write` API key scopes. Payment always happens in the user's browser via Stripe.

[MCP Server](/mcp-server) · [API reference](/api-reference/introduction) · [Agent Auth Reference](/agent-auth)
