View all connectors

Statsig

By integrating Statsig with DX, you can analyze experiment, metric, and feature data from your Statsig project. Please refer to the API documentation below and our schema explorer to see what data DX imports.

Prerequisites

To connect Statsig to DX, you need:

  • a Statsig Console API key

Setup instructions

Follow the steps below to connect Statsig to DX.

Step 1

In Statsig, generate a Console API key:

  • Navigate to Settings in the left sidebar.
  • Open Keys & Environments.
  • Click Generate New Key.
  • In the Create New Key modal:
    • Set Key Type to Console.
    • (Optional) Add a description.
    • Enable Make Read Only.
    • Leave Can Access Keys unchecked.
  • Click Create.
  • Copy the generated key from Console API Keys.

Step 2

  • Navigate to the connections page in DX and select “+ Connection” in the top right.
  • Select Statsig and paste your API token.

API reference

The table below lists the API endpoints used by DX.

Endpoint Documentation
/console/v1/project Get Project Info
/console/v1/users List Users
/console/v1/environments Get Environments
/console/v1/tags List Tags
/console/v1/target_app List Target Apps
/console/v1/layers Get Layers
/console/v1/metrics/list List All Metrics
/console/v1/experiments List Experiments
/console/v1/experiments/{id} Get Experiment

Errors

The table below lists potential error codes when adding a connection in DX.

Error Description
invalid_credentials Your API credentials entered are not valid.
invalid_permissions Your API token does not have the permissions required by DX.