{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-api-key-list-schema.json",
  "title": "ApiKeyList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-identity-api-openapi.yml#/components/schemas/ApiKeyList",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/ApiKey"
      },
      "type": "array",
      "title": "Items"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "items"
  ],
  "$defs": {
    "ApiKey": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "prefix": {
          "type": "string",
          "title": "Prefix"
        },
        "environment": {
          "type": "string",
          "enum": [
            "live",
            "test"
          ],
          "title": "Environment"
        },
        "project_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Project Id"
        },
        "agent_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agent Id"
        },
        "scopes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Scopes"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "last_used_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Used At"
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expires At"
        },
        "revoked_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Revoked At"
        },
        "rotated_from_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rotated From Id"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "id",
        "label",
        "prefix",
        "environment",
        "project_id",
        "agent_id",
        "scopes",
        "created_at",
        "last_used_at",
        "expires_at",
        "revoked_at",
        "rotated_from_id"
      ],
      "title": "ApiKey"
    }
  }
}