List an animal's intakes
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/animals/{id}/intakes \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/animals/{id}/intakes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/animals/{id}/intakes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"tenant_id": "<string>",
"animal_id": "<string>",
"intake_type": "stray",
"intake_date": "2023-12-25",
"surrendered_by_person_id": "<string>",
"surrendered_by_first_name": "<string>",
"surrendered_by_last_name": "<string>",
"source_organization": "<string>",
"found_location": "<string>",
"found_on": "2023-12-25",
"surrender_reason": "moving",
"surrender_notes": "<string>",
"condition_on_arrival": "healthy",
"has_vet_records": true,
"returned_from_adoption_id": "<string>",
"notes": "<string>",
"created_by_person_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_surrender": true,
"is_return": true
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Animals
List an animal's intakes
Each time the animal arrived, latest first: how it came, who brought it and why. An animal can have several, such as one adopted and brought back. Intakes are recorded under /api/animals/intakes. Needs read on Animals.
GET
/
api
/
animals
/
animals
/
{id}
/
intakes
List an animal's intakes
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/animals/{id}/intakes \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/animals/{id}/intakes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/animals/{id}/intakes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"tenant_id": "<string>",
"animal_id": "<string>",
"intake_type": "stray",
"intake_date": "2023-12-25",
"surrendered_by_person_id": "<string>",
"surrendered_by_first_name": "<string>",
"surrendered_by_last_name": "<string>",
"source_organization": "<string>",
"found_location": "<string>",
"found_on": "2023-12-25",
"surrender_reason": "moving",
"surrender_notes": "<string>",
"condition_on_arrival": "healthy",
"has_vet_records": true,
"returned_from_adoption_id": "<string>",
"notes": "<string>",
"created_by_person_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_surrender": true,
"is_return": true
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}