iotoms Docs

Get the session bootstrap

GET
/api/v1/management/session/bootstrap

Returns the signed-in user's plan, role and feature access, which the admin console uses to decide which modules to show.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Header Parameters

Response Body

OK

*/*
  1. response
status*string

Outcome of the request: SUCCESS when it worked; errors return an error status with the reason in message.

message*string

Short human-readable message describing the outcome.

data?

The signed-in user, their role, the merchant's plan and the features they can use.

Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/management/session/bootstrap'
Example Response
{  "status": "string",  "message": "string",  "data": {    "tenant": "string",    "user": {      "userId": 0,      "username": "string",      "firstName": "string",      "lastName": "string",      "email": "string"    },    "role": {      "roleId": 0,      "roleKey": "string",      "roleName": "string"    },    "plan": {      "tier": "FREE",      "registerLimit": 0    },    "featureAccess": {      "allowedFeatures": [        {          "code": "string",          "name": "string",          "description": "string",          "category": "string"        }      ],      "assignedFeatureCodes": [        "string"      ]    }  }}