What is Statsig ID Resolver?
Statsig ID Resolver is an integration set up at the project level that brings your ID names into console. IDs are used everywhere within Console, but unless you are an ID Wizard it is hard to tell at a glance who or what an ID belongs to. Take Feature Gate rules for example:



Step 1 - Create your ID Resolver Webhook
You will need to create and host your own webhook for this integration. This webhook should take in anid and a possibly null unit_type and return name. unit_type will come in the form of userID, stableID, or one of your custom ID types. The length of name should be under 100 characters.
Step 2 - Create your ID Resolver Autocomplete Webhook
This webhook should take in aname (the current partially typed name) and a possibly null unit_type and return the array results which contains potential matches in the shape of {name: string, id: string}. It should return at most 100 results, and the length per item should be under 100 characters.
Step 3 - Integrate your webhooks with Statsig
You can find Statsig ID Resolver under the Integrations tab within Project Settings

Secure Your Webhook With an API Key (Optional, But Recommended)
Statsig accepts an optional API key in the integration configuration. If you submit a string here, we will call your webhook with the HTTP Header “Authorization: Bearer <apiKey>.” This can be any random string. Your server should reject any request that does not supply the same string you supplied when setting up the integration. One way to generate this is by runningopenssl rand -hex 32. Make sure to store and read this securely on your server.
And that’s it! You’re off to the races with easier-to-recognize IDs throughout the Console.