Organization Tasks
Overview
Section titled “Overview”The Organization Tasks resource provides fake task data with titles, descriptions, statuses, priorities, assignees, and time tracking information.
Endpoints
Section titled “Endpoints”| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/tasks | List all organization tasks |
| GET | /v1/tasks/:id | Get a specific organization task |
Organization Task Object
Section titled “Organization Task Object”{ "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 |
List Organization Tasks
Section titled “List Organization Tasks”curl https://api.phantomjson.app/v1/tasksQuery Parameters
Section titled “Query Parameters”| 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 |
Response
Section titled “Response”{ "data": [ { "id": 1, "projectId": 1, "title": "Design system architecture", "status": "todo", "priority": "high", "assigneeId": 3 } ], "meta": { "total": 500, "page": 1, "limit": 20, "totalPages": 25 }}Get Organization Task by ID
Section titled “Get Organization Task by ID”curl https://api.phantomjson.app/v1/tasks/1Response
Section titled “Response”{ "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" } }}Examples
Section titled “Examples”Search Tasks
Section titled “Search Tasks”curl "https://api.phantomjson.app/v1/tasks?q=architecture"Filter by Project
Section titled “Filter by Project”curl "https://api.phantomjson.app/v1/tasks?projectId=1"Filter by Assignee
Section titled “Filter by Assignee”curl "https://api.phantomjson.app/v1/tasks?assigneeId=3"Filter by Status
Section titled “Filter by Status”curl "https://api.phantomjson.app/v1/tasks?status=in-progress"Filter by Priority
Section titled “Filter by Priority”curl "https://api.phantomjson.app/v1/tasks?priority=high"Field Selection
Section titled “Field Selection”curl "https://api.phantomjson.app/v1/tasks?fields=id,title,status,priority,dueDate"Combined Query
Section titled “Combined Query”# High priority in-progress tasks for project 1, sorted by due datecurl "https://api.phantomjson.app/v1/tasks?projectId=1&status=in-progress&priority=high&sort=dueDate:asc&fields=id,title,dueDate,assigneeId"Statuses
Section titled “Statuses”Available task statuses:
todoin-progressreviewdone
Priorities
Section titled “Priorities”Available task priorities:
lowmediumhighcritical
Relations
Section titled “Relations”- Project — Each task belongs to a project (
projectId) - Assignee — Each task may be assigned to an employee (
assigneeId)
