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

client = SampleHealthcare(
    api_key=os.environ.get("SAMPLEHC_API_KEY"),  # This is the default and can be omitted
)
state = client.v2.tasks.state.get(
    "taskId",
)
print(state)
{}

Path Parameters

taskId
string
required

The unique identifier of the task to get the state of.

Response

200
application/json

The state of the task.