Skip to main content
POST
Log rule creation feedback

Authorizations

Authorization
string
header
required

MeshQu API key passed as a bearer token: Authorization: Bearer mqu_…. Mint one in the console (Settings → API keys).

X-MeshQu-Tenant-Id
string
header
required

Tenant UUID for multi-tenant isolation. Required on all authenticated routes — validated before authentication (middleware/tenant.ts), so a missing or non-UUID header returns 400 (MISSING_TENANT_ID / INVALID_TENANT_ID) before the API key is checked.

Body

application/json
input_nl
string
required
Minimum string length: 1
model_id
string
required
Minimum string length: 1
model_output
any
required
outcome
required
Available options:
accepted
anonymised_user_id
string
task_type
string
context
object
final_rule
any
corrections
object[]
edit_distance
integer
Required range: x >= 0
confidence
string
latency_ms
integer
Required range: x >= 0

Response

Default Response

success
boolean
required