Most endpoints require a JWT token in the header:
Authorization: Bearer <token>
You can obtain the token from the Login API.
All errors return:
{
"error": {
"message": "Error message",
"status": 400
}
}
POST /auth/local/register
{
"username": "shamim",
"email": "[email protected]",
"password": "123456"
}
{
"jwt": "token",
"user": { ... }
}
POST /auth/local