Skip to content
Skip to main content
POST
/v3/connect/revoke

Hosted OAuth - Revoke OAuth token

Revokes the specified OAuth access token. When you revoke the token, Nylas doesn't revoke the grant or the associated provider token. This means that a user can re-authenticate to get a new access token for the existing grant, so their grant_id doesn't change.

If you revoke a Nylas access token, Nylas also revokes all child tokens and the parent refresh_token attached to the access token.

ACCESS TOKENNYLAS API KEY

Parameters

Query parameters

token*string

The token to revoke

Responses

object
POSThttps://api.us.nylas.com/v3/connect/revoke

Find your API key in the Nylas Dashboard under API Keys in your application settings.

tokenrequiredstring

The token to revoke