GetItDoneGetItDone Docs
Public APIError codes
Public APIError codes

Invalid access token (invalid_token)

What the GetItDone API problem code invalid_token (HTTP 401) means, what causes it, and how to fix it.

What it means

An OAuth 2.1 access token was supplied but is expired, malformed, or revoked.

Likely causes

  • The access token has passed its expiry.
  • The token was issued by a different authorization server or for a different resource.

How to fix

  • Refresh the access token using your refresh token (request the offline_access scope to receive one).
  • Re-run the OAuth authorization flow if the grant was revoked.

Example problem+json

{
    "type": "https://nowgetitdone.com/docs/api/problems/invalid-token",
    "title": "Invalid access token",
    "status": 401,
    "code": "invalid_token",
    "request_id": "req_a1b2c3d4"
}

On this page