younifyd
Menu

Logout

Logout

POST/auth/logout

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Logout action (under Authentication).
  3. Fill in the fields below, then reference the result from later steps as {{logout.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

refresh_tokenstring

The refresh token to invalidate. If you have the refresh token in a cookie through /auth/login, you don't have to submit it here.

modestring

Whether the refresh token is submitted in the JSON response, or in a `httpOnly` cookie.

One ofjsoncookiesession

json
{
  "refresh_token": "eyJ0eXAiOiJKV...",
  "mode": "json"
}

Response

Returns 204 with an object. Read it in later steps with {{logout.response.data.<field>}}.

dataany
json
{
  "data": null
}

Need more? See the Directus guide for connection setup and behaviour shared by every action.

Was this page helpful?