Get intake totals
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/intakes/stats \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/intakes/stats', 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/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"by_type": [
{
"value": "stray",
"count": 123
}
],
"by_surrender_reason": [
{
"value": "moving",
"n": 123
}
],
"by_condition": [
{
"value": "healthy",
"n": 123
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Intakes
Get intake totals
How many animals arrived, by route in, by why they were given up and by the state they came in. Every route in is listed, at 0 when none arrived that way. Reasons and conditions list only those recorded: reasons most first, conditions in no set order. Needs read on Animals.
GET
/
api
/
animals
/
intakes
/
stats
Get intake totals
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/intakes/stats \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/intakes/stats', 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/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"by_type": [
{
"value": "stray",
"count": 123
}
],
"by_surrender_reason": [
{
"value": "moving",
"n": 123
}
],
"by_condition": [
{
"value": "healthy",
"n": 123
}
]
}{
"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
Arrivals on or after this day (YYYY-MM-DD).
Arrivals on or before this day (YYYY-MM-DD).
Response
The totals.
Every intake type, in a fixed order.
Show child attributes
Show child attributes
Most first. Note the count is n here, not count.
Show child attributes
Show child attributes
In no set order. Note the count is n here, not count.
Show child attributes
Show child attributes