Skip to main content
Version: v3

Remove Session

DELETE 

http://localhost:3000/api/sessions/:sessionId

Terminate a specific session.

Request

Path Parameters

    sessionId stringrequired

    The identifier of the session.

Responses

Session removed successfully.

Authorization: http

name: BearerAuthtype: httpscheme: bearerdescription: Authentication using a Bearer token.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "http://localhost:3000/api/sessions/:sessionId");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
http://localhost:3000
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!