View as Markdown

Auth and keys

Every API call needs a key sent as a Bearer token.

Authorization: Bearer <your key>

Getting a key

  1. Sign up at https://nextauto.ai/sign-up.
  2. Wait for approval. Until then every call answers 403. Ask your NeXT Grade contact if it is taking a while.
  3. Create a key on the API keys page and copy it. It is shown once.

A key belongs to you or to a company organization. An organization's keys share its usage and limits, so a whole team can use one account.

Keeping keys safe

  • Keep keys in an environment variable or a secrets manager, never in code, prompts or chat.
  • Revoking a key on the API keys page stops it at once.

Answers

  • 401: the key is missing or invalid.
  • 403: the account isn't approved yet, or it is paused.

Both carry an error message, and a missing key or an account not yet approved also carries a docs link to this page.