Read task source

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

Read the editable source behind one task before changing it; returns the task source document with its source text, edit mode and the reasons it can only be edited as source. Requires project.runs.read.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
task_idpathYes
source_target_kindquerySource to read: project or preview_branch. Defaults to runtime_target_kind, then project.
target_branch_idqueryPreview branch to use when the target kind is preview_branch.
runtime_target_kindqueryUsed as the source target kind when source_target_kind is omitted.
target_environment_idqueryNot supported for source reads; a non-null value is rejected.

Responses

StatusDescription
200Task document
400Bad request
401Unauthorized
403Forbidden
404Not found