Environment Variables
Last updated
Last updated
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.
Xano maintains several environment variables you can use.
$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...)