Skip to main content
POST
/
api
/
v1
/
auth
/
login
User login - returns JWT token
curl --request POST \
  --url http://localhost:3000/api/v1/auth/login \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "email": "<string>",
  "password": "<string>"
}
'
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
username
string

username — see API source for exact type.

email
string

email — see API source for exact type.

password
string

password — see API source for exact type.

Response

OK

message
string
data
object