{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/connections-icu/json-schema/connections-icu-introspection-response-schema.json",
  "title": "IntrospectionResponse",
  "description": "Result of GET /v1/auth/introspect. Describes the current credential, the scopes it carries, and the capabilities (paths + methods) it can call. Agents should call this once before issuing other API calls.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/connections-icu-product-openapi.yml#/components/schemas/IntrospectionResponse",
  "type": "object",
  "required": [
    "schemaVersion",
    "status",
    "credentialType",
    "scopes",
    "capabilities",
    "docs",
    "auth",
    "rules"
  ],
  "properties": {
    "schemaVersion": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active"
      ]
    },
    "credentialType": {
      "type": "string",
      "enum": [
        "api_key",
        "oauth_token",
        "user_session"
      ]
    },
    "actorProfileId": {
      "type": [
        "string",
        "null"
      ]
    },
    "ownerProfileId": {
      "type": [
        "string",
        "null"
      ]
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "requiredScopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "methods": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "docs": {
      "type": "object",
      "properties": {
        "humanUrl": {
          "type": "string"
        },
        "openApiUrl": {
          "type": "string"
        },
        "introspectUrl": {
          "type": "string"
        }
      }
    },
    "auth": {
      "type": "object",
      "properties": {
        "acceptedHeaders": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "rules": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}