Users

create session

post/api/login

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/login
  • Auth: HTTP bearer

Request body

Example request

{
  "user": {
    "email": "user@example.com",
    "password": "password123"
  }
}

Response

successful

messagestring
tokenstring
token_expired_atinteger
refresh_tokenstring
refresh_token_expired_atinteger

Example response

{
  "message": "Logged in successfully",
  "token": "jwt.token.here",
  "refresh_token": "jwt.token.here"
}

Changes

No recorded changes to this operation across all 1 revision of this API.