{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kawaa-com/json-schema/kawaa-com-api-key-summary-schema.json",
  "title": "ApiKeySummary",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kawaa-com-api-keys-api-openapi.yml#/components/schemas/ApiKeySummary",
  "type": "object",
  "properties": {
    "key_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_used_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "key_preview": {
      "type": "string",
      "description": "`ev_****` and the key's last four characters, never the secret. An older key that has no stored preview shows `ev_••••`, with no characters from the key."
    },
    "scopes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "enum": [
          "verification:read",
          "verification:write",
          "lists:read",
          "lists:write",
          "deliverability:read",
          "deliverability:write",
          "compose:read",
          "compose:write",
          "exports:read",
          "exports:write",
          "webhooks:read",
          "webhooks:write",
          "integrations:read",
          "integrations:write",
          "analytics:read",
          "analytics:write",
          "account:read",
          "account:write",
          "account:delete",
          "billing:read",
          "billing:write",
          "team:read",
          "team:write",
          "security:read",
          "security:write",
          "white_label:read",
          "white_label:write"
        ]
      },
      "description": "What this key may reach. **`null` means UNRESTRICTED**: every key created without a `scopes` array is, and that is the default. Always present, so `null` is a fact about the key rather than a field an older build omitted."
    }
  },
  "required": [
    "key_id",
    "name",
    "status",
    "scopes"
  ]
}