{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/speakeasy/main/json-schema/speakeasy-api-key-details-schema.json",
  "title": "ApiKeyDetails",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/speakeasy-auth-api-openapi.yml#/components/schemas/ApiKeyDetails",
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string"
    },
    "workspace_slug": {
      "type": "string"
    },
    "org_slug": {
      "type": "string"
    },
    "generation_access_unlimited": {
      "type": "boolean"
    },
    "account_type_v2": {
      "$ref": "#/$defs/AccountType"
    },
    "enabled_features": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "billing_add_ons": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BillingAddOn"
      }
    },
    "feature_flags": {
      "deprecated": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "telemetry_disabled": {
      "type": "boolean"
    },
    "workspace_created_at": {
      "description": "Workspace creation timestamp.",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "workspace_id",
    "account_type_v2",
    "enabled_features",
    "workspace_slug",
    "org_slug",
    "workspace_created_at",
    "telemetry_disabled",
    "billing_add_ons"
  ],
  "$defs": {
    "AccountType": {
      "type": "string",
      "x-speakeasy-unknown-values": "allow",
      "enum": [
        "free",
        "scale-up",
        "business",
        "enterprise"
      ]
    },
    "BillingAddOn": {
      "type": "string",
      "x-speakeasy-unknown-values": "allow",
      "enum": [
        "webhooks",
        "sdk_testing",
        "custom_code_regions",
        "snippet_ai"
      ]
    }
  }
}