Environment Variables are persistent variables that are available across your entire workspace. Typically, these are used to store things like external API keys or other sensitive information that you need to use across multiple function stacks, without storing it in a database table.Documentation Index
Fetch the complete documentation index at: https://docs.xano.com/llms.txt
Use this file to discover all available pages before exploring further.
Adding Environment Variables
Click '+ Variable' to add a new environment variable.

Environment variables can only be updated from your workspace settings.
Xano-generated Environment Variables
Xano maintains several environment variables you can use.| Variable Name | Contents |
|---|---|
| $remote_ip | Contains the IP address the request came from |
| $http_headers | Contains the headers of the request |
| $request_uri | Contains the URL of the request |
| $request_querystring | Contains any URL parameters attached to the request URL |
| $datasource | Contains the datasource the request is targeting |
| $branch | Contains the branch the request is targeting |
| $request_method | Contains the request method (GET, POST, DELETE, etc…) |

