To use the Jmvstream API, it is necessary to obtain the JWT Token for authentication. Below is the route and the request needed to obtain the Token:

Route

Method Route Description
POST /v1/authenticate Returns new JWT token.

Body Params

Param Type Description Required
email String Client email Yes
password String Client password Yes
resource String Uuid* of client application Yes

*UUID is found on the HUB, any questions just contact our support team.

Response

– Token return response (Status: 200)

{
  "token": "<JWT_TOKEN>"
}

– Error response when not sending required field or field in incorrect format (Status: 400)

{
    "email" is required
}

– Error response when unable to authenticate the user (Status: 401)

{
  "message": "not allowed"
}

– Error response for some internal error (Status: 500)

{
  "error": "Internal Server Error"
}