{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/honeycomb/main/json-schema/honeycomb-api-key-create-request-schema.json",
  "title": "ApiKeyCreateRequest",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/honeycomb-key-management-api-openapi.yml#/components/schemas/ApiKeyCreateRequest",
  "type": "object",
  "required": [
    "name",
    "type"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The display name for the API key."
    },
    "type": {
      "type": "string",
      "description": "The type of API key to create.",
      "enum": [
        "configuration",
        "ingest"
      ]
    },
    "permissions": {
      "type": "object",
      "description": "The permissions to grant to this API key.",
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "environment_id": {
      "type": "string",
      "description": "The environment to scope this key to."
    }
  }
}