# Revocation

> Revoke a token, a session, an app's access, an agent or everything a user holds, and know how fast each kind of API stops accepting it.

A token is good until it expires, unless the realm revokes it first. You can revoke one token, a whole sign-in's
worth, an app's access to a user, an agent and every agent beneath it, or everything a user holds. The realm refuses a
revoked token at once, and so does every enforcement point that keeps up with it: the [gateway](/gateway/) within
one poll of the realm's revocation feed, ten seconds by default.

The one idea to hold on to: **how fast a revocation bites depends on how your API checks tokens.** An API that asks
the realm, or sits behind the gateway, stops a revoked token within seconds. An API that only checks signatures keeps
accepting it until it expires, which is why access tokens live five minutes by default.

<CardGrid>
  <LinkCard title="What can be revoked" description="Tokens, sessions, apps, delegations, agents and users, and what each one stops." href="/gateway/revocation/what-can-be-revoked/" />
  <LinkCard title="How fast revocation takes effect" description="At the realm, at the gateway, and at an API that checks for itself." href="/gateway/revocation/how-fast/" />
  <LinkCard title="Revoke a token" description="Sign a user out cleanly, or answer a leak." href="/gateway/guides/revoke-a-token/" />
  <LinkCard title="Stop an agent" description="Quarantine or kill an agent, and every agent beneath it." href="/workforce-identity/guides/agents/stop-an-agent/" />
</CardGrid>

## Capabilities

### Take access back

| Capability | What it gives you |
|---|---|
| [Tokens and sign-ins](/gateway/revocation/what-can-be-revoked/#tokens-and-sign-ins) | One token, every token exchanged from it, or a refresh token's whole family |
| [Sessions](/gateway/revocation/what-can-be-revoked/#tokens-and-sign-ins) | A session's end stops every token that names it |
| [An app's access](/gateway/revocation/what-can-be-revoked/#what-users-take-back) | A user takes back an app, and its tokens for them stop |
| [A delegation](/gateway/revocation/what-can-be-revoked/#what-users-take-back) | A user takes back an agent, and every token where it acts for them stops |
| [Agent kill switch](/gateway/revocation/what-can-be-revoked/#agents-and-users) | Killing or quarantining an agent stops its tokens, the agents beneath it, and every token it acts in |
| [Quarantine](/gateway/revocation/what-can-be-revoked/#agents-and-users) | A quarantined agent can't get a token, and the ones it holds stop |
| [Everything a user holds](/gateway/revocation/what-can-be-revoked/#agents-and-users) | Every token and grant a user held before a moment, from a signal or by setting them inactive |
| [Delegation chains](/gateway/revocation/what-can-be-revoked/#good-to-know) | Every agent in a token's `act` chain, and every token it came from, is checked |

### Make it stick everywhere

| Capability | What it gives you |
|---|---|
| [How fast revocation takes effect](/gateway/revocation/how-fast/) | The gateway refuses a revoked token within one poll, and refuses everything when its list is stale |
| [Revocation feed](/gateway/revocation/revocation-feed/) | Every live revocation, for your own enforcement point to hold |

## Coming next

- [Instant revocation](/gateway/revocation/whats-next/#instant-revocation): a revocation pushed to every gateway the moment it happens.

## Guides

- [Revoke a token](/gateway/guides/revoke-a-token/)
- [Stop an agent](/workforce-identity/guides/agents/stop-an-agent/)
- [Share security signals](/workforce-identity/guides/share-security-signals/)
- [Check a token at your API](/gateway/guides/check-a-token-at-your-api/)
