# Coronium auth.md

## Register an anonymous agent for a private rental cart

The website issues temporary credentials for an agent's own pre-checkout carts. An estimate uses current USD prices and can change before purchase. It reserves no inventory. The registration expires after 24 hours; each access token lasts up to one hour.

1. Read [protected resource metadata](https://www.coronium.io/.well-known/oauth-protected-resource) and [authorization server metadata](https://www.coronium.io/.well-known/oauth-authorization-server). The resource and issuer are both `https://www.coronium.io`. The `agent_auth` block describes anonymous registration.
2. Send `POST https://www.coronium.io/agent-cart-auth/register` with JSON `{"type":"anonymous"}`. Store the returned `identity_assertion` and `claim_token` privately.
3. Send a form-encoded `POST https://www.coronium.io/agent-cart-auth/token` with `grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer` and the assertion in `assertion`. Use the returned `access_token` as a Bearer credential for your carts. It grants `cart:read` and `cart:write`.
4. Discover the [ACP cart service](https://www.coronium.io/.well-known/acp.json). Send `POST https://www.coronium.io/agent-commerce/carts` with a public catalog tariff ID in `line_items[].id`, a positive quantity, `API-Version: 2026-04-17`, and a fresh `Idempotency-Key`. Reuse that key only to retry the same request. Retrieve or update the cart at its ID, or cancel it with `POST /agent-commerce/carts/{id}/cancel`.
5. If a person wants to claim the cart, send `POST https://www.coronium.io/agent-cart-auth/claim` with the `claim_token` and their email, with their permission. Give them the returned `claim_attempt.verification_uri` and `claim_attempt.user_code`. They enter their email on Coronium and enter both their emailed code and your code. They should keep the email code private. Poll the token endpoint using `grant_type=urn:workos:agent-auth:grant-type:claim` and `claim_token`, respecting the returned polling interval. On success replace the pre-claim credentials. The owner can disconnect the registration in the same verified browser.
6. Revoke an access token with a form-encoded `POST https://www.coronium.io/agent-cart-auth/revoke` using `token`. Cart access is separate from the account, billing, and hosted MCP connections below.

## Look up plans without signing in

Read current prices and availability at [the public catalog](https://www.coronium.io/api/catalog). Read the [REST API contract](https://api.coronium.io/openapi.json) for individual endpoints and their authentication requirements.

## Connect an MCP client to an existing account

Add `https://api.coronium.io/mcp` as a Streamable HTTP server. Let the client follow the Bearer challenge, register with Coronium and open the sign-in and consent page in the account holder’s browser. The authorization code flow uses PKCE with S256. The account holder chooses which permissions to grant. Request `read` for account lookups and `manage` only if the task needs changes.

For a purchase or renewal, connect separately to `https://api.coronium.io/mcp/buyer`. An OAuth connection needs the buyer's explicit spending permission. Show the item, term, quantity and exact total for approval before placing an order. Use `tools/list` after connecting to find the operations available to that connection.

[Directory resource metadata](https://api.coronium.io/.well-known/oauth-protected-resource/mcp) · [Buyer resource metadata](https://api.coronium.io/.well-known/oauth-protected-resource/mcp/buyer) · [Authorization server metadata](https://api.coronium.io/.well-known/oauth-authorization-server)

## Provision a REST API credential

An account holder can issue a key in **Dashboard → Account → API Access** and supply it through the client’s secret store. Send it in the `Authorization: Bearer` header to `https://api.coronium.io/api/v3`. Treat a dashboard key as an account credential with access to billable actions. Keep it out of URLs, prompts and logs.

## Authorize a Stripe MPP purchase

A buyer can request a quote for one eligible dedicated rental with `POST https://api.coronium.io/api/v3/payment/mpp`. Supply the buyer’s account API key in `Authorization: Bearer`, a stable `Idempotency-Key` and the JSON fields `tariff_id`, `currency: "usd"` and `max_total_usd`. Anonymous and claimed cart credentials only manage carts.

When the buyer approves the priced challenge, send the echoed challenge and their Stripe grant through `Payment-Authorization` in a second request. Keep the same buyer, idempotency key, credential preference and exact JSON bytes. Poll the returned owner-scoped status URL on the Coronium API host for delivery. [MPP walkthrough and quote-only example](https://www.coronium.io/blog/buy-a-mobile-proxy-with-stripe-mpp)

## Register a new account through the REST API

An agent can register an empty account for a user who has asked for one. Use an email address the user controls and a new password stored in the integration’s secret store.

1. Send `POST https://api.coronium.io/api/v3/signup` with a JSON object containing `login` (email), `name` and `password`. Coronium sends a verification email for new addresses. The response has the same shape for existing accounts. The next step authenticates the account.
2. Send `POST https://api.coronium.io/api/v3/get-token` with `login` and `password`. Include the current authenticator `code` if the account requires two-factor authentication. Use the returned `token` as a Bearer credential for the next request.
3. Send `GET https://api.coronium.io/api/v1/account/api-token` with that Bearer credential. Store the returned `token` and `expiresAt` privately. This retrieves the account's current dashboard API key, valid for up to 365 days.
4. Verify access with `GET https://api.coronium.io/api/v3/account`, using the dashboard API key in the `Authorization: Bearer` header. A newly registered account starts with zero balance and zero proxies. Purchases and renewals require the user's approval.

## Register an OAuth client for an existing account

For hosted MCP, agents can use public-client registration. After discovering the issuer, send `POST https://api.coronium.io/oauth/register` with the client’s exact `redirect_uris` and `token_endpoint_auth_method: "none"`. Keep the resulting `client_id` for future connections. The account holder then signs in and approves the requested scopes in the authorization-code flow with PKCE S256. Access tokens are scoped to the requested MCP resource.

[Coronium dashboard](https://dashboard.coronium.io) · [MCP connection guide](https://www.coronium.io/mcp-server) · [Agent operating guide](https://www.coronium.io/AGENTS.md)
