Get task

http
GET /projects/{project_reference}/tasks/{task_id}

Read one task definition by its ID to inspect its target, input and output schemas and whether it can be scheduled; returns the task. Requires project.runs.read.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
task_idpathYes
source_target_kindquerySource to read: project, main_branch, environment or preview_branch. Overrides runtime_target_kind.
runtime_target_kindqueryRuntime target to read from: main_branch, environment or preview_branch.
target_environment_idqueryEnvironment to read from when the target kind is environment.
target_branch_idqueryPreview branch to use when the target kind is preview_branch.

Responses

StatusDescription
200Discovered project task
401Unauthorized
403Forbidden
404Not found