Count intakes
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/intakes/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/intakes/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/intakes/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"intake_type": [
{
"value": "stray",
"label": "<string>",
"count": 123
}
],
"surrender_reason": [
{
"value": "moving",
"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)"
}Intakes
Count intakes
How many arrivals match, by type and by surrender reason, for a filter beside the list. Each group is counted without its own filter, so it says what picking that value would give; the dates always apply. Every value is listed, at 0 when none match. Needs read on Animals.
GET
/
api
/
animals
/
intakes
/
facets
Count intakes
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/intakes/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/intakes/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/intakes/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"intake_type": [
{
"value": "stray",
"label": "<string>",
"count": 123
}
],
"surrender_reason": [
{
"value": "moving",
"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 arrivals of this type.
Available options:
stray, owner_surrender, transfer_in, born_in_care, return, confiscation, unknown, other Only arrivals given up for this reason.
Available options:
moving, landlord, allergies, behavior, medical_cost, no_time, owner_death, owner_illness, too_many_pets, financial, baby_or_child, stray_kept_too_long, other Arrivals on or after this day (YYYY-MM-DD).
Arrivals on or before this day (YYYY-MM-DD).