List transport runs
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/transports \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/transports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/transports"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"name": "<string>",
"scheduled_date": "2023-12-25",
"origin": "<string>",
"destination": "<string>",
"status": "planning",
"leg_count": 123,
"covered_legs": 123,
"animal_count": 123,
"notes": "<string>"
}
],
"has_more": true
}{
"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)"
}Transports
List transport runs
Your transport runs, the latest scheduled date first, with how many legs have a driver. At most 50 come back and there is no next page: when has_more is true, narrow the dates with from and to. Needs read on Animals.
GET
/
api
/
animals
/
transports
List transport runs
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/transports \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/transports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/transports"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"name": "<string>",
"scheduled_date": "2023-12-25",
"origin": "<string>",
"destination": "<string>",
"status": "planning",
"leg_count": 123,
"covered_legs": 123,
"animal_count": 123,
"notes": "<string>"
}
],
"has_more": true
}{
"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 runs in this status.
Available options:
planning, confirmed, in_progress, completed, cancelled Runs scheduled on or after this day (YYYY-MM-DD).
Runs scheduled on or before this day (YYYY-MM-DD).