Skip to main content

Disable my other sessions

DELETE 

https://accounts.<domain>/auth/sessions

Calling this endpoint invalidates all except the current session that belong to the logged-in user. Session data are not deleted.

Request

Header Parameters

    X-Session-Token string

    Set the Session Token when calling from non-browser clients. A session token has a format of MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj.

    Cookie string

    Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server.

Responses

deleteMySessionsCount

Schema
    countinteger<int64>

    The number of sessions that were revoked.

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://accounts.<domain>/auth/sessions");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://accounts.<domain>
Parameters
— header
— header