{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cockroach-labs/main/json-schema/cockroach-labs-create-api-key-request-schema.json",
  "title": "CreateApiKeyRequest",
  "description": "Request body for creating a new API key.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-api-keys-api-openapi.yml#/components/schemas/CreateApiKeyRequest",
  "type": "object",
  "required": [
    "name",
    "service_account_id"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name for the new API key."
    },
    "service_account_id": {
      "type": "string",
      "description": "ID of the service account to associate the key with."
    }
  }
}