TOTVS RM icon

TOTVS RM

Interact with TOTVS ERP Linha RM — DataServer REST, native REST APIs, and automatic JWT authentication

── Framework ── → Get JWT Token

AI-generated

Summary

Authenticate to the TOTVS RM ERP system and retrieve a JWT Bearer token for subsequent authorized API requests.

Inputs

None.

Output shape

a single JSON object containing the JWT access token and token type

The operation uses stored credentials (username, password, baseUrl) to request an access token from the TOTVS RM API's /api/connect/token endpoint. If successful, it returns an object with properties 'access_token' and 'token_type'. The token is cached in-memory for reuse until shortly before expiration to optimize workflow executions.

Links

Discussion