{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-create-api-key-request-schema.json",
  "title": "CreateApiKeyRequest",
  "description": "POST body for `POST /workspaces/{workspaceId}/api-keys`. `label` is the only\nrequired field. Constraints:\n- Caller must be `owner` or `admin` on the workspace (403 otherwise).\n- Workspace must be on `starter` tier or above (403 + upgrade-required message otherwise).\n- Maximum 10 active keys per workspace (400 otherwise — revoke unused keys first).\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nopaque-co-uk-api-keys-api-openapi.yml#/components/schemas/CreateApiKeyRequest",
  "type": "object",
  "required": [
    "label"
  ],
  "properties": {
    "label": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Human-readable label for the key (e.g. `\"CI runner\"`, `\"local dev\"`).\nEditable later via `PATCH /workspaces/{workspaceId}/api-keys/{keyId}`.\n"
    }
  }
}