PostHog replay API

The replay API from PostHog — 13 operation(s) for replay.

OpenAPI Specification

posthog-replay-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: PostHog actions replay API
  version: 1.0.0
  description: ''
tags:
- name: replay
paths:
  /api/environments/{environment_id}/session_recording_playlists/:
    get:
      operationId: environments_session_recording_playlists_list
      description: Override list to include synthetic playlists
      parameters:
      - in: query
        name: created_by
        schema:
          type: integer
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - in: query
        name: short_id
        schema:
          type: string
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedSessionRecordingPlaylistList'
          description: ''
      deprecated: true
      x-explicit-tags:
      - replay
    post:
      operationId: environments_session_recording_playlists_create
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecordingPlaylist'
          description: ''
      deprecated: true
      x-explicit-tags:
      - replay
  /api/environments/{environment_id}/session_recording_playlists/{short_id}/:
    get:
      operationId: environments_session_recording_playlists_retrieve
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecordingPlaylist'
          description: ''
      deprecated: true
      x-explicit-tags:
      - replay
    put:
      operationId: environments_session_recording_playlists_update
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecordingPlaylist'
          description: ''
      deprecated: true
      x-explicit-tags:
      - replay
    patch:
      operationId: environments_session_recording_playlists_partial_update
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecordingPlaylist'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecordingPlaylist'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecordingPlaylist'
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecordingPlaylist'
          description: ''
      deprecated: true
      x-explicit-tags:
      - replay
    delete:
      operationId: environments_session_recording_playlists_destroy
      description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:write
      responses:
        '405':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - replay
  /api/environments/{environment_id}/session_recording_playlists/{short_id}/recordings/:
    get:
      operationId: environments_session_recording_playlists_recordings_retrieve
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:read
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - replay
  /api/environments/{environment_id}/session_recording_playlists/{short_id}/recordings/{session_recording_id}/:
    post:
      operationId: environments_session_recording_playlists_recordings_create
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: session_recording_id
        schema:
          type: string
        required: true
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - replay
    delete:
      operationId: environments_session_recording_playlists_recordings_destroy
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: session_recording_id
        schema:
          type: string
        required: true
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      responses:
        '204':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - replay
  /api/environments/{environment_id}/session_recordings/:
    get:
      operationId: environments_session_recordings_list
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedSessionRecordingList'
          description: ''
      deprecated: true
      x-explicit-tags:
      - replay
  /api/environments/{environment_id}/session_recordings/{id}/:
    get:
      operationId: environments_session_recordings_retrieve
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this session recording.
        required: true
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecording'
          description: ''
      deprecated: true
      x-explicit-tags:
      - replay
    put:
      operationId: environments_session_recordings_update
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this session recording.
        required: true
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionRecording'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SessionRecording'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SessionRecording'
      security:
      - PersonalAPIKeyAuth:
        - session_recording:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecording'
          description: ''
      deprecated: true
      x-explicit-tags:
      - replay
    patch:
      operationId: environments_session_recordings_partial_update
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this session recording.
        required: true
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecording'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecording'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecording'
      security:
      - PersonalAPIKeyAuth:
        - session_recording:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecording'
          description: ''
      deprecated: true
      x-explicit-tags:
      - replay
    delete:
      operationId: environments_session_recordings_destroy
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this session recording.
        required: true
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording:write
      responses:
        '204':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - replay
  /api/environments/{project_id}/session_summaries/create_session_summaries_individually/:
    post:
      operationId: create_session_summaries_individually
      description: Generate AI individual summary for each session, without grouping.
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionSummaries'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SessionSummaries'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SessionSummaries'
        required: true
      security:
      - PersonalAPIKeyAuth:
        - session_recording:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionSummaries'
          description: ''
      x-explicit-tags:
      - replay
  /api/projects/{project_id}/session_recording_playlists/:
    get:
      operationId: session_recording_playlists_list
      description: Override list to include synthetic playlists
      parameters:
      - in: query
        name: created_by
        schema:
          type: integer
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: query
        name: short_id
        schema:
          type: string
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedSessionRecordingPlaylistList'
          description: ''
      x-explicit-tags:
      - replay
    post:
      operationId: session_recording_playlists_create
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecordingPlaylist'
          description: ''
      x-explicit-tags:
      - replay
  /api/projects/{project_id}/session_recording_playlists/{short_id}/:
    get:
      operationId: session_recording_playlists_retrieve
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecordingPlaylist'
          description: ''
      x-explicit-tags:
      - replay
    put:
      operationId: session_recording_playlists_update
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecordingPlaylist'
          description: ''
      x-explicit-tags:
      - replay
    patch:
      operationId: session_recording_playlists_partial_update
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecordingPlaylist'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecordingPlaylist'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecordingPlaylist'
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecordingPlaylist'
          description: ''
      x-explicit-tags:
      - replay
    delete:
      operationId: session_recording_playlists_destroy
      description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:write
      responses:
        '405':
          description: No response body
      x-explicit-tags:
      - replay
  /api/projects/{project_id}/session_recording_playlists/{short_id}/recordings/:
    get:
      operationId: session_recording_playlists_recordings_retrieve
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording_playlist:read
      responses:
        '200':
          description: No response body
      x-explicit-tags:
      - replay
  /api/projects/{project_id}/session_recording_playlists/{short_id}/recordings/{session_recording_id}/:
    post:
      operationId: session_recording_playlists_recordings_create
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: session_recording_id
        schema:
          type: string
        required: true
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SessionRecordingPlaylist'
      responses:
        '200':
          description: No response body
      x-explicit-tags:
      - replay
    delete:
      operationId: session_recording_playlists_recordings_destroy
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: path
        name: session_recording_id
        schema:
          type: string
        required: true
      - in: path
        name: short_id
        schema:
          type: string
        required: true
      tags:
      - replay
      responses:
        '204':
          description: No response body
      x-explicit-tags:
      - replay
  /api/projects/{project_id}/session_recordings/:
    get:
      operationId: session_recordings_list
      parameters:
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedSessionRecordingList'
          description: ''
      x-explicit-tags:
      - replay
  /api/projects/{project_id}/session_recordings/{id}/:
    get:
      operationId: session_recordings_retrieve
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this session recording.
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecording'
          description: ''
      x-explicit-tags:
      - replay
    put:
      operationId: session_recordings_update
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this session recording.
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionRecording'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SessionRecording'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SessionRecording'
      security:
      - PersonalAPIKeyAuth:
        - session_recording:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecording'
          description: ''
      x-explicit-tags:
      - replay
    patch:
      operationId: session_recordings_partial_update
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this session recording.
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - replay
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecording'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecording'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedSessionRecording'
      security:
      - PersonalAPIKeyAuth:
        - session_recording:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionRecording'
          description: ''
      x-explicit-tags:
      - replay
    delete:
      operationId: session_recordings_destroy
      parameters:
      - in: path
        name: id
        schema:
          type: string
          format: uuid
        description: A UUID string identifying this session recording.
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - replay
      security:
      - PersonalAPIKeyAuth:
        - session_recording:write
      responses:
        '204':
          description: No response body
      x-explicit-tags:
      - replay
components:
  schemas:
    SessionSummaries:
      type: object
      properties:
        session_ids:
          type: array
          items:
            type: string
          description: List of session IDs to summarize (max 300)
          maxItems: 300
          minItems: 1
        focus_area:
          type: string
          description: Optional focus area for the summarization
          maxLength: 500
      required:
      - session_ids
    SessionRecordingPlaylistTypeEnum:
      enum:
      - collection
      - filters
      type: string
      description: '* `collection` - Collection

        * `filters` - Filters'
    BlankEnum:
      enum:
      - ''
    PaginatedSessionRecordingPlaylistList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?offset=400&limit=100
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?offset=200&limit=100
        results:
          type: array
          items:
            $ref: '#/components/schemas/SessionRecordingPlaylist'
    PatchedSessionRecording:
      type: object
      properties:
        id:
          type: string
          readOnly: true
        distinct_id:
          type: string
          readOnly: true
          nullable: true
        viewed:
          type: boolean
          readOnly: true
        viewers:
          type: array
          items:
            type: string
          readOnly: true
        recording_duration:
          type: integer
          readOnly: true
        active_seconds:
          type: integer
          readOnly: true
          nullable: true
        inactive_seconds:
          type: integer
          readOnly: true
          nullable: true
        start_time:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        end_time:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        click_count:
          type: integer
          readOnly: true
          nullable: true
        keypress_count:
          type: integer
          readOnly: true
          nullable: true
        mouse_activity_count:
          type: integer
          readOnly: true
          nullable: true
        console_log_count:
          type: integer
          readOnly: true
          nullable: true
        console_warn_count:
          type: integer
          readOnly: true
          nullable: true
        console_error_count:
          type: integer
          readOnly: true
          nullable: true
        start_url:
          type: string
          readOnly: true
          nullable: true
        person:
          $ref: '#/components/schemas/MinimalPerson'
        retention_period_days:
          type: integer
          readOnly: true
          nullable: true
        expiry_time:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        recording_ttl:
          type: integer
          readOnly: true
          nullable: true
        snapshot_source:
          type: string
          nullable: true
          readOnly: true
        snapshot_library:
          type: string
          nullable: true
          readOnly: true
        ongoing:
          type: boolean
          readOnly: true
        activity_score:
          type: number
          format: double
          nullable: true
          readOnly: true
        has_summary:
          type: boolean
          readOnly: true
        summary_outcome:
          allOf:
          - $ref: '#/components/schemas/Outcome'
          nullable: true
          readOnly: true
        external_references:
          type: array
          items:
            type: object
            additionalProperties: true
          description: Load external references (linked issues) for this recording
          readOnly: true
    NullEnum:
      enum:
      - null
    UserBasic:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        uuid:
          type: string
          format: uuid
          readOnly: true
        distinct_id:
          type: string
          nullable: true
          maxLength: 200
        first_name:
          type: string
          maxLength: 150
        last_name:
          type: string
          maxLength: 150
        email:
          type: string
          format: email
          title: Email address
          maxLength: 254
        is_email_verified:
          type: boolean
          nullable: true
        hedgehog_config:
          type: object
          additionalProperties: true
          nullable: true
          readOnly: true
        role_at_organization:
          nullable: true
          oneOf:
          - $ref: '#/components/schemas/RoleAtOrganizationEnum'
          - $ref: '#/components/schemas/BlankEnum'
          - $ref: '#/components/schemas/NullEnum'
      required:
      - email
      - hedgehog_config
      - id
      - uuid
    MinimalPerson:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
          description: Numeric person ID.
        name:
          type: string
          readOnly: true
          description: Display name derived from person properties (email, name, or username).
        distinct_ids:
          type: array
          items:
            type: string
          readOnly: true
        properties:
          description: Key-value map of person properties set via $set and $set_once operations.
        created_at:
          type: string
          format: date-time
          readOnly: true
          description: When this person was first seen (ISO 8601).
        uuid:
          type: string
          format: uuid
          readOnly: true
          description: Unique identifier (UUID) for this person.
        last_seen_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: Timestamp of the last event from this person, or null.
      required:
      - created_at
      - distinct_ids
      - id
      - last_seen_at
      - name
      - uuid
    RoleAtOrganizationEnum:
      enum:
      - engineering
      - data
      - product
      - founder
      - leadership
      - marketing
      - sales
      - other
      type: string
      description: '* `engineering` - Engineering

        * `data` - Data

        * `product` - Product Management

        * `founder` - Founder

        * `leadership` - Leadership

        * `marketing` - Marketing

        * `sales` - Sales / Success

        * `other` - Other'
    PatchedSessionRecordingPlaylist:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        short_id:
          type: string
          readOnly: true
        name:
          type: string
          nullable: true
          description: Human-readable name for the playlist.
          maxLength: 400
        derived_name:
          type: string
          nullable: true
          maxLength: 400
        description:
          type: string
          description: Optional description of the playlist's purpose or contents.
        pinned:
          type: boolean
          description: Whether this playlist is pinned to the top of the list.
        created_at:
          type: string
          format: date-time
          readOnly: true
        created_by:
          allOf:
          - $ref: '#/components/schemas/UserBasic'
          readOnly: true
        deleted:
          type: boolean
          description: Set to true to soft-delete the playlist.
        filters:
          description: JSON object with recording filter criter

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