Tasks
List occurrences of a task series
Page through visible occurrences, newest first. The next scheduled occurrence is excluded until it opens.
GET
/
v1
/
task_recurrences
/
{task_recurrence_id}
/
tasks
List occurrences of a task series
curl --request GET \
--url https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "abc123xyz",
"title": "Follow up with client",
"all_day": true,
"status": "todo",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"book_id": "<string>",
"task_recurrence": {
"interval_unit": "days",
"interval_value": 6,
"start_at": "<string>",
"recurring_until": "<string>",
"monthly_rule_type": "calendar_day",
"weekday": "<string>",
"weekday_ordinal": "<string>",
"id": "<string>",
"active": true,
"next_run_at": "2023-11-07T05:31:56Z"
},
"description": "<string>",
"deadline_at": "2023-11-07T05:31:56Z",
"priority": "low_priority",
"is_private": true,
"completed_at": "2023-11-07T05:31:56Z",
"assigned_to": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
},
"assigned_team": {
"id": "<string>",
"name": "<string>"
},
"record": {
"id": "<string>",
"type": "household",
"name": "<string>"
},
"tags": [
{
"id": "<string>",
"name": "<string>"
}
]
}
],
"pagination": {
"current_page": 1,
"total_pages": 10,
"total_count": 100,
"per_page": 25
}
}Authorizations
Query Parameters
⌘I
List occurrences of a task series
curl --request GET \
--url https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.slant.app/v1/task_recurrences/{task_recurrence_id}/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "abc123xyz",
"title": "Follow up with client",
"all_day": true,
"status": "todo",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"book_id": "<string>",
"task_recurrence": {
"interval_unit": "days",
"interval_value": 6,
"start_at": "<string>",
"recurring_until": "<string>",
"monthly_rule_type": "calendar_day",
"weekday": "<string>",
"weekday_ordinal": "<string>",
"id": "<string>",
"active": true,
"next_run_at": "2023-11-07T05:31:56Z"
},
"description": "<string>",
"deadline_at": "2023-11-07T05:31:56Z",
"priority": "low_priority",
"is_private": true,
"completed_at": "2023-11-07T05:31:56Z",
"assigned_to": {
"id": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
},
"assigned_team": {
"id": "<string>",
"name": "<string>"
},
"record": {
"id": "<string>",
"type": "household",
"name": "<string>"
},
"tags": [
{
"id": "<string>",
"name": "<string>"
}
]
}
],
"pagination": {
"current_page": 1,
"total_pages": 10,
"total_count": 100,
"per_page": 25
}
}