Skip to main content
POST
/
v1
/
ci
/
gate
Evaluate an eval run against a CI policy
curl --request POST \
  --url https://api.trulayer.ai/v1/ci/gate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "policy": {
    "on_fail": "warn",
    "score_floor": 123,
    "delta_tolerance": 123
  },
  "baseline_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "decision": "pass",
  "mean_score": 123,
  "run_url": "<string>",
  "reason": "<string>",
  "mean_delta": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.trulayer.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

SDK API key (tl_...) or Clerk session JWT

Body

application/json
dataset_id
string<uuid>
required
run_id
string<uuid>
required
policy
object
required
baseline_run_id
string<uuid> | null

Response

Gate decision

decision
enum<string>
required
Available options:
pass,
warn,
block
mean_score
number
required
run_url
string
required
reason
string
required
mean_delta
number | null