Skip to main content
POST
/
v1
/
tasks
Create compliance task
curl --request POST \
  --url https://api.trycomp.ai/v1/tasks \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "title": "Implement access controls",
  "description": "Set up role-based access controls for the platform"
}
'
{
  "id": "tsk_abc123def456",
  "title": "Implement user authentication",
  "status": "in_progress",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:30:00Z",
  "integrationScheduleFrequency": "daily",
  "description": "Add OAuth 2.0 authentication to the platform",
  "taskTemplateId": "frk_tt_68406e353df3bc002994acef",
  "integrationLastRunAt": {}
}

Documentation Index

Fetch the complete documentation index at: https://www.trycomp.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

API key for authentication

Body

application/json
title
string
required
Example:

"Implement access controls"

description
string
required
Example:

"Set up role-based access controls for the platform"

assigneeId
string | null
Example:

"mem_abc123"

frequency
enum<string> | null
Available options:
daily,
weekly,
monthly,
quarterly,
yearly
Example:

"monthly"

department
enum<string> | null
Available options:
none,
admin,
gov,
hr,
it,
itsm,
qms
Example:

"it"

controlIds
string[]
Example:
["ctrl_abc123"]
taskTemplateId
string | null
Example:

"tmpl_abc123"

vendorId
string | null

Vendor ID to connect this task to

Example:

"vnd_abc123"

Response

Task created 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"

integrationScheduleFrequency
enum<string>
required

Cadence for running the integration check attached to this task

Available options:
daily,
weekly,
monthly,
quarterly,
yearly
Example:

"daily"

description
string

Task description

Example:

"Add OAuth 2.0 authentication to the platform"

taskTemplateId
object

Task template ID

Example:

"frk_tt_68406e353df3bc002994acef"

integrationLastRunAt
object

Last successful integration check run timestamp