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
Sites → Get Variable
AI-generatedOverview
This node interacts with the Appwrite API to retrieve a specific variable from a site. It is useful for scenarios where you need to access configuration or environment variables associated with a particular site managed in Appwrite. For example, you might use this node to fetch API keys, feature flags, or other site-specific settings dynamically during workflow execution.
Use Case Examples
- Retrieve a variable by its ID from a given site to use its value in subsequent workflow steps.
- Fetch site-specific configuration variables to customize behavior based on the site context.
Properties
| Name | Meaning |
|---|---|
| Site ID | The ID of the site from which to retrieve the variable. |
| Variable ID | The ID of the variable to retrieve from the specified site. |
Output
JSON
variable- The retrieved variable object from the specified site, containing its details and value.
Dependencies
- Requires an Appwrite API key credential with access to the Sites service.
Troubleshooting
- Ensure the Site ID and Variable ID are correct and exist in the Appwrite project; otherwise, the node will throw an error indicating the resource was not found.
- Verify that the API key used has sufficient permissions to access the Sites and Variables endpoints.
- Common error messages include authentication failures due to invalid API keys or permission issues, and resource not found errors if the IDs are incorrect.
Links
- Appwrite Sites API Documentation - Official documentation for managing sites and variables in Appwrite.