> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Statsig

> Statsig provides server-side feature gate evaluation, dynamic configuration, experimentation, and event measurement APIs.

![Statsig logo](https://mintcdn.com/composio-preview/B09iGux45A5cYDuO/images/toolkits/statsig.svg?fit=max\&auto=format\&n=B09iGux45A5cYDuO\&q=85\&s=d37281bca3c7a88bd0a2cee9bc35893b)

* **Category:** analytics
* **Auth:** API\_KEY
* **Composio-managed OAuth available?** N/A
* **Tools:** 7
* **Triggers:** 0
* **Slug:** `STATSIG`
* **Version:** 20261030\_00

## Tools

> [accordion] Check Feature Gate
>
> **Slug:** `STATSIG_CHECK_GATE`
>
> Evaluate 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
>
> **user** `object`
>
> Optional user context used to evaluate the gate. If provided, include user\_id, email, or at least one custom\_ids entry.
>
> **gate\_name** `string` *required*
>
> Exact feature-gate name to evaluate.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Check Feature Gates
>
> **Slug:** `STATSIG_CHECK_GATES`
>
> Evaluate 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
>
> **user** `object`
>
> Optional user context shared by all gate evaluations. If provided, include user\_id, email, or at least one custom\_ids entry.
>
> **gate\_names** `array` *required*
>
> One or more exact feature-gate names to evaluate in one request.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Dynamic Config
>
> **Slug:** `STATSIG_GET_DYNAMIC_CONFIG`
>
> Evaluate 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
>
> **user** `object`
>
> Optional user context used to evaluate the config. If provided, include user\_id, email, or at least one custom\_ids entry.
>
> **config\_name** `string` *required*
>
> Exact dynamic-config or experiment name to evaluate (2-100 characters).
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Layer
>
> **Slug:** `STATSIG_GET_LAYER`
>
> Evaluate 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
>
> **user** `object`
>
> Optional user context used to evaluate the layer. If provided, include user\_id, email, or at least one custom\_ids entry.
>
> **layer\_name** `string` *required*
>
> Exact layer name to evaluate (1-100 characters).
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Ranked Variants
>
> **Slug:** `STATSIG_GET_RANKED_VARIANTS`
>
> Rank variants for a Statsig contextual-bandit Autotune configuration using optional user context without logging an exposure.
>
> #### Input Parameters
>
> **user** `object`
>
> Optional user context used to rank the variants. If provided, include user\_id, email, or at least one custom\_ids entry.
>
> **config\_name** `string` *required*
>
> Exact contextual-bandit Autotune config name (2-100 characters).
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Log Custom Exposures
>
> **Slug:** `STATSIG_LOG_CUSTOM_EXPOSURES`
>
> Permanently 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
>
> **exposures** `array` *required*
>
> One or more gate exposures or experiment/config exposures identified by an assigned group or rule ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Log Events
>
> **Slug:** `STATSIG_LOG_EVENTS`
>
> Permanently 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
>
> **events** `array` *required*
>
> One or more custom events to log in a single batch.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not
