Skip to main content
GET
/
api
/
v2
/
tasks
/
{taskId}
Python
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key="My API Key",
)
task = client.v2.tasks.retrieve(
    "taskId",
)
print(task.id)
{
  "id": "<string>",
  "status": "running",
  "workflowRunId": "<string>",
  "output": {},
  "state": {}
}

Path Parameters

taskId
string
required

The unique identifier of the task to get.

Response

Default Response

id
string
required
status
enum<string>
required
Available options:
running,
waiting-dependencies,
suspended,
completed,
failed,
cancelled
workflowRunId
string
required
output
object | null
required
state
object | null
required
I