VocalDocscontracts 1.65.0

Read a human task

GET /v1/human-tasks/{human_task_id}

PropertyValue
Operationget_human_task
GroupHuman tasks
Scopeprocesses:read
Scopes of include valuescontent needs processes:content
Route classread
IdempotencyNo Idempotency-Key
AuditAn audited content read processes.human_task.read, when the request names an include value
Released in1.62.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers a human task (1.62.0); its title and completed fields only when the read names include=content, which needs processes:content and is an audited content read, as opening a task that shows an instance's content is (section 9.5).

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the processes:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/human-tasks/htk_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
human_task_idpathHumanTaskIdyesThe id of a human task: htk_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
includequeryarray of ProcessIncludenocontent adds the content (processes:content).

Responses

StatusContent typeShapeError codes
200application/jsonHumanTask
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is HumanTask.

FieldTypeRequiredDescription
assigneeHumanTaskAssigneeyes
claimed_atTimestamp or nullyes
claimed_byMemberId or nullyes
completionHumanTaskCompletion or nullyes
created_atTimestampyes
due_atTimestamp or nullyesWhen the node takes timeout and the task expires; null when unbounded.
environmentEnvironmentyes
escalate_atTimestamp or nullyesWhen human_task.overdue is written if the task is still open or claimed.
formmap of WorkflowFieldyesTyped fields, with an outcome enum.
idHumanTaskIdyes
node_idWorkflowNodeIdyes
object"human_task"yes
organization_idOrganizationIdyes
process_idProcessInstanceIdyes
statusHumanTaskStatusyes
step_idProcessStepIdyes
titlestring or nullyesRendered from the node's template. Content; null unless the read names include=content.
updated_atTimestampyes
workflow_idWorkflowIdyes
workflow_versionintegeryes