curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/applications/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/applications/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/applications/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"housing_type": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"assignee": [
{
"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)"
}Count applications
How many applications there are at each stage, in each kind of home, and assigned to the person who made the key or to nobody. Takes the same filters as the list. Each group is counted with every other filter applied but not its own, so the counts say what choosing another value would show. Needs read on Animals.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/applications/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/applications/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/applications/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"housing_type": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"assignee": [
{
"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
One stage key, such as assigned. An application with no stage is found by its status. An application at a stage is found by the stage's key, not by the status the stage belongs to.
true for only the applications still open: not approved, denied or withdrawn.
true me for the applications assigned to the person who made the key; nobody for the ones assigned to nobody.
me, nobody One applicant's applications.
The applications for one animal.
One kind of home.
house, apartment, condo, townhouse, mobile_home, farm, other Part of the applicant's first name, last name or email.