PostHog Tasks API

The tasks API from PostHog — 24 operation(s) for tasks.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/projects/{project_id}/tasks/ List agent tasks in a project · List tasks #
Ask an LLM
“What agent tasks are open in my project?”
“Can I filter tasks by origin product or repository?”
Tell an agent
List tasks in project {project_id}.
Show tasks in project {project_id} with status {status}.
POST /api/projects/{project_id}/tasks/ Create an agent task · Tasks create #
Ask an LLM
“How do I create a new agent task in a project?”
“Can I set a custom prompt for a task's CI fixes?”
Tell an agent
Create task {title} in project {project_id} with prompt {ci_prompt}.
Add a new task {title} to project {project_id} from repository {repository}.
GET /api/projects/{project_id}/tasks/{id}/ Get an agent task · Tasks retrieve #
Ask an LLM
“What are the details of one agent task?”
“Can I look up a task by its ID?”
Tell an agent
Get task {id} in project {project_id}.
Show the details of agent task {id}.
PUT /api/projects/{project_id}/tasks/{id}/ Replace an agent task · Tasks update #
Ask an LLM
“How do I overwrite an agent task's title and description?”
“Can I change a task's GitHub integration?”
Tell an agent
Replace task {id} in project {project_id} with title {title}.
Update task {id} in project {project_id} to use GitHub integration {github_integration}.
PATCH /api/projects/{project_id}/tasks/{id}/ Edit fields of an agent task · Tasks partial update #
Ask an LLM
“Can I change just a task's description without resending everything?”
“Is there a partial update for agent tasks?”
Tell an agent
Set the description of task {id} in project {project_id} to {description}.
Mark task {id} as internal: {internal}.
DELETE /api/projects/{project_id}/tasks/{id}/ Delete an agent task · Tasks destroy #
Ask an LLM
“How do I delete an agent task?”
“Can I remove a task from a project?”
Tell an agent destructive · confirm first
Delete task {id} from project {project_id}.
Remove agent task {id}.
POST /api/projects/{project_id}/tasks/{id}/run/ Run an agent task · Run task #
Ask an LLM
“How do I kick off a workflow for an agent task?”
“Can I start a new run of a task?”
Tell an agent
Run task {id} in project {project_id}.
Start a new workflow run for agent task {id}.
POST /api/projects/{project_id}/tasks/{id}/staged_artifacts/finalize_upload/ Finalize staged uploads for a task · Finalize staged direct uploads for task attachments #
Ask an LLM
“How do I verify staged S3 uploads so they can attach to a task run?”
“Can I finalize task attachments after uploading them?”
Tell an agent
Finalize staged uploads {artifacts} for task {id} in project {project_id}.
Verify and cache task {id} attachments {artifacts}.
POST /api/projects/{project_id}/tasks/{id}/staged_artifacts/prepare_upload/ Prepare staged uploads for a task · Prepare staged direct uploads for task attachments #
Ask an LLM
“How do I reserve S3 keys for task attachments before a run?”
“Can I get presigned upload forms for a task's files?”
Tell an agent
Prepare staged uploads {artifacts} for task {id} in project {project_id}.
Reserve S3 keys for task {id} attachments {artifacts}.
GET /api/projects/{project_id}/tasks/repositories/ List repositories used by tasks · List distinct task repositories #
Ask an LLM
“Which repositories have tasks in my project?”
“Can I get the distinct task repositories without pagination?”
Tell an agent
List repositories referenced by tasks in project {project_id}.
Show the set of task repositories for project {project_id}.
GET /api/projects/{project_id}/tasks/repository_readiness/ Check autonomy readiness of a repository · Get repository readiness #
Ask an LLM
“Is my repository ready for autonomous tasks?”
“Can I check readiness for a specific repo over a time window?”
Tell an agent
Get readiness for repository {repository} in project {project_id}.
Check autonomy readiness of {repository} over the last {window_days} days.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/posthog:posthog-tasks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

posthog-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostHog Tasks API
  version: 1.0.0
  description: ''
tags:


# --- truncated at 32 KB (46 KB total) ---
# Full source: https://artifacts.apis.io/posthog/openapi/posthog-tasks-api-openapi.yml