curl --request GET \
--url https://{organization}.rescueconsole.com/api/tasks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"title": "<string>",
"status": "open",
"priority": "low",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"notes": "<string>",
"due_on": "<string>",
"assignee_person_id": "<string>",
"entity_type": "person",
"entity_id": "<string>",
"medical_record_id": "<string>",
"created_by_person_id": "<string>",
"completed_at": "2023-11-07T05:31:56Z"
}
],
"limit": 123,
"offset": 123,
"has_more": true,
"total": 123
}{
"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)"
}List tasks
One page of tasks: open ones first, then by due date with undated tasks last, then newest. There is no permission of its own for tasks. A task on a record is listed only when your key may read the area that record belongs to: a person is People; an animal, a housing location and an adoption application are Animals; a donation and a campaign are Fundraising; a shift, a shift schedule and a booking on a shift are Shifts. A task on no record (an organization to-do) is listed for every key. The total counts only what your key can see.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/tasks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"title": "<string>",
"status": "open",
"priority": "low",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"notes": "<string>",
"due_on": "<string>",
"assignee_person_id": "<string>",
"entity_type": "person",
"entity_id": "<string>",
"medical_record_id": "<string>",
"created_by_person_id": "<string>",
"completed_at": "2023-11-07T05:31:56Z"
}
],
"limit": 123,
"offset": 123,
"has_more": true,
"total": 123
}{
"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
open, done low, normal, high Only tasks on this kind of record. A kind your key may not read answers 403 rather than an empty list. The kind of record a task is on. person is People; animal, location_unit (a housing location) and adoption_application are Animals; donation and campaign are Fundraising; shift, volunteer_event (a shift schedule) and shift_signup (a booking on a shift) are Shifts.
person, animal, location_unit, donation, campaign, shift, volunteer_event, shift_signup, adoption_application Only the tasks on this one record. Send it with entity_type; on its own it is refused.
Only tasks assigned to this person (their record ID).
Only tasks with a due date on or before this day.
true for open tasks due before today. A done task is never overdue. Any other value is ignored.
true How many to return. 50 unless you say, 200 at most.
1 <= x <= 200How many to skip, for the next page.
x >= 0