---
title: Statsig API Integration on Truto
slug: statsig
category: Default
canonical: "https://truto.one/integrations/detail/statsig/"
---

# Statsig API Integration on Truto



**Category:** Default  
**Status:** Generally available

## Unified APIs

### Unified User Directory API

- **Groups** — Groups are a collection of users in the source application. In some applications, they might also be called Teams.
- **Roles** — The Role object represents a role of a User.
- **Users** — The User object represents a User.

## How it works

1. **Link your customer's Statsig account.** Use Truto's frontend SDK; we handle every OAuth and API key flow so you don't need to create the OAuth app.
2. **Authentication is automatic.** Truto refreshes tokens, stores credentials securely, and injects them into every API request.
3. **Call Truto's API to reach Statsig.** The Proxy API is a 1-to-1 mapping of the Statsig API.
4. **Get a unified response format.** Every response uses a single shape, with cursor-based pagination and data in the `result` field.

## Use cases

- **Automate developer provisioning and deprovisioning in Statsig** — IT operations and identity management platforms can sync their user directory to Statsig, automatically provisioning new engineers with the right project access and roles — and revoking access instantly on offboarding to maintain SOC2 compliance.
- **Sync team structures to Statsig projects** — Workforce management or HR platforms can map organizational teams to Statsig projects, ensuring that each team only sees the feature flags and experiments relevant to their domain without manual configuration.
- **Enforce role-based access control across experimentation environments** — Security and governance SaaS products can push role assignments into Statsig so that junior engineers get read-only access while senior leads retain full control over production feature gates — all managed from a single pane of glass.
- **Keep Statsig permissions in sync with your identity provider** — SSO and directory sync platforms can use Truto to continuously reconcile group memberships and roles between their IdP and Statsig, eliminating permission drift as teams grow and reorganize.

## What you can build

- **Automated Statsig user provisioning** — Automatically create Statsig accounts for new hires and assign them to the correct organization as soon as they appear in your platform's user directory.
- **Team-to-project mapping engine** — Map groups in your product (e.g., 'Mobile Team,' 'Platform Team') to corresponding Statsig projects so each team only accesses their own feature flags and experiments.
- **Role assignment sync** — Push role changes from your SaaS into Statsig — promoting a user to Admin or restricting them to Read-Only — without anyone logging into the Statsig console.
- **Offboarding kill-switch for feature flag access** — Instantly revoke a departing employee's Statsig access and roles the moment they are deactivated in your platform, closing a critical security gap around production feature toggles.
- **Cross-platform access audit dashboard** — Surface a unified view of who has access to Statsig — including their roles and project assignments — alongside permissions from other connected tools, all pulled through Truto.

## FAQs

### What Statsig resources can be managed through Truto?

Truto's Unified User Directory API maps to Statsig's Users, Groups (Projects), and Roles. This lets you programmatically manage team member lifecycles, project assignments, and RBAC permissions within a Statsig organization.

### Are specific Truto tools available for Statsig today?

Statsig tools are built on request. Once you signal interest, Truto builds and tests the integration against Statsig's Console API, handling authentication, pagination, and API-specific quirks so you don't have to.

### How does authentication work for the Statsig integration?

Statsig's Console API uses API key-based authentication. Your end users provide their Statsig Console API key when connecting their account, and Truto securely manages the credential on your behalf.

### Are there rate limits to be aware of on Statsig's API?

Yes, Statsig enforces rate limits on its Console API. Truto handles retry logic and backoff strategies automatically, so your integration remains reliable even under heavy sync workloads.

### Can I map custom roles or project structures unique to my customers' Statsig setup?

Truto's Unified User Directory API normalizes Users, Groups, and Roles across providers. For Statsig-specific fields like project-level permissions, Truto supports passing through additional data so you can accommodate each customer's configuration.

### How fresh is the data when syncing users and roles from Statsig?

Data freshness depends on how you configure sync intervals through Truto. You can poll Statsig's API on a schedule or trigger syncs on-demand in response to events in your platform, such as a new hire or role change.
