Stytch API keys

First, you will need a Stytch account. Get your API keys by signing up.

The Stytch API uses basic authentication with your project_id and secret. You'll need to pass these values into the Authorization request header for every API call.

curl --request POST \
    --url \
    -H 'Content-Type: application/json' \
    -d '{
      "email": "",

You can find your keys in the API keys section of the Stytch Dashboard.

Frontend SDKs

For our frontend SDKs, you'll use your public_token rather than your project_id and secret when communicating with the Stytch API.


For each Stytch Project, there are two environments:

  • Test:
  • Live:

The Stytch API keys and data resources are all scoped to an environment and are not shared between environments. For example, a User created in the Test environment will not be available in the Live environment.