Get Task
curl --request GET \
--url https://api.example.com/v1/tasks/{id}import requests
url = "https://api.example.com/v1/tasks/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/tasks/{id}', 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/{id}",
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/{id}"
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/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/tasks/{id}")
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": {
"task": {
"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>"
}
}
}Tasks
Get Task
Retrieve a single task by ID
GET
/
v1
/
tasks
/
{id}
Get Task
curl --request GET \
--url https://api.example.com/v1/tasks/{id}import requests
url = "https://api.example.com/v1/tasks/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/tasks/{id}', 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/{id}",
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/{id}"
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/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/tasks/{id}")
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": {
"task": {
"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>"
}
}
}Request
Path Parameters
string
required
The task’s unique ID (UUID)
Headers
Authorization: Bearer wbk_your_api_key_here
Requires an API key with the
activities:read permission.Response
object
Show properties
Show properties
object
Show Task object
Show Task object
string
Unique task ID (UUID)
string
Task title
string
Task description (markdown supported)
string
pending, in_progress, completed, or dismissedstring
low, medium, high, or urgentstring
Category (e.g.,
call, email, follow_up, research, lexi_action)string
ISO 8601 date/timestamp the task is due
string
UUID of the user the task is assigned to
string
UUID of the linked contact, if any
string
UUID of the linked deal, if any
string
UUID of the linked calendar event, if any
string
ISO 8601 timestamp when the task was created
string
ISO 8601 timestamp of last update
curl https://data.leadlex.com/functions/v1/api-gateway/v1/tasks/t1a2b3c4-d5e6-7890-abcd-ef1234567890 \
-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"
TASK_ID = "t1a2b3c4-d5e6-7890-abcd-ef1234567890"
response = requests.get(
f"{BASE_URL}/v1/tasks/{TASK_ID}",
headers={"Authorization": f"Bearer {API_KEY}"},
)
task = response.json()["data"]["task"]
const TASK_ID = 't1a2b3c4-d5e6-7890-abcd-ef1234567890';
const response = await fetch(
`https://data.leadlex.com/functions/v1/api-gateway/v1/tasks/${TASK_ID}`,
{ headers: { 'Authorization': 'Bearer wbk_your_api_key_here' } }
);
const { data } = await response.json();
Example Response
{
"data": {
"task": {
"id": "t1a2b3c4-d5e6-7890-abcd-ef1234567890",
"title": "Call Jane re: M&A proposal",
"description": "Walk through section 4 of the draft agreement before Friday.",
"status": "pending",
"priority": "high",
"task_type": "call",
"due_date": "2026-04-19T15:00:00Z",
"assigned_to_user_id": "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
"contact_id": "123e4567-e89b-12d3-a456-426614174000",
"deal_id": "3f8e1d2c-4b5a-6d7e-8f9a-0b1c2d3e4f5a",
"event_id": null,
"created_date": "2026-04-15T10:00:00Z",
"updated_date": "2026-04-15T10:00:00Z"
}
}
}
Errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing activities:read permission |
| 404 | task_not_found | No task with this ID in your workspace |
| 429 | rate_limited | Rate limit exceeded |