Skip to main content
POST
/
v1
/
matching
/
contexts
/
{contextId}
/
rule-suggestions
Produce AI match-rule suggestions (human-review required)
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/matching/contexts/{contextId}/rule-suggestions \
  --header 'Authorization: Bearer <token>'
{
  "count": 123,
  "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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

contextId
string<uuid>
required

Context ID

Response

OK

count
integer<int64>
required

Number of suggestion reviews produced

Example:

2

items
object[] | null
required

Newly created PENDING_REVIEW suggestion reviews; producing them creates no rule