Authenticate towards the node
POST//auth
Authenticate towards the node
Request
- application/json
Body
required
The login request
password stringrequired
username stringrequired
Responses
- 200
- 401
- 405
Login was successful
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
jwt stringrequired
{
"jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ3YXNwIiwic3ViIjoid2FzcCIsImF1ZCI6WyJ3YXNwIl0sImV4cCI6MTY4OTk1MTAyNCwibmJmIjoxNjg5ODY0NjI0LCJpYXQiOjE2ODk4NjQ2MjQsImp0aSI6IjE2ODk4NjQ2MjQiLCJwZXJtaXNzaW9ucyI6eyJ3cml0ZSI6e319fQ.LNUuTaoRjEPQyD2nQ00O6NeadiG7nmOEyVIQmGNb1a0",
"error": "error"
}
Unauthorized (Wrong permissions, missing token)
auth type: none
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST '/auth' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"password": "wasp",
"username": "wasp"
}'
ResponseClear