INVALID_GRANT

HTTP 400

What it means

The provided authorization grant or refresh token is invalid, expired, revoked, or does not match the redirect URI used in the authorization request.

What to do

Restart the OAuth authorization flow to obtain a fresh authorization code or refresh token.

Envelope

{
  "error": {
    "code": "INVALID_GRANT",
    "http_status": 400,
    "message": "The provided authorization grant or refresh token is invalid, expired, revoked, or does not match the redirect URI used in the authorization request.",
    "remediation_hint": "Restart the OAuth authorization flow to obtain a fresh authorization code or refresh token.",
    "docs_url": "https://developers.cognethics.com/errors/INVALID_GRANT",
    "request_id": "0f2c9b6e-...",
    "details": {}
  }
}

Back to Errors & status codes.