Tasks
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
GET | |
GET | |
POST |
List all tasks
Get a list of tasks for the current project, with optional filtering by origin product, stage, organization, repository, and created_by.
Required API key scopes
task:readQuery parameters
- all_team_tasksbooleanDefault:
false - archivedstringOne of:
"true""false""all" - channelstring
- ci_statusstringOne of:
"passing""failing""pending""none" - commented_byinteger
- created_byinteger
- exclude_origin_productstringOne of:
"onboarding""error_tracking""eval_clusters""user_created""slack""support_queue""session_summaries""posthog_ai""experiments""signal_report""signals_scout""support_reply""hogdesk""review_hog""image_builder""loop""mcp_analytics""signals_chat""task_analysis""workflow" - internalstringOne of:
"true""false""all" - limitintegerDefault:
50 - mentionsinteger
- offsetintegerDefault:
0 - orderingstringOne of:
"-created_at""-last_activity_at" - organizationstring
- origin_productstring
- pinnedboolean
- pr_statestringOne of:
"open""draft""merged""closed" - repositorystring
- searchstring
- stagestring
- statusstringOne of:
"not_started""queued""in_progress""completed""failed""cancelled"
Response
Example request
GET /api /projects /:project_id /tasksExample response
Status 200 List of tasks
List all tasks
Get a list of tasks for the current project, with optional filtering by origin product, stage, organization, repository, and created_by.
Required API key scopes
task:readQuery parameters
- all_team_tasksbooleanDefault:
false - archivedstringOne of:
"true""false""all" - channelstring
- ci_statusstringOne of:
"passing""failing""pending""none" - commented_byinteger
- created_byinteger
- exclude_origin_productstringOne of:
"onboarding""error_tracking""eval_clusters""user_created""slack""support_queue""session_summaries""posthog_ai""experiments""signal_report""signals_scout""support_reply""hogdesk""review_hog""image_builder""loop""mcp_analytics""signals_chat""task_analysis""workflow" - internalstringOne of:
"true""false""all" - limitintegerDefault:
50 - mentionsinteger
- offsetintegerDefault:
0 - orderingstringOne of:
"-created_at""-last_activity_at" - organizationstring
- origin_productstring
- pinnedboolean
- pr_statestringOne of:
"open""draft""merged""closed" - repositorystring
- searchstring
- stagestring
- statusstringOne of:
"not_started""queued""in_progress""completed""failed""cancelled"
Response
Example request
GET /api /projects /:project_id /tasksExample response
Status 200 List of tasks
Create tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writeRequest parameters
- titlestring
- title_manually_setboolean
- descriptionstring
- origin_product
- repositorystringnull
- repositoriesarray
- github_integrationintegernull
- github_user_integrationstringnull
- signal_reportstringnull
- signal_report_task_relationshipstring
- json_schema
- archivedboolean
- ci_promptstringnull
- branchstringnull
- runtime_adapter
- modelstringnull
- reasoning_effort
- pending_user_messagestringnull
- pending_user_artifact_idsarray
- auto_publishbooleannull
- channelstringnull
- naming_sourcestring
- sandbox_environment_idstringnull
- custom_image_idstringnull
- runtime
Response
Example request
POST /api /projects /:project_id /tasksExample response
Status 201
Status 429 Organization reached its PostHog Desktop usage limit, the signal report reached its task limit (code `signal_report_task_cap`), or the per-user creation rate limit fired
Create tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writeRequest parameters
- titlestring
- title_manually_setboolean
- descriptionstring
- origin_product
- repositorystringnull
- repositoriesarray
- github_integrationintegernull
- github_user_integrationstringnull
- signal_reportstringnull
- signal_report_task_relationshipstring
- json_schema
- archivedboolean
- ci_promptstringnull
- branchstringnull
- runtime_adapter
- modelstringnull
- reasoning_effort
- pending_user_messagestringnull
- pending_user_artifact_idsarray
- auto_publishbooleannull
- channelstringnull
- naming_sourcestring
- sandbox_environment_idstringnull
- custom_image_idstringnull
- runtime
Response
Example request
POST /api /projects /:project_id /tasksExample response
Status 201
Status 429 Organization reached its PostHog Desktop usage limit, the signal report reached its task limit (code `signal_report_task_cap`), or the per-user creation rate limit fired
Retrieve tasks
Retrieve a single task by ID.
Required API key scopes
task:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /tasks /:idExample response
Status 200 Task
Retrieve tasks
Retrieve a single task by ID.
Required API key scopes
task:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /tasks /:idExample response
Status 200 Task
Update tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writePath parameters
- idstring
Request parameters
- titlestring
- title_manually_setboolean
- descriptionstring
- origin_product
- repositorystringnull
- repositoriesarray
- github_integrationintegernull
- github_user_integrationstringnull
- signal_reportstringnull
- signal_report_task_relationshipstring
- json_schema
- archivedboolean
- ci_promptstringnull
- branchstringnull
- runtime_adapter
- modelstringnull
- reasoning_effort
- pending_user_messagestringnull
- pending_user_artifact_idsarray
- auto_publishbooleannull
- channelstringnull
Response
Example request
PATCH /api /projects /:project_id /tasks /:idExample response
Status 200
Update tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writePath parameters
- idstring
Request parameters
- titlestring
- title_manually_setboolean
- descriptionstring
- origin_product
- repositorystringnull
- repositoriesarray
- github_integrationintegernull
- github_user_integrationstringnull
- signal_reportstringnull
- signal_report_task_relationshipstring
- json_schema
- archivedboolean
- ci_promptstringnull
- branchstringnull
- runtime_adapter
- modelstringnull
- reasoning_effort
- pending_user_messagestringnull
- pending_user_artifact_idsarray
- auto_publishbooleannull
- channelstringnull
Response
Example request
PATCH /api /projects /:project_id /tasks /:idExample response
Status 200
Delete tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /tasks /:idExample response
Status 204 No response body
Delete tasks
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /tasks /:idExample response
Status 204 No response body
List all tasks artifacts
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /tasks /:id /artifactsExample response
Status 200
List all tasks artifacts
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
task:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /tasks /:id /artifactsExample response
Status 200
List all tasks comments
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
comment:readPath parameters
- idstring
Query parameters
- artifact_idstring
- cursorstring
- include_resolvedbooleanDefault:
false - limitintegerDefault:
50
Response
Example request
GET /api /projects /:project_id /tasks /:id /commentsExample response
Status 200
List all tasks comments
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
comment:readPath parameters
- idstring
Query parameters
- artifact_idstring
- cursorstring
- include_resolvedbooleanDefault:
false - limitintegerDefault:
50
Response
Example request
GET /api /projects /:project_id /tasks /:id /commentsExample response
Status 200
Retrieve tasks comments
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
comment:readPath parameters
- idstring
- root_comment_idstring
Query parameters
- comment_idstring
- content_offsetintegerDefault:
0 - cursorstring
- limitintegerDefault:
50
Response
Example request
GET /api /projects /:project_id /tasks /:id /comments /:root_comment_idExample response
Status 200
Retrieve tasks comments
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
Required API key scopes
comment:readPath parameters
- idstring
- root_comment_idstring
Query parameters
- comment_idstring
- content_offsetintegerDefault:
0 - cursorstring
- limitintegerDefault:
50
Response
Example request
GET /api /projects /:project_id /tasks /:id /comments /:root_comment_idExample response
Status 200
Create tasks handoff
Transfer ownership of a task to another member of the project: they take over driving it (steering, archiving, running), and future runs resolve GitHub authorship and notification recipients from them. Only the task's current owner can hand it off. Every run must be finished or canceled, and every sandbox must be shut down first. A task in a private space moves into the recipient's private space; a task in a shared space stays there.
Required API key scopes
task:writePath parameters
- idstring
Request parameters
- userinteger
Response
Example request
POST /api /projects /:project_id /tasks /:id /handoffExample response
Status 200
Status 403 Only a user may hand off a task.
Create tasks handoff
Transfer ownership of a task to another member of the project: they take over driving it (steering, archiving, running), and future runs resolve GitHub authorship and notification recipients from them. Only the task's current owner can hand it off. Every run must be finished or canceled, and every sandbox must be shut down first. A task in a private space moves into the recipient's private space; a task in a shared space stays there.
Required API key scopes
task:writePath parameters
- idstring
Request parameters
- userinteger
Response
Example request
POST /api /projects /:project_id /tasks /:id /handoff