Skip to content

List compliance tasks

GET
/v1/tasks
Code sample: List tasks
curl --request GET --url "https://api.example.com/v1/tasks" --header "X-API-Key: $COMP_AI_API_KEY"

List compliance tasks with assignments and status so teams can track audit readiness, evidence work, and control implementation.

includeRelations
string

Include controls and automations with runs

Tasks retrieved successfully

Media typeapplication/json
Array<object>
object
id
required

Unique identifier for the task

string
title
required

Task title

string
description

Task description

string
status
required

Task status

string
Allowed values: todo in_progress done blocked
createdAt
required

Task creation timestamp

string format: date-time
updatedAt
required

Task last update timestamp

string format: date-time
taskTemplateId

Task template ID

object
integrationScheduleFrequency
required

Cadence for running the integration check attached to this task

string
Allowed values: daily weekly monthly quarterly yearly
integrationLastRunAt

Last successful integration check run timestamp

object

Example

[
{
"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"
}
]

Unauthorized - Invalid authentication

Media typeapplication/json
object
message
string

Example

{
"message": "Unauthorized"
}