Get the operations report
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/reports/operations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/reports/operations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/reports/operations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"period": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"intakes": {
"total": 123,
"by_type": [
{
"intake_type": "stray",
"count": 123
}
],
"definition": "<string>"
},
"outcomes": {
"total": 123,
"live": 123,
"other": 123,
"by_status": [
{
"status": "<string>",
"label": "<string>",
"care_state": "placed",
"count": 123
}
],
"definition": "<string>"
},
"live_release_rate": {
"value": 123,
"numerator": 123,
"denominator": 123,
"definition": "<string>"
},
"in_care": {
"as_of": "2023-12-25",
"total": 123,
"by_status": [
{
"status": "<string>",
"label": "<string>",
"count": 123
}
],
"definition": "<string>"
}
}{
"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)"
}Animal reports
Get the operations report
The figures a rescue puts in a board packet or a grant application, for a period of at most 1,100 days, both ends included. Every figure carries its own definition in the answer. Intakes are arrivals recorded in the period. Outcomes are animals whose outcome date is in the period, grouped by what their status means now in your own status setup; an animal in a status you have not defined is left out. The in-care census is today’s, not the period’s, because nothing records when a status changed. Needs read on Animals.
GET
/
api
/
animals
/
reports
/
operations
Get the operations report
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/reports/operations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/reports/operations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/reports/operations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"period": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"intakes": {
"total": 123,
"by_type": [
{
"intake_type": "stray",
"count": 123
}
],
"definition": "<string>"
},
"outcomes": {
"total": 123,
"live": 123,
"other": 123,
"by_status": [
{
"status": "<string>",
"label": "<string>",
"care_state": "placed",
"count": 123
}
],
"definition": "<string>"
},
"live_release_rate": {
"value": 123,
"numerator": 123,
"denominator": 123,
"definition": "<string>"
},
"in_care": {
"as_of": "2023-12-25",
"total": 123,
"by_status": [
{
"status": "<string>",
"label": "<string>",
"count": 123
}
],
"definition": "<string>"
}
}{
"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
The first day (YYYY-MM-DD).
The last day (YYYY-MM-DD). Not before from.