{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-api-key-with-secret-schema.json",
  "title": "ApiKeyWithSecret",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-agents-api-openapi.yml#/components/schemas/ApiKeyWithSecret",
  "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"
    },
    "secret": {
      "type": "string",
      "title": "Secret",
      "description": "Shown once. Store it now; it cannot be read back."
    }
  },
  "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",
    "secret"
  ]
}