Start operating in our system
Before doing any operation in our API, it is needed to log in.
Steps to Log In
- Contact us to get a user in our platform contact@imageryst.com
- Use Middleware to log in with your credentials.
- Get your access_token and use it as a Bearer token to authenticate in the other endpoints.
Warning
It is needed to set the Bearer token on the Authentication header in order to execute any other endpoint.
Endpoint
POST /api/v1/middleware/login
Body
{
"username": "foo",
"password": "bar"
}
Successful Response example
{
"access_token": "string",
"data": {
"units": "string",
"unitsValue": 0,
"username": "string",
"email": "string",
"id_user": 0,
"rol": [
"string"
],
},
"access_lifespan": 0,
"refresh_lifespan": 0,
"token_creation": 0,
"code": 0
}