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 JWT token. |
Body Params
| Param | Type | Description | Required |
|---|---|---|---|
String |
Yes | ||
| password | String |
Password | Yes |
| resource | String |
Uuid* of application | Yes |
*UUID (resource) 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"
}