NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Authentication/JWT (JSON Web Token) → Create JWT Token for Delegated Access

AI-generated

Summary

Create a JWT token for delegated access.

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options.
  • PostJwt_4__body (required) — The request body to send for creating the JWT token, typically containing fields such as client ID and secret.

Output shape

a JWT token string

Returns the generated token on success; any error details are propagated by the node.

Examples

Example 1: Generate a token using the default empty body without refreshing cached options.

refreshOptions: false, PostJwt_4__body: {}

Example 2: Refresh cached options and provide a custom body with client credentials.

refreshOptions: true, PostJwt_4__body: {"clientId":"123","clientSecret":"abc"}

Example 3: Create a token with an empty body while keeping cached options enabled.

refreshOptions: true, PostJwt_4__body: {}

Links

Discussion