Every request to the Off the Hook API must include your API key in theDocumentation Index
Fetch the complete documentation index at: https://docs.offthehook.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header. The API uses standard Bearer token authentication — there are no sessions, cookies, or OAuth flows to manage.
Header format
Include your API key on every request to a/v1/* endpoint:
oth_. Here is a complete curl example:
Error responses
If theAuthorization header is missing, malformed, or contains an invalid key, the API returns a 401 Unauthorized response:
error field is a stable string code you can branch on in your error handling logic. The message field is a human-readable description intended for debugging.
Every error response includes a
requestId field. The same value is also present in the X-Request-Id response header on every API response, including successful ones. If you contact support about an unexpected error, include the requestId so the team can locate the request in the logs.