Skip to main content
GET
/
v1
/
tasks
/
{task_id}
Get Task
const options = {
  method: 'GET',
  headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};

fetch('https://api.dcycle.io/v1/tasks/{task_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": "<string>",
  "name": "<string>",
  "category": "<string>",
  "description": "<string>",
  "due_date": "<string>",
  "status": "<string>",
  "assigned_to": {},
  "projects": {},
  "guide_link": {}
}

Get Task

Retrieve a single task by its ID. Returns the task with its assigned user, linked projects, and optional guide link.

Request

Headers

x-api-key
string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
x-organization-id
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa
Accept-Language
string
default:"es"
Language for localized content: en, es, fr, pt, it, de

Path Parameters

task_id
string
required
UUID of the task

Response

id
string
Task UUID
name
string
Task title
category
string
Task category
description
string
Task description
due_date
string
Due date (YYYY-MM-DD)
status
string
Task stage: not_applicable, pending, in_progress, completed, validated, deleted
assigned_to
object
Assigned user with id, first_name, last_name, profile_img_url
projects
array[object]
Linked projects, each with id and name
URL to a help guide for this task category

Example

curl "https://api.dcycle.io/v1/tasks/${TASK_ID}" \
  -H "x-api-key: ${DCYCLE_API_KEY}" \
  -H "x-organization-id: ${DCYCLE_ORG_ID}"

Successful Response

{
  "id": "task-uuid",
  "name": "Upload Q2 electricity invoices",
  "category": "data_collection",
  "description": "Upload all Q2 2025 electricity invoices",
  "due_date": "2025-07-15",
  "status": "in_progress",
  "assigned_to": {
    "id": "user-uuid",
    "first_name": "Carlos",
    "last_name": "López",
    "profile_img_url": null
  },
  "projects": [
    { "id": "project-uuid", "name": "Carbon Footprint 2025" }
  ],
  "guide_link": null
}

Common Errors

401 Unauthorized

Cause: Missing or invalid API key
{"detail": "Invalid API key for organization", "code": "INVALID_API_KEY"}

403 Forbidden

Cause: The authenticated user is not a member of the organization
{"detail": "Logged User is not Member of Organization", "code": "LOGGED_USER_NOT_MEMBER"}

404 Not Found

Cause: The task does not exist or belongs to another organization
{"detail": "Not Found"}

Get Subtasks

List subtasks of this task

Update Task

Modify task fields