---
title: "Mint For User"
method: POST
path: "/api/provider-keys/admin/mint"
tags: ["provider-keys"]
---

# Mint For User

`POST /api/provider-keys/admin/mint`

Mint a key for a named Quadrillion account.

Backs the internal tools site, which has no login of its own, so the
holder is named in the request. ``actor`` is the caller, recorded
separately so the audit trail shows who handed the key out.

## Request body

- OnBehalfMintRequest
  - `provider` 'anthropic' | 'openai', required — Model providers ``qkey`` can hand out keys for.
  - `email` string, required
  - `rotate` boolean

## Response `200`

Successful Response

- MintResponse
  - `provider` 'anthropic' | 'openai', required — Model providers ``qkey`` can hand out keys for.
  - `key` string, required
  - `key_hint` string, required
  - `source` string, required
  - `env_var` string, required
  - `pool_remaining` integer, nullable
  - `pool_low` boolean
  - `warning` string

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-30** `f4de1bab5efb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/changes/api/provider-keys/admin/mint/post.md)

---

[API](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api.md) · [All operations](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/quadrillion/quadrillion-cloud-api/revisions/f4de1bab5efb/schema)
