Create API key
Creates a new API key. The plaintext key is only returned once - store it securely!
Authorizations
MeshQu API key passed as a bearer token: Authorization: Bearer mqu_…. Mint one in the console (Settings → API keys).
Tenant UUID for multi-tenant isolation. Required on all authenticated routes — validated before authentication (middleware/tenant.ts), so a missing or non-UUID header returns 400 (MISSING_TENANT_ID / INVALID_TENANT_ID) before the API key is checked.
Body
Human-readable name for the key
1 - 100Permission scopes. Defaults to read + evaluate. The operator-level tenants:provision scope is not grantable here (granted out-of-band only).
policies:read, policies:write, decisions:evaluate, decisions:read, decisions:write, alerts:read, alerts:write, audit:read, audit:admin, api-keys:admin, members:read, members:write admin, operator, auditor, viewer Optional expiration time (ISO 8601)