List animal statuses
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/status-definitions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/status-definitions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/status-definitions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"key": "<string>",
"label": "<string>",
"care_state": "in_care",
"is_public": true,
"ends_foster": true,
"sort_order": 123,
"color": "<string>",
"is_system": true,
"group_id": "<string>",
"is_enabled": true,
"public_label": "<string>",
"description": "<string>"
}
],
"groups": [
{
"id": "<string>",
"name": "<string>",
"sort_order": 123
}
],
"usage": {}
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Animal statuses
List animal statuses
Every status an animal’s status can hold, with the groups they sit under and how many animals hold each. An organization that has never saved its own list gets the built-in set. Needs read on Animals.
GET
/
api
/
animals
/
status-definitions
List animal statuses
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/status-definitions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/status-definitions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/status-definitions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"key": "<string>",
"label": "<string>",
"care_state": "in_care",
"is_public": true,
"ends_foster": true,
"sort_order": 123,
"color": "<string>",
"is_system": true,
"group_id": "<string>",
"is_enabled": true,
"public_label": "<string>",
"description": "<string>"
}
],
"groups": [
{
"id": "<string>",
"name": "<string>",
"sort_order": 123
}
],
"usage": {}
}{
"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_.