PostHog · Capability

PostHog API — replay

PostHog API — replay. 29 operations. Lead operation: replay. Self-contained Naftiko capability covering one Posthog business surface.

Run with Naftiko Posthogreplay

What You Can Do

GET
Environmentssessionrecordingplaylistslist — Override list to include synthetic playlists
/v1/api/environments/{environment-id}/session-recording-playlists
POST
Environmentssessionrecordingplaylistscreate — environmentssessionrecordingplaylistscreate
/v1/api/environments/{environment-id}/session-recording-playlists
GET
Environmentssessionrecordingplaylistsretrieve — environmentssessionrecordingplaylistsretrieve
/v1/api/environments/{environment-id}/session-recording-playlists/{short-id}
PUT
Environmentssessionrecordingplaylistsupdate — environmentssessionrecordingplaylistsupdate
/v1/api/environments/{environment-id}/session-recording-playlists/{short-id}
PATCH
Environmentssessionrecordingplaylistspartialupdate — environmentssessionrecordingplaylistspartialupdate
/v1/api/environments/{environment-id}/session-recording-playlists/{short-id}
DELETE
Environmentssessionrecordingplaylistsdestroy — Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
/v1/api/environments/{environment-id}/session-recording-playlists/{short-id}
GET
Environmentssessionrecordingplaylistsrecordingsretrieve — environmentssessionrecordingplaylistsrecordingsretrieve
/v1/api/environments/{environment-id}/session-recording-playlists/{short-id}/recordings
POST
Environmentssessionrecordingplaylistsrecordingscreate — environmentssessionrecordingplaylistsrecordingscreate
/v1/api/environments/{environment-id}/session-recording-playlists/{short-id}/recordings/{session-recording-id}
DELETE
Environmentssessionrecordingplaylistsrecordingsdestroy — environmentssessionrecordingplaylistsrecordingsdestroy
/v1/api/environments/{environment-id}/session-recording-playlists/{short-id}/recordings/{session-recording-id}
GET
Environmentssessionrecordingslist — environmentssessionrecordingslist
/v1/api/environments/{environment-id}/session-recordings
GET
Environmentssessionrecordingsretrieve — environmentssessionrecordingsretrieve
/v1/api/environments/{environment-id}/session-recordings/{id}
PUT
Environmentssessionrecordingsupdate — environmentssessionrecordingsupdate
/v1/api/environments/{environment-id}/session-recordings/{id}
PATCH
Environmentssessionrecordingspartialupdate — environmentssessionrecordingspartialupdate
/v1/api/environments/{environment-id}/session-recordings/{id}
DELETE
Environmentssessionrecordingsdestroy — environmentssessionrecordingsdestroy
/v1/api/environments/{environment-id}/session-recordings/{id}
POST
Createsessionsummariesindividually — Generate AI individual summary for each session, without grouping.
/v1/api/environments/{project-id}/session-summaries/create-session-summaries-individually
GET
Sessionrecordingplaylistslist — Override list to include synthetic playlists
/v1/api/projects/{project-id}/session-recording-playlists
POST
Sessionrecordingplaylistscreate — sessionrecordingplaylistscreate
/v1/api/projects/{project-id}/session-recording-playlists
GET
Sessionrecordingplaylistsretrieve — sessionrecordingplaylistsretrieve
/v1/api/projects/{project-id}/session-recording-playlists/{short-id}
PUT
Sessionrecordingplaylistsupdate — sessionrecordingplaylistsupdate
/v1/api/projects/{project-id}/session-recording-playlists/{short-id}
PATCH
Sessionrecordingplaylistspartialupdate — sessionrecordingplaylistspartialupdate
/v1/api/projects/{project-id}/session-recording-playlists/{short-id}
DELETE
Sessionrecordingplaylistsdestroy — Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
/v1/api/projects/{project-id}/session-recording-playlists/{short-id}
GET
Sessionrecordingplaylistsrecordingsretrieve — sessionrecordingplaylistsrecordingsretrieve
/v1/api/projects/{project-id}/session-recording-playlists/{short-id}/recordings
POST
Sessionrecordingplaylistsrecordingscreate — sessionrecordingplaylistsrecordingscreate
/v1/api/projects/{project-id}/session-recording-playlists/{short-id}/recordings/{session-recording-id}
DELETE
Sessionrecordingplaylistsrecordingsdestroy — sessionrecordingplaylistsrecordingsdestroy
/v1/api/projects/{project-id}/session-recording-playlists/{short-id}/recordings/{session-recording-id}
GET
Sessionrecordingslist — sessionrecordingslist
/v1/api/projects/{project-id}/session-recordings
GET
Sessionrecordingsretrieve — sessionrecordingsretrieve
/v1/api/projects/{project-id}/session-recordings/{id}
PUT
Sessionrecordingsupdate — sessionrecordingsupdate
/v1/api/projects/{project-id}/session-recordings/{id}
PATCH
Sessionrecordingspartialupdate — sessionrecordingspartialupdate
/v1/api/projects/{project-id}/session-recordings/{id}
DELETE
Sessionrecordingsdestroy — sessionrecordingsdestroy
/v1/api/projects/{project-id}/session-recordings/{id}

MCP Tools

override-list-include-synthetic-playlists

Override list to include synthetic playlists

read-only idempotent
environmentssessionrecordingplaylistscreate

environmentssessionrecordingplaylistscreate

environmentssessionrecordingplaylistsretrieve

environmentssessionrecordingplaylistsretrieve

read-only idempotent
environmentssessionrecordingplaylistsupdate

environmentssessionrecordingplaylistsupdate

idempotent
environmentssessionrecordingplaylistspartialupdate

environmentssessionrecordingplaylistspartialupdate

idempotent
hard-delete-this-model-is

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

idempotent
environmentssessionrecordingplaylistsrecordingsretrieve

environmentssessionrecordingplaylistsrecordingsretrieve

read-only idempotent
environmentssessionrecordingplaylistsrecordingscreate

environmentssessionrecordingplaylistsrecordingscreate

environmentssessionrecordingplaylistsrecordingsdestroy

environmentssessionrecordingplaylistsrecordingsdestroy

idempotent
environmentssessionrecordingslist

environmentssessionrecordingslist

read-only idempotent
environmentssessionrecordingsretrieve

environmentssessionrecordingsretrieve

read-only idempotent
environmentssessionrecordingsupdate

environmentssessionrecordingsupdate

idempotent
environmentssessionrecordingspartialupdate

environmentssessionrecordingspartialupdate

idempotent
environmentssessionrecordingsdestroy

environmentssessionrecordingsdestroy

idempotent
generate-ai-individual-summary-each

Generate AI individual summary for each session, without grouping.

override-list-include-synthetic-playlists-2

Override list to include synthetic playlists

read-only idempotent
sessionrecordingplaylistscreate

sessionrecordingplaylistscreate

sessionrecordingplaylistsretrieve

sessionrecordingplaylistsretrieve

read-only idempotent
sessionrecordingplaylistsupdate

sessionrecordingplaylistsupdate

idempotent
sessionrecordingplaylistspartialupdate

sessionrecordingplaylistspartialupdate

idempotent
hard-delete-this-model-is-2

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

idempotent
sessionrecordingplaylistsrecordingsretrieve

sessionrecordingplaylistsrecordingsretrieve

read-only idempotent
sessionrecordingplaylistsrecordingscreate

sessionrecordingplaylistsrecordingscreate

sessionrecordingplaylistsrecordingsdestroy

sessionrecordingplaylistsrecordingsdestroy

idempotent
sessionrecordingslist

sessionrecordingslist

read-only idempotent
sessionrecordingsretrieve

sessionrecordingsretrieve

read-only idempotent
sessionrecordingsupdate

sessionrecordingsupdate

idempotent
sessionrecordingspartialupdate

sessionrecordingspartialupdate

idempotent
sessionrecordingsdestroy

sessionrecordingsdestroy

idempotent

Capability Spec

posthog-replay.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — replay
  description: 'PostHog API — replay. 29 operations. Lead operation: replay. Self-contained Naftiko capability covering one
    Posthog business surface.'
  tags:
  - Posthog
  - replay
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-replay
    baseUri: ''
    description: PostHog API — replay business capability. Self-contained, no shared references.
    resources:
    - name: api-environments-environment_id-session_recording_playlists
      path: /api/environments/{environment_id}/session_recording_playlists/
      operations:
      - name: environmentssessionrecordingplaylistslist
        method: GET
        description: Override list to include synthetic playlists
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: created_by
          in: query
          type: integer
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        - name: short_id
          in: query
          type: string
      - name: environmentssessionrecordingplaylistscreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-environments-environment_id-session_recording_playlists-short_id
      path: /api/environments/{environment_id}/session_recording_playlists/{short_id}/
      operations:
      - name: environmentssessionrecordingplaylistsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          required: true
      - name: environmentssessionrecordingplaylistsupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentssessionrecordingplaylistspartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentssessionrecordingplaylistsdestroy
        method: DELETE
        description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          required: true
    - name: api-environments-environment_id-session_recording_playlists-short_id-recordings
      path: /api/environments/{environment_id}/session_recording_playlists/{short_id}/recordings/
      operations:
      - name: environmentssessionrecordingplaylistsrecordingsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          required: true
    - name: api-environments-environment_id-session_recording_playlists-short_id-recordings-
      path: /api/environments/{environment_id}/session_recording_playlists/{short_id}/recordings/{session_recording_id}/
      operations:
      - name: environmentssessionrecordingplaylistsrecordingscreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: session_recording_id
          in: path
          type: string
          required: true
        - name: short_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentssessionrecordingplaylistsrecordingsdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: session_recording_id
          in: path
          type: string
          required: true
        - name: short_id
          in: path
          type: string
          required: true
    - name: api-environments-environment_id-session_recordings
      path: /api/environments/{environment_id}/session_recordings/
      operations:
      - name: environmentssessionrecordingslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
    - name: api-environments-environment_id-session_recordings-id
      path: /api/environments/{environment_id}/session_recordings/{id}/
      operations:
      - name: environmentssessionrecordingsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this session recording.
          required: true
      - name: environmentssessionrecordingsupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this session recording.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentssessionrecordingspartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this session recording.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentssessionrecordingsdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this session recording.
          required: true
    - name: api-environments-project_id-session_summaries-create_session_summaries_individua
      path: /api/environments/{project_id}/session_summaries/create_session_summaries_individually/
      operations:
      - name: createsessionsummariesindividually
        method: POST
        description: Generate AI individual summary for each session, without grouping.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-projects-project_id-session_recording_playlists
      path: /api/projects/{project_id}/session_recording_playlists/
      operations:
      - name: sessionrecordingplaylistslist
        method: GET
        description: Override list to include synthetic playlists
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: created_by
          in: query
          type: integer
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        - name: short_id
          in: query
          type: string
      - name: sessionrecordingplaylistscreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-projects-project_id-session_recording_playlists-short_id
      path: /api/projects/{project_id}/session_recording_playlists/{short_id}/
      operations:
      - name: sessionrecordingplaylistsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          required: true
      - name: sessionrecordingplaylistsupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: sessionrecordingplaylistspartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: sessionrecordingplaylistsdestroy
        method: DELETE
        description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          required: true
    - name: api-projects-project_id-session_recording_playlists-short_id-recordings
      path: /api/projects/{project_id}/session_recording_playlists/{short_id}/recordings/
      operations:
      - name: sessionrecordingplaylistsrecordingsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          required: true
    - name: api-projects-project_id-session_recording_playlists-short_id-recordings-session_
      path: /api/projects/{project_id}/session_recording_playlists/{short_id}/recordings/{session_recording_id}/
      operations:
      - name: sessionrecordingplaylistsrecordingscreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: session_recording_id
          in: path
          type: string
          required: true
        - name: short_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: sessionrecordingplaylistsrecordingsdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: session_recording_id
          in: path
          type: string
          required: true
        - name: short_id
          in: path
          type: string
          required: true
    - name: api-projects-project_id-session_recordings
      path: /api/projects/{project_id}/session_recordings/
      operations:
      - name: sessionrecordingslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
    - name: api-projects-project_id-session_recordings-id
      path: /api/projects/{project_id}/session_recordings/{id}/
      operations:
      - name: sessionrecordingsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this session recording.
          required: true
      - name: sessionrecordingsupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this session recording.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: sessionrecordingspartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this session recording.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: sessionrecordingsdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this session recording.
          required: true
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-replay-rest
    port: 8080
    description: REST adapter for PostHog API — replay. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/environments/{environment-id}/session-recording-playlists
      name: api-environments-environment-id-session-recording-playlists
      description: REST surface for api-environments-environment_id-session_recording_playlists.
      operations:
      - method: GET
        name: environmentssessionrecordingplaylistslist
        description: Override list to include synthetic playlists
        call: posthog-replay.environmentssessionrecordingplaylistslist
        with:
          created_by: rest.created_by
          limit: rest.limit
          offset: rest.offset
          short_id: rest.short_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: environmentssessionrecordingplaylistscreate
        description: environmentssessionrecordingplaylistscreate
        call: posthog-replay.environmentssessionrecordingplaylistscreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{environment-id}/session-recording-playlists/{short-id}
      name: api-environments-environment-id-session-recording-playlists-short-id
      description: REST surface for api-environments-environment_id-session_recording_playlists-short_id.
      operations:
      - method: GET
        name: environmentssessionrecordingplaylistsretrieve
        description: environmentssessionrecordingplaylistsretrieve
        call: posthog-replay.environmentssessionrecordingplaylistsretrieve
        with:
          short_id: rest.short_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: environmentssessionrecordingplaylistsupdate
        description: environmentssessionrecordingplaylistsupdate
        call: posthog-replay.environmentssessionrecordingplaylistsupdate
        with:
          short_id: rest.short_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: environmentssessionrecordingplaylistspartialupdate
        description: environmentssessionrecordingplaylistspartialupdate
        call: posthog-replay.environmentssessionrecordingplaylistspartialupdate
        with:
          short_id: rest.short_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: environmentssessionrecordingplaylistsdestroy
        description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
        call: posthog-replay.environmentssessionrecordingplaylistsdestroy
        with:
          short_id: rest.short_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{environment-id}/session-recording-playlists/{short-id}/recordings
      name: api-environments-environment-id-session-recording-playlists-short-id-recordings
      description: REST surface for api-environments-environment_id-session_recording_playlists-short_id-recordings.
      operations:
      - method: GET
        name: environmentssessionrecordingplaylistsrecordingsretrieve
        description: environmentssessionrecordingplaylistsrecordingsretrieve
        call: posthog-replay.environmentssessionrecordingplaylistsrecordingsretrieve
        with:
          short_id: rest.short_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{environment-id}/session-recording-playlists/{short-id}/recordings/{session-recording-id}
      name: api-environments-environment-id-session-recording-playlists-short-id-recordings
      description: REST surface for api-environments-environment_id-session_recording_playlists-short_id-recordings-.
      operations:
      - method: POST
        name: environmentssessionrecordingplaylistsrecordingscreate
        description: environmentssessionrecordingplaylistsrecordingscreate
        call: posthog-replay.environmentssessionrecordingplaylistsrecordingscreate
        with:
          session_recording_id: rest.session_recording_id
          short_id: rest.short_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: environmentssessionrecordingplaylistsrecordingsdestroy
        description: environmentssessionrecordingplaylistsrecordingsdestroy
        call: posthog-replay.environmentssessionrecordingplaylistsrecordingsdestroy
        with:
          session_recording_id: rest.session_recording_id
          short_id: rest.short_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{environment-id}/session-recordings
      name: api-environments-environment-id-session-recordings
      description: REST surface for api-environments-environment_id-session_recordings.
      operations:
      - method: GET
        name: environmentssessionrecordingslist
        description: environmentssessionrecordingslist
        call: posthog-replay.environmentssessionrecordingslist
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{environment-id}/session-recordings/{id}
      name: api-environments-environment-id-session-recordings-id
      description: REST surface for api-environments-environment_id-session_recordings-id.
      operations:
      - method: GET
        name: environmentssessionrecordingsretrieve
        description: environmentssessionrecordingsretrieve
        call: posthog-replay.environmentssessionrecordingsretrieve
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: environmentssessionrecordingsupdate
        description: environmentssessionrecordingsupdate
        call: posthog-replay.environmentssessionrecordingsupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: environmentssessionrecordingspartialupdate
        description: environmentssessionrecordingspartialupdate
        call: posthog-replay.environmentssessionrecordingspartialupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: environmentssessionrecordingsdestroy
        description: environmentssessionrecordingsdestroy
        call: posthog-replay.environmentssessionrecordingsdestroy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{project-id}/session-summaries/create-session-summaries-individually
      name: api-environments-project-id-session-summaries-create-session-summaries-individua
      description: REST surface for api-environments-project_id-session_summaries-create_session_summaries_individua.
      operations:
      - method: POST
        name: createsessionsummariesindividually
        description: Generate AI individual summary for each session, without grouping.
        call: posthog-replay.createsessionsummariesindividually
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/session-recording-playlists
      name: api-projects-project-id-session-recording-playlists
      description: REST surface for api-projects-project_id-session_recording_playlists.
      operations:
      - method: GET
        name: sessionrecordingplaylistslist
        description: Override list to include synthetic playlists
        call: posthog-replay.sessionrecordingplaylistslist
        with:
          created_by: rest.created_by
          limit: rest.limit
          offset: rest.offset
          short_id: rest.short_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: sessionrecordingplaylistscreate
        description: sessionrecordingplaylistscreate
        call: posthog-replay.sessionrecordingplaylistscreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/session-recording-playlists/{short-id}
      name: api-projects-project-id-session-recording-playlists-short-id
      description: REST surface for api-projects-project_id-session_recording_playlists-short_id.
      operations:
      - method: GET
        name: sessionrecordingplaylistsretrieve
        description: sessionrecordingplaylistsretrieve
        call: posthog-replay.sessionrecordingplaylistsretrieve
        with:
          short_id: rest.short_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: sessionrecordingplaylistsupdate
        description: sessionrecordingplaylistsupdate
        call: posthog-replay.sessionrecordingplaylistsupdate
        with:
          short_id: rest.short_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: sessionrecordingplaylistspartialupdate
        description: sessionrecordingplaylistspartialupdate
        call: posthog-replay.sessionrecordingplaylistspartialupdate
        with:
          short_id: rest.short_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: sessionrecordingplaylistsdestroy
        description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
        call: posthog-replay.sessionrecordingplaylistsdestroy
        with:
          short_id: rest.short_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/session-recording-playlists/{short-id}/recordings
      name: api-projects-project-id-session-recording-playlists-short-id-recordings
      description: REST surface for api-projects-project_id-session_recording_playlists-short_id-recordings.
      operations:
      - method: GET
        name: sessionrecordingplaylistsrecordingsretrieve
        description: sessionrecordingplaylistsrecordingsretrieve
        call: posthog-replay.sessionrecordingplaylistsrecordingsretrieve
        with:
          short_id: rest.short_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/session-recording-playlists/{short-id}/recordings/{session-recording-id}
      name: api-projects-project-id-session-recording-playlists-short-id-recordings-session
      description: REST surface for api-projects-project_id-session_recording_playlists-short_id-recordings-session_.
      operations:
      - method: POST
        name: sessionrecordingplaylistsrecordingscreate
        description: sessionrecordingplaylistsrecordingscreate
        call: posthog-replay.sessionrecordingplaylistsrecordingscreate
        with:
          session_recording_id: rest.session_recording_id
          short_id: rest.short_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: sessionrecordingplaylistsrecordingsdestroy
        description: sessionrecordingplaylistsrecordingsdestroy
        call: posthog-replay.sessionrecordingplaylistsrecordingsdestroy
        with:
          session_recording_id: rest.session_recording_id
          short_id: rest.short_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/session-recordings
      name: api-projects-project-id-session-recordings
      description: REST surface for api-projects-project_id-session_recordings.
      operations:
      - method: GET
        name: sessionrecordingslist
        description: sessionrecordingslist
        call: posthog-replay.sessionrecordingslist
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/session-recordings/{id}
      name: api-projects-project-id-session-recordings-id
      description: REST surface for api-projects-project_id-session_recordings-id.
      operations:
      - method: GET
        name: sessionrecordingsretrieve
        description: sessionrecordingsretrieve
        call: posthog-replay.sessionrecordingsretrieve
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: sessionrecordingsupdate
        description: sessionrecordingsupdate
        call: posthog-replay.sessionrecordingsupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: sessionrecordingspartialupdate
        description: sessionrecordingspartialupdate
        call: posthog-replay.sessionrecordingspartialupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: sessionrecordingsdestroy
        description: sessionrecordingsdestroy
        call: posthog-replay.sessionrecordingsdestroy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: posthog-replay-mcp
    port: 9090
    transport: http
    description: MCP adapter for PostHog API — replay. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: override-list-include-synthetic-playlists
      description: Override list to include synthetic playlists
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-replay.environmentssessionrecordingplaylistslist
      with:
        created_by: tools.created_by
        limit: tools.limit
        offset: tools.offset
        short_id: tools.short_id
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentssessionrecordingplaylistscreate
      description: environmentssessionrecordingplaylistscreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-replay.environmentssessionrecordingplaylistscreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentssessionrecordingplaylistsretrieve
      description: environmentssessionrecordingplaylistsretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-replay.environmentssessionrecordingplaylistsretrieve
      with:
        short_id: tools.short_id
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentssessionrecordingplaylistsupdate
      description: environmentssessionrecordingplaylistsupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-replay.environmentssessionrecordingplaylistsupdate
      with:
        short_id: tools.short_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentssessionrecordingplaylistspartialupdate
      description: environmentssessionrecordingplaylistspartialupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-replay.environmentssessionrecordingplaylistspartialupdate
      with:
        short_id: tools.short_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hard-delete-this-model-is
      description: Hard delete of this model

# --- truncated at 32 KB (41 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/capabilities/posthog-replay.yaml