NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Authentication/JWT (JSON Web Token) → Create JWT Token from Refresh JWT

AI-generated

Summary

Create a JWT access token using a refreshed JWT token

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • PostJwt_2__body — JSON payload to send with the request

Output shape

a JWT token string

Returns the newly created JWT token; on failure an error object is returned

Examples

Example 1: Refresh an existing JWT token to obtain a new access token

Enable refreshOptions, provide the current refresh token in the JSON body, and execute the node

Example 2: Generate a new JWT token from a stored refresh token

Set refreshOptions to false, supply the refresh token JSON payload, and run the operation

Links

Discussion