Count activity by filter
curl --request GET \
--url https://{organization}.rescueconsole.com/api/activity/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/activity/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/activity/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"module": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"action": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"entity_type": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"period": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
]
}
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Activity
Count activity by filter
How many changes each filter option would give, for the same filters List activity takes. Each group is counted with its own filter left out and every other filter applied. entity_id and person_id are never left out. The periods nest, so their counts do not add up to the total: the last 7 days are inside the last 30. Narrowed exactly as List activity is; a key that may read no area gets empty groups.
GET
/
api
/
activity
/
facets
Count activity by filter
curl --request GET \
--url https://{organization}.rescueconsole.com/api/activity/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/activity/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/activity/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"module": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"action": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"entity_type": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"period": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
]
}
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Query Parameters
Only changes in this area. An area your key may not read answers 403. An area of your organization, as a key's permissions name it.
Available options:
people, organizations, animals, fundraising, shifts, events, registry, communications Available options:
create, update, delete, state_change 1d is the last 24 hours; 7d, 30d and 90d the last 7, 30 and 90 days.
Available options:
1d, 7d, 30d, 90d