Skip to main content

Authenticate towards the node

POST 

//auth

Authenticate towards the node

Request

Bodyrequired

The login request

    passwordstringrequired
    usernamestringrequired

Responses

Login was successful

Schema
    errorstring
    jwtstringrequired
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "/auth");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"password\": \"password\",\n \"username\": \"username\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
Body required
{
  "password": "password",
  "username": "username"
}
ResponseClear

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