PostHog · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for PostHog Task Runs API

20 actions 20 updates phrasing extends openapi/posthog-task-runs-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for PostHog's API. It is a proposal applied on top of the contract, not a document PostHog publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 20 · first 16 shown; the file carries all of them

$.info
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/'].get
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/'].post
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/'].get
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/'].patch
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/append_log/'].post
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/artifacts/'].post
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/artifacts/download/'].post
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/artifacts/finalize_upload/'].post
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/artifacts/prepare_upload/'].post
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/artifacts/presign/'].post
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/command/'].post
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/connection_token/'].get
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/logs/'].get
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/relay_message/'].post
$.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/resume_in_cloud/'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for PostHog Task Runs API
  version: 1.0.0
extends: openapi/posthog-task-runs-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-16'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 19
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/'].get
  update:
    x-apievangelist-phrasing:
      intent: List runs of a task
      effect: read
      questions:
      - Which runs have been executed for a given task?
      - Can I page through a task's run history?
      instructions:
      - text: List runs of task {task_id} in project {project_id}.
        slots:
          task_id: path.task_id
          project_id: path.project_id
      - text: Show {limit} runs for task {task_id} in project {project_id}.
        slots:
          limit: query.limit
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a task run without starting it
      effect: write
      questions:
      - How do I create a new run for a task without starting execution?
      - Can I choose the execution environment and model for a new run?
      instructions:
      - text: Create a run for task {task_id} in project {project_id}.
        slots:
          task_id: path.task_id
          project_id: path.project_id
      - text: Create a {mode} run of task {task_id} in project {project_id} on model {model}.
        slots:
          mode: requestBody.mode
          task_id: path.task_id
          project_id: path.project_id
          model: requestBody.model
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a task run
      effect: read
      questions:
      - What is the status and output of a specific task run?
      - Can I look up one run of a task by its ID?
      instructions:
      - text: Get run {id} of task {task_id} in project {project_id}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Show the status of task run {id} for task {task_id} in project {project_id}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a task run
      effect: write
      questions:
      - Can I change the status or output of an existing task run?
      - Is it possible to set the error message on a failed run?
      instructions:
      - text: Set the status of run {id} of task {task_id} in project {project_id} to {status}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
          status: requestBody.status
      - text: Update the output of task run {id} for task {task_id} in project {project_id} to {output}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
          output: requestBody.output
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/append_log/'].post
  update:
    x-apievangelist-phrasing:
      intent: Append log entries to a task run
      effect: write
      questions:
      - How do I add log entries to a task run after the fact?
      - Can I append several log lines to a run's log array?
      instructions:
      - text: Append log entries {entries} to run {id} of task {task_id} in project {project_id}.
        slots:
          entries: requestBody.entries
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: 'Add these log lines to task run {id} for task {task_id} in project {project_id}: {entries}.'
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
          entries: requestBody.entries
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/artifacts/'].post
  update:
    x-apievangelist-phrasing:
      intent: Upload artifacts to a task run
      effect: write
      questions:
      - How do I attach files to a task run?
      - Can I upload artifacts to a run so they show up in the manifest?
      instructions:
      - text: Upload artifacts {artifacts} to run {id} of task {task_id} in project {project_id}.
        slots:
          artifacts: requestBody.artifacts
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: 'Attach these files to task run {id} for task {task_id} in project {project_id}: {artifacts}.'
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
          artifacts: requestBody.artifacts
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/artifacts/download/'].post
  update:
    x-apievangelist-phrasing:
      intent: Download an artifact from a task run
      effect: read
      questions:
      - How do I download an artifact that was saved in a task run?
      - Can I fetch a file from a run's artifact manifest by its storage path?
      instructions:
      - text: Download artifact {storage_path} from run {id} of task {task_id} in project {project_id}.
        slots:
          storage_path: requestBody.storage_path
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Fetch the saved file {storage_path} attached to task run {id} for task {task_id} in project {project_id}.
        slots:
          storage_path: requestBody.storage_path
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/artifacts/finalize_upload/'].post
  update:
    x-apievangelist-phrasing:
      intent: Finalize direct uploads of task run artifacts
      effect: write
      questions:
      - How do I confirm S3 objects I uploaded directly so they appear in a run's manifest?
      - Can I finalize a batch of directly uploaded artifacts for a task run?
      instructions:
      - text: Finalize uploaded artifacts {artifacts} for run {id} of task {task_id} in project {project_id}.
        slots:
          artifacts: requestBody.artifacts
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Confirm the direct uploads {artifacts} so they are attached to task run {id} for task {task_id} in project {project_id}.
        slots:
          artifacts: requestBody.artifacts
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/artifacts/prepare_upload/'].post
  update:
    x-apievangelist-phrasing:
      intent: Prepare S3 keys for task run artifacts
      effect: write
      questions:
      - How do I get presigned URLs to upload files directly to S3 for a task run?
      - Can I reserve S3 object keys before uploading artifacts to a run?
      instructions:
      - text: Prepare S3 keys for artifacts {artifacts} in run {id} of task {task_id} in project {project_id}.
        slots:
          artifacts: requestBody.artifacts
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Reserve storage keys for {artifacts} so I can upload them to task run {id} for task {task_id} in project {project_id}.
        slots:
          artifacts: requestBody.artifacts
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/artifacts/presign/'].post
  update:
    x-apievangelist-phrasing:
      intent: Get a presigned URL for a task run artifact
      effect: read
      questions:
      - How do I get a temporary link to download an artifact from a task run?
      - Can I generate a signed URL for a file in a run's artifact manifest?
      instructions:
      - text: Generate a presigned URL for artifact {storage_path} in run {id} of task {task_id} in project {project_id}.
        slots:
          storage_path: requestBody.storage_path
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Give me a download link for {storage_path} saved in task run {id} for task {task_id} in project {project_id}.
        slots:
          storage_path: requestBody.storage_path
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/command/'].post
  update:
    x-apievangelist-phrasing:
      intent: Send a command to the agent server of a run
      effect: write
      questions:
      - How do I send a user message to the agent running in a task run?
      - Can I cancel or close a task run from the outside?
      instructions:
      - text: Send command {method} to the agent server of run {id} of task {task_id} in project {project_id}.
        slots:
          method: requestBody.method
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Forward a {method} JSON-RPC call to task run {id} for task {task_id} in project {project_id}.
        slots:
          method: requestBody.method
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/connection_token/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a JWT for connecting to a run's sandbox
      effect: read
      questions:
      - How do I get a connection token to attach to the sandbox of a task run?
      - How long is the sandbox connection token valid?
      instructions:
      - text: Get a sandbox connection token for run {id} of task {task_id} in project {project_id}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Generate a JWT to connect to the sandbox of task run {id} for task {task_id} in project {project_id}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/logs/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get the full log of a task run
      effect: read
      questions:
      - What did the agent say in a task run's full log?
      - Can I fetch the complete log history of a run, including its ancestors?
      instructions:
      - text: Get the full log of run {id} of task {task_id} in project {project_id}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Fetch every log line from task run {id} for task {task_id} in project {project_id}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/relay_message/'].post
  update:
    x-apievangelist-phrasing:
      intent: Post a message from a run to Slack
      effect: write
      questions:
      - How do I post a message from a task run into a Slack thread?
      - Can I queue a Slack relay workflow for a run's output?
      instructions:
      - text: Relay the message {text} from run {id} of task {task_id} in project {project_id} to Slack.
        slots:
          text: requestBody.text
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Queue Slack relay of {text} for task run {id} of task {task_id} in project {project_id}.
        slots:
          text: requestBody.text
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/resume_in_cloud/'].post
  update:
    x-apievangelist-phrasing:
      intent: Resume a task run in the cloud sandbox
      effect: write
      questions:
      - How do I move an existing task run back into a cloud sandbox?
      - Does resuming a run terminate the current workflow and start a new one?
      instructions:
      - text: Resume run {id} of task {task_id} in project {project_id} in the cloud.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Move task run {id} for task {task_id} in project {project_id} back into a cloud sandbox.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/session_logs/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get filtered session logs of a task run
      effect: read
      questions:
      - Can I filter a task run's session logs by event type?
      - How do I see only the session log entries after a certain time?
      instructions:
      - text: Get session logs of run {id} of task {task_id} in project {project_id} after {after}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
          after: query.after
      - text: Show {event_types} session log entries for task run {id} of task {task_id} in project {project_id}.
        slots:
          event_types: query.event_types
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/set_output/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Set the output field of a task run
      effect: write
      questions:
      - How do I record the PR URL or commit SHA a task run produced?
      - Can I update a run's output field after it completes?
      instructions:
      - text: Set the output of run {id} of task {task_id} in project {project_id} to {output}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
          output: requestBody.output
      - text: Record {output} as the output of task run {id} for task {task_id} in project {project_id}.
        slots:
          output: requestBody.output
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/start/'].post
  update:
    x-apievangelist-phrasing:
      intent: Start a task run in the cloud sandbox
      effect: write
      questions:
      - How do I start a task run that was created but not yet executed?
      - Can I attach pending user messages and artifacts when starting a run?
      instructions:
      - text: Start run {id} of task {task_id} in project {project_id}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Start task run {id} for task {task_id} in project {project_id} with pending message {pending_user_message}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
          pending_user_message: requestBody.pending_user_message
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/tasks/{task_id}/runs/{id}/stream/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get the streaming output of a task run
      effect: read
      questions:
      - How do I stream the output of a running task run?
      - Can I follow a task run's output in real time?
      instructions:
      - text: Get the streaming output of run {id} of task {task_id} in project {project_id}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      - text: Stream the output of task run {id} for task {task_id} in project {project_id}.
        slots:
          id: path.id
          task_id: path.task_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/posthog-task-runs-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.