Skip to main content
GET
/
v1
/
matching
/
contexts
/
{contextId}
/
rule-suggestions
List AI match-rule suggestions (the human-review queue)
curl --request GET \
  --url https://matcher.sandbox.lerian.net/v1/matching/contexts/{contextId}/rule-suggestions \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "candidate": {
        "confidence": 123,
        "config": {},
        "priority": 123,
        "rationale": "<string>",
        "type": "<string>",
        "expectedImprovement": "<string>"
      },
      "contextId": "<string>",
      "createdAt": "<string>",
      "id": "<string>",
      "status": "<string>",
      "updatedAt": "<string>",
      "version": 123,
      "createdRuleId": "<string>",
      "rejectReason": "<string>",
      "reviewerId": "<string>"
    }
  ],
  "limit": 123,
  "nextCursor": "<string>",
  "prevCursor": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication (format: "Bearer {token}")

Path Parameters

contextId
string<uuid>
required

Context ID

Query Parameters

status
enum<string>

Filter by status

Available options:
PENDING_REVIEW,
APPROVED,
REJECTED
limit
integer<int64>

Page size

Required range: 1 <= x <= 200
cursor
string

Opaque pagination cursor

Response

OK

items
object[] | null
required

Page of rule-suggestion reviews

limit
integer<int64>
required

Maximum number of items requested for this page

Example:

20

nextCursor
string

Opaque cursor for the next page; empty when there are no more results

Example:

"eyJpZCI6IjEyMyJ9"

prevCursor
string

Opaque cursor for the previous page; empty on the first page

Example:

"eyJpZCI6IjEyMiJ9"