Skip to content

Start operating in our system

Before doing any operation in our API, it is needed to log in.

Steps to Log In

  1. Contact us to get a user in our platform contact@imageryst.com
  2. Use Middleware to log in with your credentials.
  3. 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
}