Skip to main content

API Root Access Example

Exchange apiRootAccessSecret to a session-token. The session-token is 1h valid.

POST http://localhost:8010/user/getApiRootAccessSessionToken

{"apiRootAccessSecret": "TODO_REPLACE_THIS_STRING_WITH_THE_apiRootAccessSecret_DEFINED_IN_SYSTEM_CONFIGURATION"}


{% client.global.set("apiRootAccessSecret", response.body); %}

Fetch user data of current user (root user)

GET http://localhost:8010/user/data
session-token: {{apiRootAccessSecret}}

Fetch all user objects (root user has access to whole database)

GET http://localhost:8010/htmlModules/getFromDb/users?skip=0&limit=10000
session-token: {{apiRootAccessSecret}}