PostHog · Capability

PostHog API — visual_review

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

Run with Naftiko Posthogvisual_review

What You Can Do

GET
Visualreviewreposlist — List all projects for the team.
/v1/api/projects/{project-id}/visual-review/repos
GET
Visualreviewreposlist — List all projects for the team.
/v1/api/projects/{project-id}/visual-review/repos
POST
Visualreviewreposcreate — Create a new repo.
/v1/api/projects/{project-id}/visual-review/repos
POST
Visualreviewreposcreate — Create a new repo.
/v1/api/projects/{project-id}/visual-review/repos
GET
Visualreviewreposretrieve — Get a repo by ID.
/v1/api/projects/{project-id}/visual-review/repos/{id}
GET
Visualreviewreposretrieve — Get a repo by ID.
/v1/api/projects/{project-id}/visual-review/repos/{id}
PATCH
Visualreviewrepospartialupdate — Update a repo's settings.
/v1/api/projects/{project-id}/visual-review/repos/{id}
PATCH
Visualreviewrepospartialupdate — Update a repo's settings.
/v1/api/projects/{project-id}/visual-review/repos/{id}
GET
Visualreviewreposbaselinesretrieve — Snapshots overview for a repo: every identifier with a current baseline (latest non-superseded master/main run per run_type), plus tolerate counts, active quarantine state, and a 30-day stability sparkline. Capped at 5000 entries — sets `tr
/v1/api/projects/{project-id}/visual-review/repos/{id}/baselines
GET
Visualreviewreposbaselinesretrieve — Snapshots overview for a repo: every identifier with a current baseline (latest non-superseded master/main run per run_type), plus tolerate counts, active quarantine state, and a 30-day stability sparkline. Capped at 5000 entries — sets `tr
/v1/api/projects/{project-id}/visual-review/repos/{id}/baselines
GET
Visualreviewreposquarantinelist — List quarantined identifiers. Without filter: active only. With identifier: full history.
/v1/api/projects/{project-id}/visual-review/repos/{id}/quarantine
GET
Visualreviewreposquarantinelist — List quarantined identifiers. Without filter: active only. With identifier: full history.
/v1/api/projects/{project-id}/visual-review/repos/{id}/quarantine
POST
Visualreviewreposquarantinecreate — Quarantine a snapshot identifier for a specific run type.
/v1/api/projects/{project-id}/visual-review/repos/{id}/quarantine/{run-type}
POST
Visualreviewreposquarantinecreate — Quarantine a snapshot identifier for a specific run type.
/v1/api/projects/{project-id}/visual-review/repos/{id}/quarantine/{run-type}
POST
Visualreviewreposquarantineexpirecreate — Expire all active quarantine entries for an identifier.
/v1/api/projects/{project-id}/visual-review/repos/{id}/quarantine/{run-type}/expire
POST
Visualreviewreposquarantineexpirecreate — Expire all active quarantine entries for an identifier.
/v1/api/projects/{project-id}/visual-review/repos/{id}/quarantine/{run-type}/expire
GET
Visualreviewreposthumbnailsretrieve — Serve a snapshot thumbnail by identifier. Returns WebP with ETag caching.
/v1/api/projects/{project-id}/visual-review/repos/{id}/thumbnails/{identifier}
GET
Visualreviewreposthumbnailsretrieve — Serve a snapshot thumbnail by identifier. Returns WebP with ETag caching.
/v1/api/projects/{project-id}/visual-review/repos/{id}/thumbnails/{identifier}
GET
Visualreviewreposrunslist — List runs in this repo, optionally filtered by review state.
/v1/api/projects/{project-id}/visual-review/repos/{repo-id}/runs
GET
Visualreviewreposrunslist — List runs in this repo, optionally filtered by review state.
/v1/api/projects/{project-id}/visual-review/repos/{repo-id}/runs
GET
Visualreviewreposrunscountsretrieve — Review state counts for runs in this repo.
/v1/api/projects/{project-id}/visual-review/repos/{repo-id}/runs/counts
GET
Visualreviewreposrunscountsretrieve — Review state counts for runs in this repo.
/v1/api/projects/{project-id}/visual-review/repos/{repo-id}/runs/counts
GET
Visualreviewrepossnapshotslist — Deduped baseline timeline for a snapshot identity. Newest first.
/v1/api/projects/{project-id}/visual-review/repos/{repo-id}/snapshots/{run-type}/{identifier}
GET
Visualreviewrepossnapshotslist — Deduped baseline timeline for a snapshot identity. Newest first.
/v1/api/projects/{project-id}/visual-review/repos/{repo-id}/snapshots/{run-type}/{identifier}
GET
Visualreviewrunslist — List runs for the team, optionally filtered by review state, PR number, commit SHA, or branch.
/v1/api/projects/{project-id}/visual-review/runs
GET
Visualreviewrunslist — List runs for the team, optionally filtered by review state, PR number, commit SHA, or branch.
/v1/api/projects/{project-id}/visual-review/runs
POST
Visualreviewrunscreate — Create a new run from a CI manifest.
/v1/api/projects/{project-id}/visual-review/runs
POST
Visualreviewrunscreate — Create a new run from a CI manifest.
/v1/api/projects/{project-id}/visual-review/runs
GET
Visualreviewrunscountsretrieve — Review state counts for the runs list.
/v1/api/projects/{project-id}/visual-review/runs/counts
GET
Visualreviewrunscountsretrieve — Review state counts for the runs list.
/v1/api/projects/{project-id}/visual-review/runs/counts
GET
Visualreviewrunsretrieve — Get run status and summary.
/v1/api/projects/{project-id}/visual-review/runs/{id}
GET
Visualreviewrunsretrieve — Get run status and summary.
/v1/api/projects/{project-id}/visual-review/runs/{id}
POST
Visualreviewrunsaddsnapshotscreate — Add a batch of snapshots to a pending run (shard-based flow).
/v1/api/projects/{project-id}/visual-review/runs/{id}/add-snapshots
POST
Visualreviewrunsaddsnapshotscreate — Add a batch of snapshots to a pending run (shard-based flow).
/v1/api/projects/{project-id}/visual-review/runs/{id}/add-snapshots
POST
Visualreviewrunsapprovecreate — Approve visual changes for snapshots in this run.
/v1/api/projects/{project-id}/visual-review/runs/{id}/approve
POST
Visualreviewrunsapprovecreate — Approve visual changes for snapshots in this run.
/v1/api/projects/{project-id}/visual-review/runs/{id}/approve
POST
Visualreviewrunsautoapprovecreate — CLI auto-approve: approve all and return baseline YAML for local write.
/v1/api/projects/{project-id}/visual-review/runs/{id}/auto-approve
POST
Visualreviewrunsautoapprovecreate — CLI auto-approve: approve all and return baseline YAML for local write.
/v1/api/projects/{project-id}/visual-review/runs/{id}/auto-approve
POST
Visualreviewrunscompletecreate — Complete a run: detect removals, verify uploads, trigger diff processing.
/v1/api/projects/{project-id}/visual-review/runs/{id}/complete
POST
Visualreviewrunscompletecreate — Complete a run: detect removals, verify uploads, trigger diff processing.
/v1/api/projects/{project-id}/visual-review/runs/{id}/complete
POST
Visualreviewrunsrecomputecreate — Re-evaluate quarantine and counts, update commit status, and optionally rerun the CI job.
/v1/api/projects/{project-id}/visual-review/runs/{id}/recompute
POST
Visualreviewrunsrecomputecreate — Re-evaluate quarantine and counts, update commit status, and optionally rerun the CI job.
/v1/api/projects/{project-id}/visual-review/runs/{id}/recompute
GET
Visualreviewrunssnapshothistorylist — Recent change history for a snapshot identifier across runs.
/v1/api/projects/{project-id}/visual-review/runs/{id}/snapshot-history
GET
Visualreviewrunssnapshothistorylist — Recent change history for a snapshot identifier across runs.
/v1/api/projects/{project-id}/visual-review/runs/{id}/snapshot-history
GET
Visualreviewrunssnapshotslist — Get all snapshots for a run with diff results.
/v1/api/projects/{project-id}/visual-review/runs/{id}/snapshots
GET
Visualreviewrunssnapshotslist — Get all snapshots for a run with diff results.
/v1/api/projects/{project-id}/visual-review/runs/{id}/snapshots
POST
Visualreviewrunstoleratecreate — Mark a changed snapshot as a known tolerated alternate.
/v1/api/projects/{project-id}/visual-review/runs/{id}/tolerate
POST
Visualreviewrunstoleratecreate — Mark a changed snapshot as a known tolerated alternate.
/v1/api/projects/{project-id}/visual-review/runs/{id}/tolerate
GET
Visualreviewrunstoleratedhasheslist — List known tolerated hashes for a snapshot identifier.
/v1/api/projects/{project-id}/visual-review/runs/{id}/tolerated-hashes
GET
Visualreviewrunstoleratedhasheslist — List known tolerated hashes for a snapshot identifier.
/v1/api/projects/{project-id}/visual-review/runs/{id}/tolerated-hashes

MCP Tools

list-all-projects-team

List all projects for the team.

read-only idempotent
list-all-projects-team-2

List all projects for the team.

read-only idempotent
create-new-repo

Create a new repo.

create-new-repo-2

Create a new repo.

get-repo-id

Get a repo by ID.

read-only idempotent
get-repo-id-2

Get a repo by ID.

read-only idempotent
update-repo-s-settings

Update a repo's settings.

idempotent
update-repo-s-settings-2

Update a repo's settings.

idempotent
snapshots-overview-repo-every-identifier

Snapshots overview for a repo: every identifier with a current baseline (latest non-superseded master/main run per run_type), plus tolerate counts, active quarantine state, and a 30-day stability sparkline. Capped at 5000 entries — sets `tr

read-only idempotent
snapshots-overview-repo-every-identifier-2

Snapshots overview for a repo: every identifier with a current baseline (latest non-superseded master/main run per run_type), plus tolerate counts, active quarantine state, and a 30-day stability sparkline. Capped at 5000 entries — sets `tr

read-only idempotent
list-quarantined-identifiers-without-filter

List quarantined identifiers. Without filter: active only. With identifier: full history.

read-only idempotent
list-quarantined-identifiers-without-filter-2

List quarantined identifiers. Without filter: active only. With identifier: full history.

read-only idempotent
quarantine-snapshot-identifier-specific-run

Quarantine a snapshot identifier for a specific run type.

quarantine-snapshot-identifier-specific-run-2

Quarantine a snapshot identifier for a specific run type.

expire-all-active-quarantine-entries

Expire all active quarantine entries for an identifier.

expire-all-active-quarantine-entries-2

Expire all active quarantine entries for an identifier.

serve-snapshot-thumbnail-identifier-returns

Serve a snapshot thumbnail by identifier. Returns WebP with ETag caching.

read-only idempotent
serve-snapshot-thumbnail-identifier-returns-2

Serve a snapshot thumbnail by identifier. Returns WebP with ETag caching.

read-only idempotent
list-runs-this-repo-optionally

List runs in this repo, optionally filtered by review state.

read-only idempotent
list-runs-this-repo-optionally-2

List runs in this repo, optionally filtered by review state.

read-only idempotent
review-state-counts-runs-this

Review state counts for runs in this repo.

read-only idempotent
review-state-counts-runs-this-2

Review state counts for runs in this repo.

read-only idempotent
deduped-baseline-timeline-snapshot-identity

Deduped baseline timeline for a snapshot identity. Newest first.

read-only idempotent
deduped-baseline-timeline-snapshot-identity-2

Deduped baseline timeline for a snapshot identity. Newest first.

read-only idempotent
list-runs-team-optionally-filtered

List runs for the team, optionally filtered by review state, PR number, commit SHA, or branch.

read-only idempotent
list-runs-team-optionally-filtered-2

List runs for the team, optionally filtered by review state, PR number, commit SHA, or branch.

read-only idempotent
create-new-run-ci-manifest

Create a new run from a CI manifest.

create-new-run-ci-manifest-2

Create a new run from a CI manifest.

review-state-counts-runs-list

Review state counts for the runs list.

read-only idempotent
review-state-counts-runs-list-2

Review state counts for the runs list.

read-only idempotent
get-run-status-and-summary

Get run status and summary.

read-only idempotent
get-run-status-and-summary-2

Get run status and summary.

read-only idempotent
add-batch-snapshots-pending-run

Add a batch of snapshots to a pending run (shard-based flow).

add-batch-snapshots-pending-run-2

Add a batch of snapshots to a pending run (shard-based flow).

approve-visual-changes-snapshots-this

Approve visual changes for snapshots in this run.

approve-visual-changes-snapshots-this-2

Approve visual changes for snapshots in this run.

cli-auto-approve-approve-all

CLI auto-approve: approve all and return baseline YAML for local write.

cli-auto-approve-approve-all-2

CLI auto-approve: approve all and return baseline YAML for local write.

complete-run-detect-removals-verify

Complete a run: detect removals, verify uploads, trigger diff processing.

complete-run-detect-removals-verify-2

Complete a run: detect removals, verify uploads, trigger diff processing.

re-evaluate-quarantine-and-counts

Re-evaluate quarantine and counts, update commit status, and optionally rerun the CI job.

re-evaluate-quarantine-and-counts-2

Re-evaluate quarantine and counts, update commit status, and optionally rerun the CI job.

recent-change-history-snapshot-identifier

Recent change history for a snapshot identifier across runs.

read-only idempotent
recent-change-history-snapshot-identifier-2

Recent change history for a snapshot identifier across runs.

read-only idempotent
get-all-snapshots-run-diff

Get all snapshots for a run with diff results.

read-only idempotent
get-all-snapshots-run-diff-2

Get all snapshots for a run with diff results.

read-only idempotent
mark-changed-snapshot-known-tolerated

Mark a changed snapshot as a known tolerated alternate.

mark-changed-snapshot-known-tolerated-2

Mark a changed snapshot as a known tolerated alternate.

list-known-tolerated-hashes-snapshot

List known tolerated hashes for a snapshot identifier.

read-only idempotent
list-known-tolerated-hashes-snapshot-2

List known tolerated hashes for a snapshot identifier.

read-only idempotent

Capability Spec

posthog-visual-review.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — visual_review
  description: 'PostHog API — visual_review. 50 operations. Lead operation: visual_review. Self-contained Naftiko capability
    covering one Posthog business surface.'
  tags:
  - Posthog
  - visual_review
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-visual-review
    baseUri: ''
    description: PostHog API — visual_review business capability. Self-contained, no shared references.
    resources:
    - name: api-projects-project_id-visual_review-repos
      path: /api/projects/{project_id}/visual_review/repos/
      operations:
      - name: visualreviewreposlist
        method: GET
        description: List all projects for the team.
        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: visualreviewreposlist
        method: GET
        description: List all projects for the team.
        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: visualreviewreposcreate
        method: POST
        description: Create a new repo.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: visualreviewreposcreate
        method: POST
        description: Create a new repo.
        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-visual_review-repos-id
      path: /api/projects/{project_id}/visual_review/repos/{id}/
      operations:
      - name: visualreviewreposretrieve
        method: GET
        description: Get a repo by ID.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: visualreviewreposretrieve
        method: GET
        description: Get a repo by ID.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: visualreviewrepospartialupdate
        method: PATCH
        description: Update a repo's settings.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: visualreviewrepospartialupdate
        method: PATCH
        description: Update a repo's settings.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-projects-project_id-visual_review-repos-id-baselines
      path: /api/projects/{project_id}/visual_review/repos/{id}/baselines/
      operations:
      - name: visualreviewreposbaselinesretrieve
        method: GET
        description: 'Snapshots overview for a repo: every identifier with a current baseline (latest non-superseded master/main
          run per run_type), plus tolerate counts, active quarantine state, and a 30-day stability sparkline. Capped at 5000
          entries — sets `tr'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: visualreviewreposbaselinesretrieve
        method: GET
        description: 'Snapshots overview for a repo: every identifier with a current baseline (latest non-superseded master/main
          run per run_type), plus tolerate counts, active quarantine state, and a 30-day stability sparkline. Capped at 5000
          entries — sets `tr'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: api-projects-project_id-visual_review-repos-id-quarantine
      path: /api/projects/{project_id}/visual_review/repos/{id}/quarantine/
      operations:
      - name: visualreviewreposquarantinelist
        method: GET
        description: 'List quarantined identifiers. Without filter: active only. With identifier: full history.'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: identifier
          in: query
          type: string
          description: Filter by identifier (returns full history)
        - 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: run_type
          in: query
          type: string
          description: Filter by run type
      - name: visualreviewreposquarantinelist
        method: GET
        description: 'List quarantined identifiers. Without filter: active only. With identifier: full history.'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: identifier
          in: query
          type: string
          description: Filter by identifier (returns full history)
        - 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: run_type
          in: query
          type: string
          description: Filter by run type
    - name: api-projects-project_id-visual_review-repos-id-quarantine-run_type
      path: /api/projects/{project_id}/visual_review/repos/{id}/quarantine/{run_type}/
      operations:
      - name: visualreviewreposquarantinecreate
        method: POST
        description: Quarantine a snapshot identifier for a specific run type.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: run_type
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: visualreviewreposquarantinecreate
        method: POST
        description: Quarantine a snapshot identifier for a specific run type.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: run_type
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-projects-project_id-visual_review-repos-id-quarantine-run_type-expire
      path: /api/projects/{project_id}/visual_review/repos/{id}/quarantine/{run_type}/expire/
      operations:
      - name: visualreviewreposquarantineexpirecreate
        method: POST
        description: Expire all active quarantine entries for an identifier.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: run_type
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: visualreviewreposquarantineexpirecreate
        method: POST
        description: Expire all active quarantine entries for an identifier.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: run_type
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-projects-project_id-visual_review-repos-id-thumbnails-identifier
      path: /api/projects/{project_id}/visual_review/repos/{id}/thumbnails/{identifier}/
      operations:
      - name: visualreviewreposthumbnailsretrieve
        method: GET
        description: Serve a snapshot thumbnail by identifier. Returns WebP with ETag caching.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: identifier
          in: path
          type: string
          required: true
      - name: visualreviewreposthumbnailsretrieve
        method: GET
        description: Serve a snapshot thumbnail by identifier. Returns WebP with ETag caching.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: identifier
          in: path
          type: string
          required: true
    - name: api-projects-project_id-visual_review-repos-repo_id-runs
      path: /api/projects/{project_id}/visual_review/repos/{repo_id}/runs/
      operations:
      - name: visualreviewreposrunslist
        method: GET
        description: List runs in this repo, optionally filtered by review state.
        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: repo_id
          in: path
          type: string
          required: true
        - name: review_state
          in: query
          type: string
          description: Filter by review state
      - name: visualreviewreposrunslist
        method: GET
        description: List runs in this repo, optionally filtered by review state.
        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: repo_id
          in: path
          type: string
          required: true
        - name: review_state
          in: query
          type: string
          description: Filter by review state
    - name: api-projects-project_id-visual_review-repos-repo_id-runs-counts
      path: /api/projects/{project_id}/visual_review/repos/{repo_id}/runs/counts/
      operations:
      - name: visualreviewreposrunscountsretrieve
        method: GET
        description: Review state counts for runs in this repo.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repo_id
          in: path
          type: string
          required: true
      - name: visualreviewreposrunscountsretrieve
        method: GET
        description: Review state counts for runs in this repo.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repo_id
          in: path
          type: string
          required: true
    - name: api-projects-project_id-visual_review-repos-repo_id-snapshots-run_type-identifie
      path: /api/projects/{project_id}/visual_review/repos/{repo_id}/snapshots/{run_type}/{identifier}/
      operations:
      - name: visualreviewrepossnapshotslist
        method: GET
        description: Deduped baseline timeline for a snapshot identity. Newest first.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: identifier
          in: path
          type: string
          description: Snapshot identifier; clients must percent-encode before sending
          required: true
        - 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: repo_id
          in: path
          type: string
          required: true
        - name: run_type
          in: path
          type: string
          description: Run type (storybook, playwright)
          required: true
      - name: visualreviewrepossnapshotslist
        method: GET
        description: Deduped baseline timeline for a snapshot identity. Newest first.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: identifier
          in: path
          type: string
          description: Snapshot identifier; clients must percent-encode before sending
          required: true
        - 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: repo_id
          in: path
          type: string
          required: true
        - name: run_type
          in: path
          type: string
          description: Run type (storybook, playwright)
          required: true
    - name: api-projects-project_id-visual_review-runs
      path: /api/projects/{project_id}/visual_review/runs/
      operations:
      - name: visualreviewrunslist
        method: GET
        description: List runs for the team, optionally filtered by review state, PR number, commit SHA, or branch.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: branch
          in: query
          type: string
          description: Filter by branch name
        - name: commit_sha
          in: query
          type: string
          description: Filter by full commit SHA
        - 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: pr_number
          in: query
          type: integer
          description: Filter by GitHub PR number
        - name: review_state
          in: query
          type: string
          description: Filter by review state
      - name: visualreviewrunslist
        method: GET
        description: List runs for the team, optionally filtered by review state, PR number, commit SHA, or branch.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: branch
          in: query
          type: string
          description: Filter by branch name
        - name: commit_sha
          in: query
          type: string
          description: Filter by full commit SHA
        - 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: pr_number
          in: query
          type: integer
          description: Filter by GitHub PR number
        - name: review_state
          in: query
          type: string
          description: Filter by review state
      - name: visualreviewrunscreate
        method: POST
        description: Create a new run from a CI manifest.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: visualreviewrunscreate
        method: POST
        description: Create a new run from a CI manifest.
        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-visual_review-runs-counts
      path: /api/projects/{project_id}/visual_review/runs/counts/
      operations:
      - name: visualreviewrunscountsretrieve
        method: GET
        description: Review state counts for the runs list.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: visualreviewrunscountsretrieve
        method: GET
        description: Review state counts for the runs list.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-projects-project_id-visual_review-runs-id
      path: /api/projects/{project_id}/visual_review/runs/{id}/
      operations:
      - name: visualreviewrunsretrieve
        method: GET
        description: Get run status and summary.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: visualreviewrunsretrieve
        method: GET
        description: Get run status and summary.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: api-projects-project_id-visual_review-runs-id-add-snapshots
      path: /api/projects/{project_id}/visual_review/runs/{id}/add-snapshots/
      operations:
      - name: visualreviewrunsaddsnapshotscreate
        method: POST
        description: Add a batch of snapshots to a pending run (shard-based flow).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: visualreviewrunsaddsnapshotscreate
        method: POST
        description: Add a batch of snapshots to a pending run (shard-based flow).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-projects-project_id-visual_review-runs-id-approve
      path: /api/projects/{project_id}/visual_review/runs/{id}/approve/
      operations:
      - name: visualreviewrunsapprovecreate
        method: POST
        description: Approve visual changes for snapshots in this run.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: visualreviewrunsapprovecreate
        method: POST
        description: Approve visual changes for snapshots in this run.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-projects-project_id-visual_review-runs-id-auto-approve
      path: /api/projects/{project_id}/visual_review/runs/{id}/auto-approve/
      operations:
      - name: visualreviewrunsautoapprovecreate
        method: POST
        description: 'CLI auto-approve: approve all and return baseline YAML for local write.'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: visualreviewrunsautoapprovecreate
        method: POST
        description: 'CLI auto-approve: approve all and return baseline YAML for local write.'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: api-projects-project_id-visual_review-runs-id-complete
      path: /api/projects/{project_id}/visual_review/runs/{id}/complete/
      operations:
      - name: visualreviewrunscompletecreate
        method: POST
        description: 'Complete a run: detect removals, verify uploads, trigger diff processing.'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: visualreviewrunscompletecreate
        method: POST
        description: 'Complete a run: detect removals, verify uploads, trigger diff processing.'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: api-projects-project_id-visual_review-runs-id-recompute
      path: /api/projects/{project_id}/visual_review/runs/{id}/recompute/
      operations:
      - name: visualreviewrunsrecomputecreate
        method: POST
        description: Re-evaluate quarantine and counts, update commit status, and optionally rerun the CI job.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: visualreviewrunsrecomputecreate
        method: POST
        description: Re-evaluate quarantine and counts, update commit status, and optionally rerun the CI job.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: api-projects-project_id-visual_review-runs-id-snapshot-history
      path: /api/projects/{project_id}/visual_review/runs/{id}/snapshot-history/
      operations:
      - name: visualreviewrunssnapshothistorylist
        method: GET
        description: Recent change history for a snapshot identifier across runs.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: identifier
          in: query
          type: string
          description: Snapshot identifier
          required: true
        - 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: visualreviewrunssnapshothistorylist
        method: GET
        description: Recent change history for a snapshot identifier across runs.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: identifier
          in: query
          type: string
          description: Snapshot identifier
          required: true
        - 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-visual_review-runs-id-snapshots
      path: /api/projects/{project_id}/visual_review/runs/{id}/snapshots/
      operations:
      - name: visualreviewrunssnapshotslist
        method: GET
        description: Get all snapshots for a run with diff results.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - 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: visualreviewrunssnapshotslist
        method: GET
        description: Get all snapshots for a run with diff results.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - 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-visual_review-runs-id-tolerate
      path: /api/projects/{project_id}/visual_review/runs/{id}/tolerate/
      operations:
      - name: visualreviewrunstoleratecreate
        method: POST
        description: Mark a changed snapshot as a known tolerated alternate.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: visualreviewrunstoleratecreate
        method: POST
        description: Mark a changed snapshot as a known tolerated alternate.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-projects-project_id-visual_review-runs-id-tolerated-hashes
      path: /api/projects/{project_id}/visual_review/runs/{id}/tolerated-hashes/
      operations:
      - name: visualreviewrunstoleratedhasheslist
        method: GET
        description: List known tolerated hashes for a snapshot identifier.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: identifier
          in: query
          type: string
          description: Snapshot identifier
          required: true
        - 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: visualreviewrunstoleratedhasheslist
        method: GET
        description: List known tolerated hashes for a snapshot identifier.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: identifier
          in: query
          type: string
          description: Snapshot identifier
          required: true
        - 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.
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-visual-review-rest
    port: 8080
    description: REST adapter for PostHog API — visual_review. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/projects/{project-id}/visual-review/repos
      name: api-projects-project-id-visual-review-repos
      descript

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