Skip to content

API keys

If you’ve been using Dispatch CLI so far, you must’ve noticed that you never had to generate an API key manually. Dispatch CLI generates them for you, to make local development environment easy to set up.

However, it’s best to generate a separate API key for use in production.

Create an API key

Create an API key in Console → API keys.

New API key

Note that unlike verification keys, API keys considered sensitive, so they should never be exposed publicly or included in the source code. It’s recommended to use a DISPATCH_API_KEY environment variable to expose an API key to your application. Dispatch SDK will look for this environment variable and configure itself.