Authentication APIs

Hosted OAuth - Revoke OAuth token

Changed on

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.

post/v3/connect/revoke

Request

  • Base URL
    https://api.us.nylas.com
  • Auth
    • HTTP bearer
    • or HTTP bearer

Query parameters

tokenstring required

The token to revoke

Response

The token was revoked successfully.

object required

Changes

    • breaking

      the response's property type changed from string to object for status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property to the response with the status