Hawkeye Docs

API

Errors

Status codes and the error envelope.

Partner envelope

Partner errors are JSON: {"ok": false, "error": "...", "code": "..."}.

HTTPcodeWhen
401authentication_errorMissing or unknown key. The message is “invalid API key”.
403scope_deniedThe key was not granted that capability.
403agent_deniedThe key cannot use that agent.
402spend_capThe key's monthly credit cap is used up.
402insufficient_quotaThe account cannot spend. The message is the wallet reason, or “You're out of credits.”
429rate_limitedThe key is over its requests-per-minute limit. Retry-After is 1.
400agent_requiredagent_id was missing on a call that needs one.
400jsonThe body was not a JSON object.
404not_foundThat conversation, file, or number does not exist.
404calls_offThe voice-call stack is not available.
413too_largeThe partner body or the uploaded file is over its limit.
403unavailableVideo generation is switched off for the account.

Chat completions

POST /api/v1/chat/completions uses an OpenAI-style error object. The HTTP status still matches the table above. The type is authentication_error, insufficient_quota, or permission_error. See Chat completions.