Get task by ID
GET
/v1/tasks/{taskId}
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”taskId
required
string
Example
tsk_abc123def456Unique task identifier
Responses
Section titled “Responses”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
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
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"}