Skip to main content
All Vern API requests authenticate with an API key passed in the x-api-key header.
A key is scoped to your account and can address every migration in it. The key’s creator becomes the owner of any migration it provisions.

Base URL

Send requests to the base URL for your account’s data region: The examples in these docs use the US base URL. If your account is hosted in Australia, swap in https://au.app.vern.so/api/v1. Requests sent to the other region’s base URL are refused with 421. See Data region.

Get a key

Sign in to app.vern.so and go to Settings → API keys. Click New key and copy it — Vern doesn’t show it again after creation. For details on generating, rotating, and revoking keys, see API keys.

What can go wrong

  • 401 Unauthorized — key is missing, malformed, or revoked. Creating a migration additionally requires API-key auth specifically (a session token is rejected).
  • 429 Too many requests — you’ve hit the rate limit. Back off and retry. See Errors & limits.

Security

  • Never put your key in client-side code. Vern’s API is designed to be called from your backend.
  • Use environment variables, not hardcoded strings.
  • Rotate keys periodically and immediately if you suspect leakage.

Next