Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Account → Get Session
AI-generatedOverview
This node interacts with the Appwrite API to perform various operations on different resources. Specifically, for the 'Account' resource and 'Get Session' operation, it retrieves session information based on a provided Session ID. This is useful for managing user sessions in applications, such as verifying active sessions or retrieving session details for user management.
Use Case Examples
- Retrieve session details for a user by providing the Session ID to monitor active sessions.
- Use the node to get session information as part of a workflow that manages user authentication and session validation.
Properties
| Name | Meaning |
|---|---|
| Session ID | The unique identifier of the session to retrieve. This is required to specify which session's details to fetch. |
Output
JSON
sessionId- The unique identifier of the session retrieved.userId- The identifier of the user associated with the session.createdAt- Timestamp when the session was created.updatedAt- Timestamp when the session was last updated.expireAt- Timestamp when the session will expire.
Dependencies
- Appwrite API key credential with endpoint, project ID, and API key required for authentication.
Troubleshooting
- Ensure the Session ID provided is valid and exists; otherwise, the API will return an error indicating the session was not found.
- Check that the Appwrite API credentials (endpoint, project ID, API key) are correctly configured to avoid authentication errors.
- If the node throws an 'Unknown resource' error, verify that the resource parameter is set to 'Account' and the operation to 'Get Session'.
- Network issues or incorrect endpoint URLs can cause connection failures; verify network connectivity and endpoint correctness.
Links
- Appwrite Account Get Session API - Official documentation for the Appwrite API method to get session details.