Skip to main content
Statsig logo
  • Category: analytics
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 7
  • Triggers: 0
  • Slug: STATSIG
  • Version: 20261030_00

Tools

Slug: STATSIG_CHECK_GATEEvaluate one Statsig feature gate with optional user context without logging an exposure. A false result can mean either that the context fails the gate or that the gate name does not exist.

Input Parameters

object
Optional user context used to evaluate the gate. If provided, include user_id, email, or at least one custom_ids entry.
string
required
Exact feature-gate name to evaluate.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: STATSIG_CHECK_GATESEvaluate multiple Statsig feature gates with optional shared user context without logging exposures. Results are keyed by gate name; a false result does not prove that a gate exists.

Input Parameters

object
Optional user context shared by all gate evaluations. If provided, include user_id, email, or at least one custom_ids entry.
array
required
One or more exact feature-gate names to evaluate in one request.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: STATSIG_GET_DYNAMIC_CONFIGEvaluate a Statsig dynamic config or experiment with optional user context and return its value and assignment metadata without logging an exposure. A missing name returns an empty value object.

Input Parameters

object
Optional user context used to evaluate the config. If provided, include user_id, email, or at least one custom_ids entry.
string
required
Exact dynamic-config or experiment name to evaluate (2-100 characters).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: STATSIG_GET_LAYEREvaluate a Statsig layer with optional user context and return its parameter values and assignment metadata without logging an exposure. A missing layer is reported as not found.

Input Parameters

object
Optional user context used to evaluate the layer. If provided, include user_id, email, or at least one custom_ids entry.
string
required
Exact layer name to evaluate (1-100 characters).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: STATSIG_GET_RANKED_VARIANTSRank variants for a Statsig contextual-bandit Autotune configuration using optional user context without logging an exposure.

Input Parameters

object
Optional user context used to rank the variants. If provided, include user_id, email, or at least one custom_ids entry.
string
required
Exact contextual-bandit Autotune config name (2-100 characters).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: STATSIG_LOG_CUSTOM_EXPOSURESPermanently log one or more Statsig gate, experiment, or dynamic-config exposures when automatic exposure logging is not being used. Acknowledged exposures cannot be deleted through the runtime API.

Input Parameters

array
required
One or more gate exposures or experiment/config exposures identified by an assigned group or rule ID.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: STATSIG_LOG_EVENTSPermanently log one or more custom Statsig events for analytics and metric calculation in a single batch. Acknowledged events cannot be deleted through the runtime API.

Input Parameters

array
required
One or more custom events to log in a single batch.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not