rsk_...) is how your applications authenticate to MeshAPI. It is also the unit that carries limits, spend caps, model access, and usage attribution — so managing keys is how you control what each application is allowed to do.
This page covers the key-management API. For using a key to authenticate a request, see Authentication.
Create an admin key in Dashboard → Settings → Admin keys. It is shown once, carries an explicit permission set, and always expires. See Admin Keys for permissions, scopes, rotation, and revocation. Everything on this page is also available in Dashboard → API Keys without any credential; the API is for automating it.
Creating a key
Fields
rpm or rpd above your organization’s rate-limit tier ceiling (1,000 RPM and 1,000,000 RPD on the standard tier) are rejected with 422. See Rate Limits & Spend Caps.
A key created with an admin key carries every API scope except files:read and files:write, so it gets 403 on the Files & RAG routes. Create keys that need RAG in Dashboard → API Keys.
Managing keys
DELETE is a soft delete: it sets the key’s status to suspended. The key stops working at the inference layer immediately, but the record and its usage history are preserved. There is no hard-delete endpoint — this keeps historical usage attributable.Inspecting a key
GET /v1/keys/{id} reports what a key is and may do — its org, status, scopes, model access and resolved limits. It never returns the key secret or its hash.
Unlike the other management routes, this one is also reachable by the rsk_ key itself, so an application can discover its own configuration without a dashboard session:
- The
rsk_key — reading itself only. The{id}must be the key’s own id; any other value is404(never403), so the endpoint is not a way to probe for other keys. A suspended key, or one refused by its IP allow-list, does not reach it. - A management credential — a
mak_admin key, or a signed-in dashboard session — withkeys:read, reading any key in its reach: by org or team role, or as an admin of the key’s team (the same visibilityGET /v1/keysgives you). A key outside its reach is403.
{id} is the key’s UUID — the same id used by GET /v1/keys, PATCH and DELETE — not the rsk_ token. A key holder that only has the token can get the id from the create response, the dashboard, or a GET /v1/keys listing.limits object carries both the key’s own raw values (key_rpm, key_spend_cap, …) and the effective values after resolving minimum-wins across the key, member, team and org tiers. For the full tier breakdown — which tier each limit came from — use GET /v1/keys/{id}/limits. See Rate Limits & Spend Caps for how the tiers combine.
Pinning the API version
A key can carry anapi_version — the dated contract every request made with it receives,
unless the request sends its own X-Mesh-Version header. Useful when the calling code is not
yours to change, or when a whole integration should sit on one version.
null to clear it. In the dashboard it is the key’s API Version field. See
API versioning for what a version covers and which ones are
served.
Model allow-lists
allowed_models restricts a key to a named set of models. It is the cleanest way to stop a cheap application reaching an expensive model.
Org and team keys
Assigningorg_id or team_id makes a key part of a shared structure: it draws on the org’s shared balance and inherits the org’s and team’s limits, resolved minimum-wins alongside the key’s own.
Attaching a routing_policy_template_id requires the key to belong to an org — templates are org-scoped, and a key with no org gets a 422.
See Organizations & Teams for the surrounding model.
Related
- Authentication —
rsk_vsmak_, and using a key to make requests - Admin Keys — the
mak_credential this page’s API takes - Rate Limits & Spend Caps — how limits resolve across tiers
- API Versioning — pinning a key to a dated contract
- Organizations & Teams — shared billing and pooled limits
- Account Configuration Checklist — recommended setup pass