Skip to content

General Blocks

These blocks are present for all event handlers:

  • Application ID - id of the application in which context the event handler is invoked.
    app-id-block
  • User ID - objectId of the currently logged in user whose identity is used to make the API call which triggered the event handler. A value for this parameter is not present if there is no logged in user (or if the user-token header is not passed for the REST invocations).
    user-id-block

  • User Roles -  an array/list of the role names of the logged-in user (if any) who made the API call.
    user-roles-block

  • User Token - value of the user-token header sent by the client application when making an API call.
    user-token-block

  • Device Type - the type of the device (as a string value) which made the API invocation. Possible values are "IOS", "ANDROID", "JS", "REST", "BL" (business logic)
    device-type-block

  • Request Headers - HTTP headers sent by the client application when invoking the API.
    request-http-headers-block