WorkOS · Schema

EventContextDto

Additional context about the event.

AuthenticationIdentity ProviderSSOSAMLOIDCSCIMDirectory SyncAuthorizationFGAAudit LogsMFAB2B SaaSAgentsMCP

Properties

Name Type Description
google_analytics_client_id string The Google Analytics client ID.
google_analytics_sessions array The Google Analytics sessions associated with the event.
ajs_anonymous_id string The anonymous ID from analytics.
client_id string The client ID associated with the event.
actor object
previous_attributes object Attributes that changed from their previous values.
View JSON Schema on GitHub

JSON Schema

workos-eventcontextdto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EventContextDto",
  "title": "EventContextDto",
  "type": "object",
  "properties": {
    "google_analytics_client_id": {
      "type": "string",
      "description": "The Google Analytics client ID.",
      "example": "GA1.2.1234567890.1234567890"
    },
    "google_analytics_sessions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "containerId": {
            "type": "string",
            "description": "The Google Analytics container ID.",
            "example": "GTM-ABCDEF"
          },
          "sessionId": {
            "type": "string",
            "description": "The Google Analytics session ID.",
            "example": "1234567890"
          },
          "sessionNumber": {
            "type": "string",
            "description": "The Google Analytics session number.",
            "example": "1"
          }
        },
        "required": [
          "containerId"
        ]
      },
      "description": "The Google Analytics sessions associated with the event."
    },
    "ajs_anonymous_id": {
      "type": "string",
      "description": "The anonymous ID from analytics.",
      "example": "ajs_anon_01EHWNCE74X7JSDV0X3SZ3KJNY"
    },
    "client_id": {
      "type": "string",
      "description": "The client ID associated with the event.",
      "example": "client_01EHWNCE74X7JSDV0X3SZ3KJNY"
    },
    "actor": {
      "$ref": "#/components/schemas/EventContextActorDto"
    },
    "previous_attributes": {
      "type": "object",
      "additionalProperties": {},
      "description": "Attributes that changed from their previous values."
    }
  },
  "description": "Additional context about the event."
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/workos-eventcontextdto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.