GET
/
v1
/
tasks
Get all tasks
curl --request GET \
  --url https://api.trycomp.ai/v1/tasks \
  --header 'X-API-Key: <api-key>'
[
  {
    "id": "tsk_abc123def456",
    "title": "Implement user authentication",
    "description": "Add OAuth 2.0 authentication to the platform",
    "status": "in_progress",
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z"
  }
]

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Response

Tasks retrieved successfully

id
string
required

Unique identifier for the task

Example:

"tsk_abc123def456"

title
string
required

Task title

Example:

"Implement user authentication"

status
enum<string>
required

Task status

Available options:
todo,
in_progress,
done,
blocked
Example:

"in_progress"

createdAt
string<date-time>
required

Task creation timestamp

Example:

"2024-01-15T10:30:00Z"

updatedAt
string<date-time>
required

Task last update timestamp

Example:

"2024-01-15T10:30:00Z"

description
string

Task description

Example:

"Add OAuth 2.0 authentication to the platform"