Skip to content

Get task by ID

GET
/v1/tasks/{taskId}
curl --request GET \
--url https://api.varman.io/v1/tasks/tsk_abc123def456 \
--header 'X-API-Key: <X-API-Key>'

Get task by ID in Varman. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

taskId
required
string

Example

tsk_abc123def456

Unique task identifier

Task retrieved successfully

Media typeapplication/json
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"
}

Forbidden - Not assigned to this task

Task not found

Media typeapplication/json
object
message
string

Example

{
"message": "Task with ID tsk_abc123def456 not found"
}