---
title: "Preview Tag Rule Matches Endpoint"
method: POST
path: "/previewTagRuleMatches"
---

# Preview Tag Rule Matches Endpoint

`POST /previewTagRuleMatches`

## Request

- Base URL: `https://api.pavoot.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pavoot.com/previewTagRuleMatches`
- Auth: none declared

Past photos a rule would tag (they match and don't have its result yet), for the
"Review past photos" step. Read-only; the rule may be unsaved (a draft or an edit).

Body: { projectId, rule: { conditions, thenCategory, thenValue?, thenPersonId? }, groupId? }
groupId: the group the rule is/will be in — a group with a day only shows that day's photos.
Returns { images: [{ id, title, dateTaken, thumbnailUrl, url, tags: {category: [tag]} }],
          total, truncated }.
Photographers get only their own photos, as in /getImages.

## Response `200`

Successful Response

- unknown

## Changes

- **2026-09-26** `2c06d2d329ca`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pavoot/apis/pavoot-api/changes/previewTagRuleMatches/post.md)

---

[API](https://skmtc.dev/pavoot/apis/pavoot-api.md) - [All operations](https://skmtc.dev/pavoot/apis/pavoot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pavoot/apis/pavoot-api/revisions/8c0cd91c2a05?raw)
