Skip to content
Tollgate Docs

← Back to catalog

MALFORMED_KEY

Message. Bearer key did not match the Tollgate API-key format

Hint. Keys must start with `aw_live_` or `aw_test_` followed by 32+ base62 chars.

Wire shape

{
  "error": {
    "code": "MALFORMED_KEY",
    "message": "Bearer key did not match the Tollgate API-key format",
    "hint": "Keys must start with `aw_live_` or `aw_test_` followed by 32+ base62 chars.",
    "docsUrl": "https://docs.tollgatepay.com/errors/malformed-key"
  }
}

Canonical URL

https://docs.tollgatepay.com/errors/malformed-key — this URL is hard-coded into the 402/403/451 docsUrl field. It is stable; renaming the slug requires a migration plan.

Related codes