Task Versions
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}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dcycle.io/v1/tasks/{task_id}/versions"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.dcycle.io/v1/tasks/{task_id}/versions \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"items": {
"transaction_id": "<string>",
"operation_type": 123,
"issued_at": "<string>",
"user_first_name": "<string>",
"user_last_name": "<string>",
"version_changes": {}
},
"total": 123,
"page": 123,
"size": 123
}Task Versions
View the change history of a task
GET
/
v1
/
tasks
/
{task_id}
/
versions
Task Versions
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}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dcycle.io/v1/tasks/{task_id}/versions"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.dcycle.io/v1/tasks/{task_id}/versions \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"items": {
"transaction_id": "<string>",
"operation_type": 123,
"issued_at": "<string>",
"user_first_name": "<string>",
"user_last_name": "<string>",
"version_changes": {}
},
"total": 123,
"page": 123,
"size": 123
}← Projects API
Retrieve the version history (audit trail) of a task. Each version represents a change made to the task, showing who changed what and when.
Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
string
required
UUID of the task
Query Parameters
integer
default:"1"
Page number
integer
default:"50"
Items per page
Response
Returns a paginated response with version entries.array[object]
Version entries
string
Transaction UUID
integer
Operation:
0 (insert), 1 (update), 2 (delete)string
When the change occurred (ISO 8601)
string
First name of the user who made the change
string
Last name of the user who made the change
array[object]
Fields that changed, each with
key, value, previous_valueinteger
Total number of versions
integer
Current page
integer
Page size
Example
curl "https://api.dcycle.io/v1/tasks/${TASK_ID}/versions" \
-H "x-api-key: ${DCYCLE_API_KEY}" \
-H "x-organization-id: ${DCYCLE_ORG_ID}"
import requests
import os
response = requests.get(
f"https://api.dcycle.io/v1/tasks/{os.getenv('TASK_ID')}/versions",
headers={
"x-api-key": os.getenv("DCYCLE_API_KEY"),
"x-organization-id": os.getenv("DCYCLE_ORG_ID"),
},
)
data = response.json()
for version in data["items"]:
user = f"{version['user_first_name']} {version['user_last_name']}"
changes = ", ".join(c["key"] for c in version["version_changes"])
print(f"{version['issued_at']}: {user} changed {changes}")
const axios = require('axios');
const { data } = await axios.get(
`https://api.dcycle.io/v1/tasks/${process.env.TASK_ID}/versions`,
{
headers: {
'x-api-key': process.env.DCYCLE_API_KEY,
'x-organization-id': process.env.DCYCLE_ORG_ID,
},
}
);
data.items.forEach(v => {
const changes = v.version_changes.map(c => c.key).join(', ');
console.log(`${v.issued_at}: ${v.user_first_name} changed ${changes}`);
});
Successful Response
{
"items": [
{
"transaction_id": "txn-uuid",
"operation_type": 1,
"issued_at": "2025-06-15T14:30:00Z",
"user_first_name": "Ana",
"user_last_name": "García",
"version_changes": [
{
"key": "stage",
"value": "completed",
"previous_value": "in_progress"
}
]
}
],
"total": 3,
"page": 1,
"size": 50
}
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"}
Related Endpoints
Get Task
View current task state
Update Task
Modify task fields
Was this page helpful?