Submit an AI output for evaluation
Default mode is async (`sync` omitted or `false`): the log is stored and the endpoint responds immediately with HTTP `202` and `status: pending` while evaluation runs in the background. Pass `sync: true` to evaluate inline and return the full verdict with HTTP `200`. Rate limit: 60 requests per minute per workspace token. Exceeding the limit returns `429` with a `Retry-After: 60` header.
Authorization
webhookToken Workspace webhook token from Settings -> Integrations.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/logs" \ -H "Content-Type: application/json" \ -d '{ "project": "Support Assistant", "output": "Thanks for reaching out. We will process your refund within 3-5 business days." }'{
"ok": true,
"id": "string",
"verdict": "pass",
"confidenceScore": 0,
"explanation": "string",
"status": "pass"
}{
"ok": true,
"id": "string",
"status": "pending"
}{
"error": "string",
"code": "string",
"fields": {
"property1": "string",
"property2": "string"
}
}{
"error": "string",
"code": "string",
"fields": {
"property1": "string",
"property2": "string"
}
}{
"error": "string",
"code": "string",
"fields": {
"property1": "string",
"property2": "string"
}
}{
"error": "string",
"code": "string",
"fields": {
"property1": "string",
"property2": "string"
}
}{
"error": "string",
"code": "string",
"fields": {
"property1": "string",
"property2": "string"
}
}{
"error": "string",
"code": "string",
"fields": {
"property1": "string",
"property2": "string"
}
}{
"error": "string",
"code": "string",
"fields": {
"property1": "string",
"property2": "string"
}
}{
"error": "string",
"code": "string",
"fields": {
"property1": "string",
"property2": "string"
}
}{
"error": "string",
"code": "string",
"fields": {
"property1": "string",
"property2": "string"
}
}