curl --request GET \
--url https://n-api.leadstaker.com/v1/tasks \
--header 'x-api-key: <api-key>'import requests
url = "https://n-api.leadstaker.com/v1/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://n-api.leadstaker.com/v1/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://n-api.leadstaker.com/v1/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://n-api.leadstaker.com/v1/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://n-api.leadstaker.com/v1/tasks")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://n-api.leadstaker.com/v1/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{
"data": [
{
"id": "68b8f1c2a4d3e50017b2c9a1",
"projectId": "665f1c2e8a94b70012d4e9a1",
"dealId": "6715be3a9c40aa0013d8e5c2",
"title": "Ligar para confirmar a proposta",
"dueAt": "2026-09-04T14:00:00.000Z",
"responsibleId": "664d9e0b7c83aa0010f1c2d3",
"createdBy": "664d9e0b7c83aa0010f1c2d3",
"createdAt": "2026-09-03T12:00:00.000Z",
"updatedAt": "2026-09-03T12:00:00.000Z"
}
],
"hasMore": false,
"limit": 10,
"offset": 0,
"total": 1
}{
"errorCode": "<string>",
"message": "<string>",
"status": 123,
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}List tasks
Answers with the paginated envelope: the matching tasks in data, plus hasMore, limit, offset and total. status[in] selects whole statuses instead of raw fields: pending is a task with no completedAt, overdue is a pending one already past overdueBefore, and completed is one with completedAt. Listing several answers their union, so overdue,completed needs no [logic], and every other filter still applies on top.
curl --request GET \
--url https://n-api.leadstaker.com/v1/tasks \
--header 'x-api-key: <api-key>'import requests
url = "https://n-api.leadstaker.com/v1/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://n-api.leadstaker.com/v1/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://n-api.leadstaker.com/v1/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://n-api.leadstaker.com/v1/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://n-api.leadstaker.com/v1/tasks")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://n-api.leadstaker.com/v1/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{
"data": [
{
"id": "68b8f1c2a4d3e50017b2c9a1",
"projectId": "665f1c2e8a94b70012d4e9a1",
"dealId": "6715be3a9c40aa0013d8e5c2",
"title": "Ligar para confirmar a proposta",
"dueAt": "2026-09-04T14:00:00.000Z",
"responsibleId": "664d9e0b7c83aa0010f1c2d3",
"createdBy": "664d9e0b7c83aa0010f1c2d3",
"createdAt": "2026-09-03T12:00:00.000Z",
"updatedAt": "2026-09-03T12:00:00.000Z"
}
],
"hasMore": false,
"limit": 10,
"offset": 0,
"total": 1
}{
"errorCode": "<string>",
"message": "<string>",
"status": 123,
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}Authorizations
Query Parameters
How many records to return, at most 250.
1 <= x <= 250How many records to skip.
x >= 0Comma-separated list of fields to return, e.g. id,createdAt.
1Comma-separated list of relations to populate.
1Comma-separated list of pending | overdue | completed, answered as their union. Omit it to filter nothing by status.
1The instant a task counts as overdue, at most the current time. Defaults to now and only weighs when overdue is listed.
1