GLPI Rest API V2 (Fork) icon

GLPI Rest API V2 (Fork)

GLPI Rest API Node compatible with GLPI 9.x and above.

Actions34

Session → Get Session

AI-generated

Summary

Retrieves the current GLPI session details using the configured OAuth credentials.

Inputs

  • raw — When enabled, returns the raw JSON response; otherwise returns a simplified key/value view.
  • reauthLink — When enabled, includes an authorization URL suggestion in the error message if a 401/403 occurs.

Output shape

A single record containing session details or raw JSON.

If configured, the node skips API requests and outputs the configured credentials. Returns an error with a re-auth link if 401/403 occurs when reauthLink is enabled.

Examples

Example 1: Get session info in raw JSON format

Enable 'Return Raw JSON' to view the raw API response.

Example 2: Get session info in simplified view

Disable 'Return Raw JSON' to see a simplified key/value card layout.

Example 3: Handle unauthorized access gracefully

Enable 'Show Re-auth Link' to surface a suggested authorization URL if the session token is invalid.

Links

Discussion