Actions2
Get Current User
AI-generatedSummary
Decode and return information about the currently authenticated user from the ID token stored in the node's configured Spiky AI credentials.
Inputs
None.
Output shape
a single JSON object containing user identity fields: 'sub' (user ID), 'email', 'username', 'name', and 'family_name' as available in the ID token.
This operation extracts user details by decoding the JWT id_token from Spiky AI API credentials; it throws errors if the token is missing, malformed, or cannot be decoded.
Examples
Example 1: Retrieve authenticated user info
No additional input parameters required; credentials must include a valid Spiky AI id_token.