Skip to main content
GET
/
tasks
/
{id}
Get a task
curl --request GET \
  --url https://app.leonar.app/api/v1/tasks/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "e5f6a7b8-9012-34cd-efab-567890123def",
    "title": "Follow up with Sophie Martin",
    "description": "Discuss salary expectations and start date",
    "type": "call",
    "status": "todo",
    "priority": "high",
    "due_date": "2025-02-15",
    "assigned_to": "f6a7b8c9-0123-45de-fabc-678901234ef0",
    "contact_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
    "company_id": null,
    "deal_id": null,
    "project_id": "d4e5f6a7-8901-23bc-defa-456789012cde",
    "completed_at": null,
    "created_at": "2025-02-10T10:00:00Z",
    "updated_at": "2025-02-10T10:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

API key starting with leo_

Path Parameters

id
string<uuid>
required

Task ID

Response

Task details

data
object
Example:
{
"id": "e5f6a7b8-9012-34cd-efab-567890123def",
"title": "Follow up with Sophie Martin",
"description": "Discuss salary expectations and start date",
"type": "call",
"status": "todo",
"priority": "high",
"due_date": "2025-02-15",
"assigned_to": "f6a7b8c9-0123-45de-fabc-678901234ef0",
"contact_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"company_id": null,
"deal_id": null,
"project_id": "d4e5f6a7-8901-23bc-defa-456789012cde",
"completed_at": null,
"created_at": "2025-02-10T10:00:00Z",
"updated_at": "2025-02-10T10:00:00Z"
}