---
title: Invalid grant
summary: Code: invalidgrant
section: errors
order: 44
---
# Invalid grant

Code: `invalid_grant`

- HTTP status: 400 Bad Request
- OAuth `error`: `invalid_grant`
- Shown to the end user: Invalid grant

Request-specific detail for this error goes to the app or developer (API response, developer view, logs). The public page shows only the short message and the code.

## Cause

The grant (code, refresh token, assertion, device code) was rejected.

## Fix

Obtain a fresh grant and retry once.

[All error codes](/errors/index.md)
