Contract
Dry-run customer legitimation check
POST /contract/legitimation/preview
POST /contract/legitimation/preview
Evaluates the configured legitimation rules (customerLegitimationRuleAsyncChannels /
customerLegitimationRuleSyncChannels) against a synthetic ticket built from the supplied
fields. No data is written. Useful for testing legitimation settings without a real ticket.
Request body
channelstringbodyrequiredTicket channel. Determines which rule set is used (sync: chat/phone, async: all others).
contractIdstringbodyOptional. If provided, the real contract is loaded from the ERP and used for criteria evaluation.
customerIdstringbodyOptional override for the customer ID on the loaded contract.
fromstringbodySender address (email or phone number).
subjectstringbodyTicket subject line.
bodyPlainstringbodyPlain-text ticket body.
rawDataobjectbodySynthetic ticket.rawData JSON object — same shape as the raw payload Mind writes to the ticket table on incoming tickets.
subchannelIdstringbodyOptional subchannel ID. If the subchannel has assistantAuthenticationInstructions, the deprecated path is used.
Request Example
{
"channel": "email",
"contractId": "715559",
"customerId": "C-987",
"from": "kunde@example.com",
"subject": "Question about my contract",
"bodyPlain": "My contract number is 715559 and I'd like to change my address.",
"rawData": null,
"subchannelId": "3"
}Responses
200 — Legitimation check result
Response Example
{
"legitimationLevel": 10,
"legitimationMessage": "<b>Group 1</b>: needed 2, got 1 criteria.",
"detectionLog": [
"string"
]
}400 — Missing required field
403 — Unauthorized
404 — Contract not found