Statsig Event
An event object used for logging exposure events, custom events, and webhook payloads in the Statsig analytics pipeline. Events power experiment analysis, product analytics, and metric computations.
Properties
| Name | Type | Description |
|---|---|---|
| eventName | string | The name of the event. Exposure events use the format statsig::gate_exposure, statsig::config_exposure, or statsig::experiment_exposure. Config change events use statsig::config_change. Custom events |
| user | object | |
| time | integer | Timestamp of the event in milliseconds since epoch. |
| value | object | An optional value associated with the event, such as a revenue amount, duration, or string label. |
| metadata | object | Optional metadata key-value pairs providing additional context for the event. |
| statsigMetadata | object | |
| timeUUID | string | A unique identifier for this event instance, combining timestamp and random components. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://schemas.statsig.com/schemas/statsig/event.json",
"title": "Statsig Event",
"description": "An event object used for logging exposure events, custom events, and webhook payloads in the Statsig analytics pipeline. Events power experiment analysis, product analytics, and metric computations.",
"type": "object",
"required": ["eventName", "user", "time"],
"properties": {
"eventName": {
"type": "string",
"description": "The name of the event. Exposure events use the format statsig::gate_exposure, statsig::config_exposure, or statsig::experiment_exposure. Config change events use statsig::config_change. Custom events use application-defined names.",
"minLength": 1,
"maxLength": 256
},
"user": {
"$ref": "#/$defs/StatsigUser"
},
"time": {
"type": "integer",
"description": "Timestamp of the event in milliseconds since epoch.",
"format": "int64"
},
"value": {
"description": "An optional value associated with the event, such as a revenue amount, duration, or string label.",
"oneOf": [
{ "type": "string" },
{ "type": "number" }
]
},
"metadata": {
"type": "object",
"description": "Optional metadata key-value pairs providing additional context for the event.",
"additionalProperties": true,
"properties": {
"gate": {
"type": "string",
"description": "The name of the gate, for gate exposure events."
},
"config": {
"type": "string",
"description": "The name of the config or experiment, for config or experiment exposure events."
},
"ruleID": {
"type": "string",
"description": "The rule that matched during evaluation."
},
"type": {
"type": "string",
"description": "The entity type for config_change events (e.g., Gate, Experiment, DynamicConfig)."
},
"name": {
"type": "string",
"description": "The entity name for config_change events."
},
"action": {
"type": "string",
"description": "The action performed for config_change events (e.g., created, updated, deleted)."
}
}
},
"statsigMetadata": {
"$ref": "#/$defs/StatsigMetadata"
},
"timeUUID": {
"type": "string",
"description": "A unique identifier for this event instance, combining timestamp and random components.",
"format": "uuid"
}
},
"$defs": {
"StatsigUser": {
"type": "object",
"description": "The user object representing the end user associated with the event.",
"properties": {
"userID": {
"type": "string",
"description": "A unique identifier for the user.",
"minLength": 1
},
"email": {
"type": "string",
"description": "The email address of the user.",
"format": "email"
},
"name": {
"type": "string",
"description": "The display name of the user."
},
"ip": {
"type": "string",
"description": "The IP address of the user."
},
"userAgent": {
"type": "string",
"description": "The user agent string."
},
"country": {
"type": "string",
"description": "The two-letter country code of the user.",
"pattern": "^[A-Z]{2}$"
},
"locale": {
"type": "string",
"description": "The locale identifier for the user."
},
"appVersion": {
"type": "string",
"description": "The version of the application the user is running."
},
"custom": {
"type": "object",
"description": "Custom user properties used for targeting rules.",
"additionalProperties": true
},
"privateAttributes": {
"type": "object",
"description": "Private user attributes used for evaluation but not logged to Statsig servers.",
"additionalProperties": true
},
"customIDs": {
"type": "object",
"description": "Custom identifier mappings such as companyID, teamID, or other organizational units.",
"additionalProperties": {
"type": "string"
}
}
}
},
"StatsigMetadata": {
"type": "object",
"description": "Metadata about the SDK that generated the event.",
"properties": {
"sdkType": {
"type": "string",
"description": "The type of SDK (e.g., js-client, py-server, react-native, node-server)."
},
"sdkVersion": {
"type": "string",
"description": "The version of the SDK."
},
"sessionID": {
"type": "string",
"description": "The session identifier for client-side SDKs."
},
"stableID": {
"type": "string",
"description": "A stable device identifier for anonymous user tracking."
}
}
}
}
}
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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/statsig-event"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.