Skip to content

unauthorized

Not authorized

BetaAPI v2 is in public beta: endpoints, fields and behaviour can change before general availability. See the changelog

Last updated

Code: unauthorized · HTTP status: usually 401

The action needs a credential and did not get one that works.

Send a valid API key as for auth_required.

{
"code": "unauthorized",
"type": "https://docs.stoqapp.com/v2/docs/api-v2/errors/unauthorized/",
"title": "Not authorized",
"status": 401,
"detail": "Not authorized. This action needs a credential that it did not get.",
"errors": [
"Not authorized"
],
"details": [
{
"code": "unauthorized",
"message": "Not authorized",
"path": null,
"value": null,
"expected": null
}
]
}

Every API v2 and MCP failure carries code and a type link to its page here. See Errors & Responses for the full envelope.

Was this page helpful?

Still stuck? Ask Quinn or chat with support