WorkOS · Schema

AuditLogConfiguration

AuthenticationIdentity ProviderSSOSAMLOIDCSCIMDirectory SyncAuthorizationFGAAudit LogsMFAB2B SaaSAgentsMCP

Properties

Name Type Description
organization_id string Unique identifier of the Organization.
retention_period_in_days integer The number of days Audit Log events will be retained before being permanently deleted.
state string The current state of the audit log configuration for the organization.
log_stream object The Audit Log Stream currently configured for the organization, if any.
View JSON Schema on GitHub

JSON Schema

workos-auditlogconfiguration-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AuditLogConfiguration",
  "title": "AuditLogConfiguration",
  "type": "object",
  "properties": {
    "organization_id": {
      "type": "string",
      "description": "Unique identifier of the Organization.",
      "example": "org_01EHZNVPK3SFK441A1RGBFSHRT"
    },
    "retention_period_in_days": {
      "type": "integer",
      "description": "The number of days Audit Log events will be retained before being permanently deleted.",
      "example": 30
    },
    "state": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "disabled"
      ],
      "description": "The current state of the audit log configuration for the organization.",
      "example": "active"
    },
    "log_stream": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the Audit Log Stream.",
          "example": "als_01EHZNVPK3SFK441A1RGBFSHRT"
        },
        "type": {
          "type": "string",
          "enum": [
            "AzureSentinel",
            "Datadog",
            "GenericHttps",
            "GoogleCloudStorage",
            "S3",
            "Splunk"
          ],
          "description": "The type of the Audit Log Stream destination.",
          "example": "Datadog"
        },
        "state": {
          "type": "string",
          "enum": [
            "active",
            "inactive",
            "error",
            "invalid"
          ],
          "description": "The current state of the Audit Log Stream.",
          "example": "active"
        },
        "last_synced_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO-8601 timestamp of when the last event was successfully synced, or null if no events have been synced.",
          "example": "2026-01-15T12:00:00.000Z"
        },
        "created_at": {
          "format": "date-time",
          "type": "string",
          "description": "An ISO 8601 timestamp.",
          "example": "2026-01-15T12:00:00.000Z"
        }
      },
      "required": [
        "id",
        "type",
        "state",
        "last_synced_at",
        "created_at"
      ],
      "description": "The Audit Log Stream currently configured for the organization, if any."
    }
  },
  "required": [
    "organization_id",
    "retention_period_in_days",
    "state"
  ]
}

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-auditlogconfiguration"
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.