Skip to content

AI Defense Activity GraphQL API

Query AI Defense activity, your AI application and user inventory, and tenant settings over GraphQL.

See the guide for a narrative walkthrough of this API.

This is a GraphQL API: every request is a POST carrying a query (or mutation) document, rather than one endpoint per operation. See the guide above for the request shape and authentication.

Queries

  • activities
    List activities matching the filter, sorted as requested, with cursor pagination.
  • activity
    Fetch a single activity by ID.
  • appInventory
    List AI applications in the tenant inventory matching the filter, sorted as requested, with offset/limit pagination over the current result ordering.
  • inventorySummary
    Fetch aggregate counts for AI apps and users in the requested inventory window.
  • secureAITenantSettings
    AI Defense settings for the calling tenant. Null when the tenant has no settings record yet.
  • userApps
    List the AI applications a single user interacted with in the window, sorted as requested, with offset/limit pagination. Identify the user by the public actor ID from the user inventory.
  • userInventory
    List users in the tenant inventory matching the filter, sorted as requested, with offset/limit pagination over the current result ordering.

Mutations

  • updateSecureAITenantSettings
    Idempotent upsert of the calling tenant's settings: creates the record on the first update and updates it thereafter. The client does not need to choose between creating and updating. An omitted section is left untouched.

Types

Download