Recent Activities
const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/v1/projects/{project_id}/recent-activities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dcycle.io/v1/projects/{project_id}/recent-activities"
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/projects/{project_id}/recent-activities \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"activity_type": "<string>",
"entity_id": "<string>",
"parent_entity_id": {},
"subject": {},
"context": {},
"created_at": {},
"actor": {}
}Recent Activities
Get the most recent activity feed for a project
GET
/
v1
/
projects
/
{project_id}
/
recent-activities
Recent Activities
const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/v1/projects/{project_id}/recent-activities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dcycle.io/v1/projects/{project_id}/recent-activities"
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/projects/{project_id}/recent-activities \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"activity_type": "<string>",
"entity_id": "<string>",
"parent_entity_id": {},
"subject": {},
"context": {},
"created_at": {},
"actor": {}
}← Projects API
Get the most recent activities for a project. Aggregates task changes, task comments, output-data value updates, and output-data comments — sorted by most recent first.
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 project
Query Parameters
integer
default:"4"
Maximum number of activities to return (1–50)
Response
Returns an array of activity objects.string
Type of activity:
task, task_comment, output_data, output_data_commentstring
UUID of the entity that was changed
string | null
UUID of the parent entity (e.g., task ID for a task comment)
string | null
Short description of what changed
string | null
Additional context (e.g., comment text, field value)
datetime
When the activity occurred (ISO 8601)
object | null
User who performed the action, with
id, first_name, last_name, profile_img_urlExample
curl "https://api.dcycle.io/v1/projects/${PROJECT_ID}/recent-activities?limit=10" \
-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/projects/{os.getenv('PROJECT_ID')}/recent-activities",
headers={
"x-api-key": os.getenv("DCYCLE_API_KEY"),
"x-organization-id": os.getenv("DCYCLE_ORG_ID"),
},
params={"limit": 10},
)
for activity in response.json():
actor = activity.get("actor") or {}
name = f"{actor.get('first_name', '')} {actor.get('last_name', '')}".strip() or "System"
print(f"[{activity['activity_type']}] {name}: {activity.get('subject', '')}")
const axios = require('axios');
const { data: activities } = await axios.get(
`https://api.dcycle.io/v1/projects/${process.env.PROJECT_ID}/recent-activities`,
{
headers: {
'x-api-key': process.env.DCYCLE_API_KEY,
'x-organization-id': process.env.DCYCLE_ORG_ID,
},
params: { limit: 10 },
}
);
activities.forEach(a => {
const name = a.actor ? `${a.actor.first_name} ${a.actor.last_name}` : 'System';
console.log(`[${a.activity_type}] ${name}: ${a.subject}`);
});
Successful Response
[
{
"activity_type": "task",
"entity_id": "task-uuid",
"parent_entity_id": null,
"subject": "Upload fleet data",
"context": "Stage changed to completed",
"created_at": "2025-06-15T14:30:00Z",
"actor": {
"id": "user-uuid",
"first_name": "Ana",
"last_name": "García",
"profile_img_url": "https://..."
}
},
{
"activity_type": "task_comment",
"entity_id": "comment-uuid",
"parent_entity_id": "task-uuid",
"subject": "Upload fleet data",
"context": "All vehicle records uploaded for Q1",
"created_at": "2025-06-15T14:25:00Z",
"actor": {
"id": "user-uuid",
"first_name": "Ana",
"last_name": "García",
"profile_img_url": 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 project does not exist or belongs to another organization{"detail": "Not Found"}
Related Endpoints
List Project Tasks
List all tasks in a project
Get Project
Get project details
Was this page helpful?