401 Unauthorized response.
Get an API key
Sign up at wraith.dev and navigate to Settings → API Keys to generate your key. Keys are prefixed withwraith_live_ for production. Store your key in an environment variable; never commit it to source control.
Authenticate requests
Pass your key in theAuthorization header as a Bearer token on every request.
Your Wraith API key in the format
Bearer wraith_live_....Bring your own model (BYOM)
By default, agents use Wraith-managed Gemini inference. If you want to use your own OpenAI or Anthropic account instead, pass two additional headers. These are optional — omitting them falls back to the managed model.The AI provider to use. Accepted values:
openai, claude, gemini.Your API key for the chosen AI provider.
Authentication errors
If your key is missing or invalid, the API returns a401 response:
401 response

