Get Task
curl --request GET \
--url https://data.leadlex.com/functions/v1/api-gateway/v1/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://data.leadlex.com/functions/v1/api-gateway/v1/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://data.leadlex.com/functions/v1/api-gateway/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://data.leadlex.com/functions/v1/api-gateway/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",
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://data.leadlex.com/functions/v1/api-gateway/v1/tasks/{id}"
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://data.leadlex.com/functions/v1/api-gateway/v1/tasks/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.leadlex.com/functions/v1/api-gateway/v1/tasks/{id}")
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": {
"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://data.leadlex.com/functions/v1/api-gateway/v1/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://data.leadlex.com/functions/v1/api-gateway/v1/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://data.leadlex.com/functions/v1/api-gateway/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://data.leadlex.com/functions/v1/api-gateway/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",
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://data.leadlex.com/functions/v1/api-gateway/v1/tasks/{id}"
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://data.leadlex.com/functions/v1/api-gateway/v1/tasks/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.leadlex.com/functions/v1/api-gateway/v1/tasks/{id}")
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": {
"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
Headers
Authorization: Bearer wbk_your_api_key_here
Requires an API key with the
activities:read permission.Response
Show properties
Show properties
Show Task object
Show Task object
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 |