Skip to Content

Logout

This API allows you to invalidate the access token of your app without affecting other apps or web and mobile sessions.

USE CASE

Revoke the access token when a user signs out of your app.

Other apps and FYERS web and mobile sessions stay signed in.

Note

This revokes the token only for the specific app. Other active apps and FYERS web or mobile sessions stay signed in.

Details

  • This invalidates the access token, revoking it only for the specific app without affecting other active apps or web and mobile sessions.
  • Your app needs the Basic permission. It covers Logout and Logout App, along with Profile Details.
  • The request takes no body or parameters. Send a POST with only the Authorization header.
  • After a successful logout the access token is invalid. Get a new one through the Authentication flow before calling any other API.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.

Response Attributes

AttributeData TypeDescription
sstringRequest status - "ok" when the logout succeeds.
codeintResponse status code, e.g. 200 on success.
messagestringHuman-readable message confirming the user was successfully logged out.
Last updated on