DELETE /api/my-account/sessions/{sessionId}

Revoke a specific user session by its ID, optionally revoking all associated grants and tokens. A logto-verification-id in header is required for revoking sessions.

Path parameters

  • sessionId string Required

    The unique identifier of the session.

Query parameters

  • revokeGrants string

    Whether to revoke all associated grants and tokens along with the session.

Responses

  • 204

    The session was revoked successfully.

  • 400

    The field is not editable.

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    The session does not exist.

  • 500

    Internal Server Error

DELETE /api/my-account/sessions/{sessionId}
curl \
 --request DELETE 'https://[tenant_id].logto.app/api/my-account/sessions/{sessionId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"