insufficient_scope
HTTP status 403. This API key does not have the scope this endpoint needs.
Fix
Use a key that has the scope named in the message, or ask the account owner to create one.
What it looks like
{
"error": {
"type": "insufficient_scope",
"message": "This API key does not have the scope this endpoint needs.",
"fix": "Use a key that has the scope named in the message, or ask the account owner to create one.",
"docs_url": "https://authtext.com.au/docs/errors/insufficient_scope.md",
"request_id": "req_01JD3XA7Q2M7Q8R5T6V1W0XYZA"
}
}
The message and fix can be more specific than shown here. type never changes, so branch on that. Quote the request_id if you ask for help.
All errors: errors.
This page as markdown, for an AI agent: /docs/errors/insufficient_scope.md