Skip to content

Register and Login

Register

Register an user in FINUX

  • Methode: POST
  • Path: /api/users
  • Header: X-Fino-ClientID : clientID and X-Fino-ClientSecret : token

expected request:

{
  "email": "string",
  "password": "string",
  "repeatPassword": "string"
}

expected response:

{
    "status": {
        "message": "OK"
    },
    "data": {
        "accessToken": "string",
        "expiresIn": "int",
        "refreshExpiresIn": "int",
        "refreshToken": "string",
        "tokenType": "string",
        "notBeforePolicy": "int",
        "sessionState": "string",
        "scope": "string"
    },
    "code": 200
}

custom errors:

{
    {
        "status": {
            "message": "keyToi18nText"
        },
        "data": null,
        "code": 473
    }
}

Login

Returns an access- and refreshToken for valid and existing login-credentials

  • Methode: POST
  • Path: /api/auth
  • Header: X-Fino-ClientID : clientID and X-Fino-ClientSecret : token

expected request:

{
  "email": "string",
  "password": "string"
}

expected response:

{
    "status": {
        "message": "OK"
    },
    "data": {
        "accessToken": "string",
        "expiresIn": "int",
        "refreshExpiresIn": "int",
        "refreshToken": "string",
        "tokenType": "string",
        "notBeforePolicy": "int",
        "sessionState": "string",
        "scope": "string"
    },
    "code": 200
}

custom errors:

{
    {
        "status": {
            "message": "keyToi18nText"
        },
        "data": null,
        "code": 473
    }
}