Skip to content

auth_invalid

API key not valid

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

Last updated

Code: auth_invalid · HTTP status: usually 401

A credential was sent, but it is not a current STOQ API key for any store.

Copy the key again from the STOQ app’s API key page and resend. A rotated or revoked key stays invalid.

{
"code": "auth_invalid",
"type": "https://docs.stoqapp.com/v2/docs/api-v2/errors/auth-invalid/",
"title": "API key not valid",
"status": 401,
"detail": "Invalid API key. The credential sent is not a current STOQ API key: it was mistyped, rotated or revoked. Copy the key again from STOQ → Back in stock alerts → Integrations → API Key and resend; see https://docs.stoqapp.com/docs/api-key/",
"errors": [
"Invalid API key"
],
"details": [
{
"code": "auth_invalid",
"message": "Invalid API key",
"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