Authenticate towards the node
POST//auth
Authenticate towards the node
Request
- application/json
Bodyrequired
The login request
passwordstringrequired
usernamestringrequired
Responses
- 200
- 401
- 405
Login was successful
- application/json
- Schema
- Example (auto)
Schema
errorstring
jwtstringrequired
{
"jwt": "jwt",
"error": "error"
}
Unauthorized (Wrong permissions, missing token)
auth type: none
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear