---
title: "Mint an ephemeral compute/operate key (gateway + api:read + api:write)."
method: POST
path: "/dojo/compute-keys"
tags: ["Dojo"]
---

# Mint an ephemeral compute/operate key (gateway + api:read + api:write).

`POST /dojo/compute-keys`

## Request

- Base URL: `https://api.mnemom.ai/v1`
- URL: `https://api.mnemom.ai/v1/dojo/compute-keys`
- Auth: HTTP bearer

Mints a Mnemom-provided, ephemeral API key carrying `gateway` + `api:read` + `api:write` (the standard-key default; no admin scopes), hung off the dedicated `dojo-system` billing account (not tied to ownership). `gateway` lets the runner act AS the agent through the prod gateway; `api:read`/`api:write` let the agent authenticate to mnemom-api MCP routes during onboarding (BE BORN / DECLARE) — a `gateway`-only key would 401 on every MCP call. The cleartext key is returned ONCE. Optionally bound to a TryMeConfig (sets its `compute_key_ref`). Admin-only — backs the `/admin/dojo` control surface. MNE-517 §2 / MNE-519.

## Request body

- object
  - `try_me_config_id` string, uuid
  - `label` string

## Response `201`

Compute key minted. The `key` is shown exactly once.

- object
  - `key_id` string, required
  - `key` string, required: Full cleartext key — shown once.
  - `key_prefix` string, required
  - `scopes` string[], required
  - `account_id` string, required
  - `created_at` string, date-time, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `429`: Rate-limit exceeded. The global per-IP limiter (100 requests/minute, applied to every `/v1/*` route) rejected this request. Back off until the window resets — `Retry-After` carries the cooldown in seconds and `X-RateLimit-Reset` the absolute reset time.
- `500`: Server error — request was well-formed but the server failed to fulfill it. Typically a downstream dependency (DB / RPC / external API) returned an unexpected error.

---

[API](https://skmtc.dev/mnemom/apis/mnemom-api.md) · [All operations](https://skmtc.dev/mnemom/apis/mnemom-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mnemom/apis/mnemom-api/revisions/274b7a6ea182?raw)
