How to authenticate against the Split API
Most requests to Split's API are authenticated with an Admin API key. Some requests are authenticated with a client-side or server-side SDK API key.
The Admin key can be finely-tuned to provide access to your Split resources. Creating an API key is simple, as described on the Create an API Key page under the API Keys section.
Learn more about API keys
To best familiarize yourself with using API keys in Split, refer to the API keys guide in our main documentation site for more information.
To learn more about Admin API Key roles and scopes, just check out API keys overview
Authentication Header
Authenticate with the API by adding an authorization header containing your Admin API key. This must be done for each API request.
When using the given code examples:
Substitute ADMIN_API_KEY
with your own Admin API key.
Authorization: "Bearer ADMIN_API_KEY"
Substitute SDK_API_KEY
with your own client-side or server-side SDK API key.
Authorization: "Bearer SDK_API_KEY"