PostHog · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for PostHog Surveys API

19 actions 19 updates phrasing extends openapi/posthog-surveys-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 19 · first 16 shown; the file carries all of them

$.info
$.paths['/api/projects/{project_id}/surveys/'].get
$.paths['/api/projects/{project_id}/surveys/'].post
$.paths['/api/projects/{project_id}/surveys/{id}/'].get
$.paths['/api/projects/{project_id}/surveys/{id}/'].put
$.paths['/api/projects/{project_id}/surveys/{id}/'].delete
$.paths['/api/projects/{project_id}/surveys/{id}/'].patch
$.paths['/api/projects/{project_id}/surveys/{id}/activity/'].get
$.paths['/api/projects/{project_id}/surveys/{id}/archived-response-uuids/'].get
$.paths['/api/projects/{project_id}/surveys/{id}/duplicate_to_projects/'].post
$.paths['/api/projects/{project_id}/surveys/{id}/generate_translations/'].post
$.paths['/api/projects/{project_id}/surveys/{id}/responses/{response_uuid}/archive/'].post
$.paths['/api/projects/{project_id}/surveys/{id}/responses/{response_uuid}/unarchive/'].post
$.paths['/api/projects/{project_id}/surveys/{id}/stats/'].get
$.paths['/api/projects/{project_id}/surveys/{id}/summarize_responses/'].post
$.paths['/api/projects/{project_id}/surveys/{id}/summary_headline/'].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 Surveys API
  version: 1.0.0
extends: openapi/posthog-surveys-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: 18
- target: $.paths['/api/projects/{project_id}/surveys/'].get
  update:
    x-apievangelist-phrasing:
      intent: List surveys in a project
      effect: read
      questions:
      - Which surveys are set up in my PostHog project?
      - Can I list only the archived surveys?
      instructions:
      - text: List surveys in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Find surveys in project {project_id} matching {search}.
        slots:
          project_id: path.project_id
          search: query.search
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a survey
      effect: write
      questions:
      - How do I create a new survey that shows as a popover?
      - Can a survey be tied to a feature flag and limited to a certain number of responses?
      instructions:
      - text: Create survey {name} of type {type} in project {project_id}.
        slots:
          name: requestBody.name
          type: requestBody.type
          project_id: path.project_id
      - text: Create survey {name} tied to flag {linked_flag} in project {project_id}.
        slots:
          name: requestBody.name
          linked_flag: requestBody.linked_flag
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a survey
      effect: read
      questions:
      - What questions and conditions does a particular survey have?
      - Can I fetch one survey by its ID?
      instructions:
      - text: Get survey {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Show the questions and conditions of survey {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a survey's questions and conditions
      effect: write
      questions:
      - How do I replace all the questions and conditions on an existing survey?
      - Can I overwrite a survey's full definition in one call?
      instructions:
      - text: Replace survey {id} in project {project_id} with questions {questions} and conditions {conditions}.
        slots:
          id: path.id
          project_id: path.project_id
          questions: requestBody.questions
          conditions: requestBody.conditions
      - text: Overwrite survey {id} with questions {questions}, conditions {conditions} and name {name}.
        slots:
          id: path.id
          questions: requestBody.questions
          conditions: requestBody.conditions
          name: requestBody.name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a survey
      effect: destructive
      questions:
      - How do I delete a survey I no longer need?
      - Can I remove a survey from a project?
      instructions:
      - text: Delete survey {id} from project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Remove survey {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a survey's name or questions
      effect: write
      questions:
      - Can I rename a survey without resending all its questions?
      - How do I change just the questions on an existing survey?
      instructions:
      - text: Rename survey {id} to {name} in project {project_id}.
        slots:
          id: path.id
          name: requestBody.name
          project_id: path.project_id
      - text: Change the questions on survey {id} to {questions}.
        slots:
          id: path.id
          questions: requestBody.questions
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/activity/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a survey's activity log
      effect: read
      questions:
      - What has happened with a survey recently?
      - Can I see the activity log for a survey?
      instructions:
      - text: Get the activity log for survey {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Show recent activity on survey {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/archived-response-uuids/'].get
  update:
    x-apievangelist-phrasing:
      intent: List UUIDs of archived survey responses
      effect: read
      questions:
      - Which survey responses were archived, so I can filter them out in HogQL?
      - Can I get the UUIDs of archived responses for a survey?
      instructions:
      - text: List archived response UUIDs for survey {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Get the UUIDs of archived responses on survey {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/duplicate_to_projects/'].post
  update:
    x-apievangelist-phrasing:
      intent: Copy a survey to other projects
      effect: write
      questions:
      - How do I duplicate a survey into several projects at once?
      - Can I copy a survey to other projects in a single transaction?
      instructions:
      - text: Duplicate survey {id} into other projects in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Copy survey {id} to multiple projects.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/generate_translations/'].post
  update:
    x-apievangelist-phrasing:
      intent: Translate a survey into another language
      effect: write
      questions:
      - Can I generate translations of a survey into another language?
      - Is it possible to overwrite existing survey translations?
      instructions:
      - text: Translate survey {id} in project {project_id} into {target_language}.
        slots:
          id: path.id
          project_id: path.project_id
          target_language: requestBody.target_language
      - text: Generate {target_language} translations for survey {id}, overwriting {overwrite}.
        slots:
          target_language: requestBody.target_language
          id: path.id
          overwrite: requestBody.overwrite
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/responses/{response_uuid}/archive/'].post
  update:
    x-apievangelist-phrasing:
      intent: Archive a survey response
      effect: destructive
      questions:
      - How do I archive a single survey response?
      - Can I hide one respondent's answer from the survey results?
      instructions:
      - text: Archive response {response_uuid} on survey {id} in project {project_id}.
        slots:
          response_uuid: path.response_uuid
          id: path.id
          project_id: path.project_id
      - text: Hide survey response {response_uuid} from survey {id}.
        slots:
          response_uuid: path.response_uuid
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/responses/{response_uuid}/unarchive/'].post
  update:
    x-apievangelist-phrasing:
      intent: Unarchive a survey response
      effect: write
      questions:
      - How do I bring back an archived survey response?
      - Can I undo archiving a single survey response?
      instructions:
      - text: Unarchive response {response_uuid} on survey {id} in project {project_id}.
        slots:
          response_uuid: path.response_uuid
          id: path.id
          project_id: path.project_id
      - text: Restore survey response {response_uuid} for survey {id}.
        slots:
          response_uuid: path.response_uuid
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/stats/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get survey response statistics
      effect: read
      questions:
      - What are the response statistics for a survey over a date range?
      - Can I exclude archived responses when getting survey stats?
      instructions:
      - text: Get survey stats for survey {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Show survey {id} stats from {date_from} to {date_to}.
        slots:
          id: path.id
          date_from: query.date_from
          date_to: query.date_to
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/summarize_responses/'].post
  update:
    x-apievangelist-phrasing:
      intent: Summarize survey responses
      effect: write
      questions:
      - Can I get a summary of what people answered in a survey?
      - Can I summarize survey responses for an insight or flag?
      instructions:
      - text: Summarize responses for survey {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Summarize survey {id} linked to flag {targeting_flag} in project {project_id}.
        slots:
          id: path.id
          targeting_flag: requestBody.targeting_flag
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/{id}/summary_headline/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a summary headline for a survey
      effect: write
      questions:
      - How do I generate a headline summarizing survey results?
      - Can I create a summary headline for a survey?
      instructions:
      - text: Create a summary headline for survey {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Generate a headline summarizing survey {id} results.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/activity/'].get
  update:
    x-apievangelist-phrasing:
      intent: List survey activity across the project
      effect: read
      questions:
      - What has happened with surveys across my project recently?
      - Can I see the activity log for all surveys?
      instructions:
      - text: List survey activity for project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show recent survey activity across project {project_id}.
        slots:
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/responses_count/'].get
  update:
    x-apievangelist-phrasing:
      intent: Count survey responses across the project
      effect: read
      questions:
      - How many responses have each of my surveys received?
      - Can I count survey responses across a project?
      instructions:
      - text: Count survey responses for all surveys in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Get a response count per survey for project {project_id}.
        slots:
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/surveys/stats/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get aggregated survey statistics
      effect: read
      questions:
      - What are the overall survey response rates across the project?
      - Can I see aggregated survey stats for a date range?
      instructions:
      - text: Get aggregated survey stats for project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show survey response rates from {date_from} to {date_to} in project {project_id}.
        slots:
          date_from: query.date_from
          date_to: query.date_to
          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-surveys-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.