Aller au contenu

Organization Tasks

Ce contenu n’est pas encore disponible dans votre langue.

The Organization Tasks resource provides fake task data with titles, descriptions, statuses, priorities, assignees, and time tracking information.

MethodEndpointDescription
GET/v1/tasksList all organization tasks
GET/v1/tasks/:idGet a specific organization task
{
"id": 1,
"projectId": 1,
"title": "Design system architecture",
"description": "Create a scalable architecture for the new platform.",
"status": "todo",
"priority": "high",
"assigneeId": 3,
"dueDate": "2026-03-15",
"estimatedHours": 40,
"actualHours": 0,
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-01-15T10:30:00.000Z"
}
Field Type Description
id number Unique identifier
projectId number ID of the parent project
title string Task title
description string Task description
status string Task status
priority string Task priority
assigneeId number ID of the assigned employee
dueDate string Due date (ISO 8601 date)
estimatedHours number Estimated hours to complete
actualHours number Actual hours spent
createdAt string ISO 8601 timestamp
updatedAt string ISO 8601 timestamp
Terminal window
curl https://api.phantomjson.app/v1/tasks
Parameter Type Default Description
page number 1 Page number
limit number 20 Items per page (max: 100)
sort string Sort field and direction
q string Search query
fields string Fields to return
projectId number Filter by project ID
assigneeId number Filter by assignee ID
status string Filter by status
priority string Filter by priority
{
"data": [
{
"id": 1,
"projectId": 1,
"title": "Design system architecture",
"status": "todo",
"priority": "high",
"assigneeId": 3
}
],
"meta": {
"total": 500,
"page": 1,
"limit": 20,
"totalPages": 25
}
}
Terminal window
curl https://api.phantomjson.app/v1/tasks/1
{
"data": {
"id": 1,
"projectId": 1,
"title": "Design system architecture",
"description": "Create a scalable architecture for the new platform.",
"status": "todo",
"priority": "high",
"assigneeId": 3,
"dueDate": "2026-03-15",
"estimatedHours": 40,
"actualHours": 0,
"project": {
"id": 1,
"name": "Project Alpha"
},
"assignee": {
"id": 3,
"firstName": "Bob",
"lastName": "Smith",
"jobTitle": "Senior Engineer"
}
}
}
Terminal window
curl "https://api.phantomjson.app/v1/tasks?q=architecture"
Terminal window
curl "https://api.phantomjson.app/v1/tasks?projectId=1"
Terminal window
curl "https://api.phantomjson.app/v1/tasks?assigneeId=3"
Terminal window
curl "https://api.phantomjson.app/v1/tasks?status=in-progress"
Terminal window
curl "https://api.phantomjson.app/v1/tasks?priority=high"
Terminal window
curl "https://api.phantomjson.app/v1/tasks?fields=id,title,status,priority,dueDate"
Terminal window
# High priority in-progress tasks for project 1, sorted by due date
curl "https://api.phantomjson.app/v1/tasks?projectId=1&status=in-progress&priority=high&sort=dueDate:asc&fields=id,title,dueDate,assigneeId"

Available task statuses:

  • todo
  • in-progress
  • review
  • done

Available task priorities:

  • low
  • medium
  • high
  • critical
  • Project — Each task belongs to a project (projectId)
  • Assignee — Each task may be assigned to an employee (assigneeId)