List All
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thanks.io/api/v2/sub-accounts/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.thanks.io/api/v2/sub-accounts/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.thanks.io/api/v2/sub-accounts/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"$ref": "#/components/examples/sub-account-example"
}
]
}{
"message": "Unauthorized"
}Account
List Sub-Accounts
List all available sub-accounts.
GET
/
sub-accounts
/
List All
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thanks.io/api/v2/sub-accounts/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.thanks.io/api/v2/sub-accounts/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.thanks.io/api/v2/sub-accounts/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"$ref": "#/components/examples/sub-account-example"
}
]
}{
"message": "Unauthorized"
}Was this page helpful?
⌘I