List Tasks
curl --request GET \
--url https://api.example.com/v1/tasksimport requests
url = "https://api.example.com/v1/tasks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.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://api.example.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",
]);
$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.example.com/v1/tasks"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/tasks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"tasks": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"task_type": "<string>",
"due_date": "<string>",
"assigned_to_user_id": "<string>",
"contact_id": "<string>",
"deal_id": "<string>",
"event_id": "<string>",
"created_date": "<string>",
"updated_date": "<string>"
}
]
},
"meta": {}
}Tasks
List Tasks
Retrieve a paginated list of tasks in your workspace
GET
/
v1
/
tasks
List Tasks
curl --request GET \
--url https://api.example.com/v1/tasksimport requests
url = "https://api.example.com/v1/tasks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.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://api.example.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",
]);
$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.example.com/v1/tasks"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/tasks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"tasks": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"task_type": "<string>",
"due_date": "<string>",
"assigned_to_user_id": "<string>",
"contact_id": "<string>",
"deal_id": "<string>",
"event_id": "<string>",
"created_date": "<string>",
"updated_date": "<string>"
}
]
},
"meta": {}
}Request
Query Parameters
integer
default:"1"
Page number
integer
default:"50"
Items per page (max: 100)
string
Filter by status (e.g.,
open, completed)string
Filter by assigned user ID
string
Filter by deal ID
string
Filter by contact ID
Headers
Authorization: Bearer wbk_your_api_key_here
Response
object
Show properties
Show properties
array
object
Pagination metadata
curl https://data.leadlex.com/functions/v1/api-gateway/v1/tasks?status=open \
-H "Authorization: Bearer wbk_your_api_key_here"
import requests
API_KEY = "wbk_your_api_key_here"
BASE_URL = "https://data.leadlex.com/functions/v1/api-gateway"
headers = {"Authorization": f"Bearer {API_KEY}"}
response = requests.get(f"{BASE_URL}/v1/tasks", headers=headers, params={"status": "open"})
print(response.json())
const response = await fetch(
'https://data.leadlex.com/functions/v1/api-gateway/v1/tasks?status=open',
{ headers: { 'Authorization': 'Bearer wbk_your_api_key_here' } }
);
const { data } = await response.json();
Errors
| Status | Code | Description |
|---|---|---|
| 403 | insufficient_permissions | Missing activities:read permission |