admin_issue_key
Issue Key
Idempotently issue a user's API key and ALWAYS return the paste-able connect block. Returns the email's existing active key (or mints one) so a user keeps a single key across dashboard reloads; with rotate=true, revokes the existing keys and mints a fresh one. Admin-gated — the dashboard's per-user provision route (which verifies the user's Firebase token) calls this server-side, never the browser.
Responses:
200: Successful Response (Success Response) Content-Type: application/json
Example Response:
{
"api_key": "Api Key",
"tier": "Tier",
"limits": {}
}422: Validation Error Content-Type: application/json
Example Response:
{
"detail": [
{
"loc": [],
"msg": "Message",
"type": "Error Type",
"ctx": {}
}
]
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | personal | |
| Yes | |||
| rotate | No | Revoke existing keys and mint a fresh one. |