NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Authentication/JWT (JSON Web Token) → Create JWT Token from User/pass

AI-generated

Summary

Create JWT token from supplied username and password

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • PostJwt__body (required) — JSON payload containing user credentials (e.g., username and password) used to generate the JWT

Output shape

a JWT token string

The token is returned in the response body; no additional fields are included.

Examples

Example 1: Generate a token for user alice with password secret

Body: {"username":"alice","password":"secret"}

Example 2: Refresh cached dropdown values before creating token

Refresh Dropdown Cache: true, Body: {"username":"bob","password":"pwd123"}

Example 3: Create token without additional configuration

Body: {"username":"charlie","password":"charliePwd"}

Links

Discussion