NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Authentication/Access Token (Oauth - Username/Password) → Get Access Token After MFA Request

AI-generated

Summary

Request an OAuth2 access token after an MFA challenge using username/password credentials.

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options.
  • PostTokens_3__body — Request body to send with the MFA token request; typically contains credential fields.

Output shape

A JSON object containing the access token and related metadata (e.g., token, expires_in, refresh_token).

The response may include optional fields; on failure an error envelope is returned.

Examples

Example 1: Obtain a fresh access token after MFA challenge.

Disable cache refresh, send username/password in body.

Example 2: Refresh cached token without re-prompting for MFA.

Enable refresh cache and omit body.

Example 3: Capture returned token fields for subsequent API calls.

Store token response in a workflow variable for later use.

Links

Discussion