GET
/
api
/
v2
/
tasks
/
{taskId}
import os
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key=os.environ.get("SAMPLEHC_API_KEY"),  # This is the default and can be omitted
)
task = client.v2.tasks.retrieve(
    "taskId",
)
print(task.id)
{
  "id": "<string>",
  "status": "running",
  "output": "<any>",
  "state": "<any>"
}

Path Parameters

taskId
string
required

The unique identifier of the task to get.

Response

200
application/json

Default Response

The response is of type object.