Get Account Variables
Fetch the custom variables stored on an account.
Requires the accounts:read scope on the API key.
GET
/
v1
/
accounts
/
{account_id}
/
variables
Get Account Variables
curl --request GET \
--url https://api.topo.io/v1/accounts/{account_id}/variables \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.topo.io/v1/accounts/{account_id}/variables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.topo.io/v1/accounts/{account_id}/variables"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"variables": {}
}Authorizations
Bearer API key issued from Settings → Developers.
Path Parameters
ID of the account.
Was this page helpful?
⌘I
Get Account Variables
curl --request GET \
--url https://api.topo.io/v1/accounts/{account_id}/variables \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.topo.io/v1/accounts/{account_id}/variables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.topo.io/v1/accounts/{account_id}/variables"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"variables": {}
}