Authentication
Get token
There are some use cases - when sending requests to Nemuru API or invoking specific widgets - where it is necessary to use authentication. In other words, an access_token
must be obtained and included when sending a request.
POST
Login
Request
POST /auth/login/
Content-Type: application/json
{
"username": "username@email.com",
"password": "123456"
}
Response [201]
{
"token_type": "bearer",
"access_token": "Q3vDmRUCuTltHvLagKUeny8uVr6CaYHZd4",
"refresh_token": "RU1SxxZ6WAjc3Rjn9vhiC4s10zK813odXs",
"expires_in": 7200
}
info
For more detail, consider checking the Authentication section in the API reference.