Skip to Content
iAdvizeDocs

Review a conversation's labels

Corrects or confirms labels of one conversation, as a member does on the conversation page, under the same rules. Send the `version` of the label record you read (`GET …/labels`) and up to 100 label verdicts. A verdict whose value differs from the AI judge's is a correction, one equal to it a confirmation; a reason applies to a correction only. An empty `labels` marks that version as reviewed with every label as the judge gave it, which takes the conversation out of the review queue. Every reviewed answer then reads `source: human`. The optional `note` is kept for your team on the conversation page and never returned by the API. An API key acts for its whole organization, so no role permission is checked; the review is recorded in the audit log under the key. Labeled channels: `web`, `hosted` and `playground`. Returns the label record read after the review.

POST
/api/v1/sites/{siteId}/conversations/{id}/labels/review

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

A WorkOS org-scoped API key, created from the dashboard's organization settings page. Identifies the tenant every read and write is scoped to. Missing, malformed, unknown, revoked, expired, or non-organization-owned keys all return 401 (no distinction, so the response can't be used to probe which keys or org ids exist).

Path Parameters

siteId*string

The site id (prefixed site_). A site id that isn't yours is a 404, same as any other cross-tenant id.

id*string

The conversation id (prefixed conv_).

Request Body

application/json
  1. body
version*string

The version of the label record you read. A version the conversation was labeled past answers version_changed.

Length1 <= length <= 200
labels*array<>

The label verdicts, each label at most once. Empty marks the version as reviewed with every label as the judge gave it.

Itemsitems <= 100

Response Body

The conversation's label record after the review.

application/json
  1. response
data*

The labels of one conversation under the published labeling configuration. labels is the current run, or null when labelStatus is anything but labeled. See conversation labeling.

Example Request
curl -X POST 'https://example.com/api/v1/sites/string/conversations/string/labels/review' \  -H 'Content-Type: application/json' \  -d '{  "version": "lrun_01kvnx2c4af0s7mbe9t3w6qz1h",  "labels": [    {      "labelKey": "grounded",      "value": "pass",      "reason": "missing_merchant_context",      "note": "The product notes state it."    },    {      "labelKey": "resolution",      "value": "resolved"    }  ]}'
Example Response
{  "data": {    "conversationId": "conv_01kvnwmagvf27rc9cze5rm9e1r",    "labelStatus": "labeled",    "taxonomyVersion": "v1.2",    "labels": {      "version": "lrun_01kvnx2c4af0s7mbe9t3w6qz1h",      "labeledAt": "2026-09-28T15:02:11.000Z",      "resolution": "resolved",      "reviewReason": null,      "reviewPriority": null,      "scores": {        "quality": 0.92,        "service": 1,        "trust": 1      },      "answers": {        "resolution": {          "value": "resolved",          "source": "human",          "evidence": [            "msg_01kvnwmagwf27rc9d7zef4qksf"          ]        },        "product_question": {          "value": true,          "source": "judge",          "evidence": [            "msg_01kvnwmagvf27rc9cze5rm9e1r"          ]        },        "purchase_intent": {          "value": true,          "source": "judge",          "evidence": [            "msg_01kvnwmagvf27rc9cze5rm9e1r"          ]        },        "grounded": {          "value": "pass",          "source": "judge",          "evidence": [            "msg_01kvnwmagwf27rc9d7zef4qksf"          ]        },        "answered_every_question": {          "value": "pass",          "source": "judge",          "evidence": [            "msg_01kvnwmagvf27rc9cze5rm9e1r",            "msg_01kvnwmagwf27rc9d7zef4qksf"          ]        },        "no_loop": {          "value": "not_applicable",          "source": "judge",          "evidence": []        },        "objection_price": {          "value": false,          "source": "judge",          "evidence": []        }      },      "tokens": [        "answered:true",        "answered_every_question:pass",        "grounded:pass",        "product_question:true",        "purchase_intent:true",        "resolution:resolved",        "sales_phase:pre_sales"      ]    }  }}