Use an API key

Send a key with each call, and the CLI, your code and the API act as you.

Before you start

You need an API key. See Create an API key.

Use an API key

  1. Add your key to your project's .env:
    .env
    VERYFRONT_API_KEY=vf_…
  2. Check who the CLI is. You should now see ✓ Authenticated with an API key:
    Shell
    npx veryfront whoami

Next steps