curl --request GET \
--url https://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/tasks \
--header 'X-API-Key: <api-key>'import requests
url = "https://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/tasks"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/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://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/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 => [
"X-API-Key: <api-key>"
],
]);
$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://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/tasks")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"http_code": 200,
"status": "success",
"message": "Tasks retrieved",
"data": {
"items": [
{
"id": 5,
"title": "Send proposal",
"status": 1,
"priority": 3,
"lead_id": 42,
"created_at": "2026-04-01T09:00:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 8,
"total_pages": 1
}
}
}{
"http_code": 401,
"status": "failed",
"message": "Invalid or missing API key"
}{
"http_code": 403,
"status": "failed",
"message": "Insufficient scope"
}List tasks
Returns a paginated list of tasks.
All filters below are optional and combine with AND. pagination.total and pagination.total_pages always describe the filtered result set, not the whole workspace.
curl --request GET \
--url https://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/tasks \
--header 'X-API-Key: <api-key>'import requests
url = "https://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/tasks"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/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://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/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 => [
"X-API-Key: <api-key>"
],
]);
$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://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/tasks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/tasks")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://flozy-backend-1042419926531.us-central1.run.app/api/v1/external/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"http_code": 200,
"status": "success",
"message": "Tasks retrieved",
"data": {
"items": [
{
"id": 5,
"title": "Send proposal",
"status": 1,
"priority": 3,
"lead_id": 42,
"created_at": "2026-04-01T09:00:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 8,
"total_pages": 1
}
}
}{
"http_code": 401,
"status": "failed",
"message": "Invalid or missing API key"
}{
"http_code": 403,
"status": "failed",
"message": "Insufficient scope"
}Authorizations
Your Flozy API key. Starts with flz_live_.
Query Parameters
Page number.
x >= 1Results per page (max 100).
1 <= x <= 100Sort direction.
asc, desc Full-text search.
Keep only tasks with this status. Takes the same integer the task body and the task response use — 1 todo · 2 in progress · 3 completed · 4 in review — so a value can be copied straight out of a GET /tasks item. Exactly one value: there is no "any open status" form, so filter per status if you need several.
1, 2, 3, 4 1
Keep only tasks with this priority, as the same integer used everywhere else on this resource: 1 low · 2 medium · 3 high. Exactly one value.
1, 2, 3 3
Keep only tasks attached to this lead. Ids come from GET /leads. Tasks with no lead are never matched, and an id belonging to another agency matches nothing rather than erroring.
x >= 142
Keep only tasks due on or after this date. Format is YYYY-MM-DD — a date-time is rejected here, not truncated, unlike the due_date body field, which accepts one and truncates it. The bound is inclusive. A task with no due_date is not matched.
"2026-01-01"
Keep only tasks due on or before this date. Same format and rules as due_after; also inclusive, so passing the same value for both returns exactly the tasks due that day. A task with no due_date is not matched, so combining this with status is how you ask "what is overdue".
"2026-12-31"
Response
Paginated tasks.