Skip to main content
POST
Evaluate a program’s latest release

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Path Parameters

id
string
required

Your organization’s ID for the program, chosen at its first upload: lowercase letters, digits, dots, underscores and hyphens. A rater’s program ID is its rater ID.

Required string length: 1 - 128
Pattern: ^[a-z0-9][a-z0-9._-]{0,127}$

Body

application/json
inputs
object
required

Engine input: one key per root record, for example {"Policy": {...}}.

detailed
boolean

When true, return computed calculation values as well as declared outcomes. Omit or set false to return only what the contract’s outputSchema describes.

Response

A rater entry: the result, timings and the exact release and bundle that answered. A guideline entry: the status after the commands, and the release and bundle that decided them.

component
enum<string>
required

A rater answered: the entry, or a used rater.

Available options:
rater
executionId
string
required

ID of the saved execution. Failed ratings save one too.

programId
string
required

Your organization’s ID for the program, chosen at its first upload: lowercase letters, digits, dots, underscores and hyphens. A rater’s program ID is its rater ID.

Required string length: 1 - 128
Pattern: ^[a-z0-9][a-z0-9._-]{0,127}$
releaseVersion
integer
required

The release that answered. A call without a version answers on the latest.

Required range: x > 0
bundleId
string
required

SHA-256 identity of the bundle that answered.

Pattern: ^[a-f0-9]{64}$
alias
string | null
required

The used rater that answered, by its alias; null when a rater entry answered.

programFingerprint
string
required

Fingerprint of the program that answered: the entry’s, or the used rater’s.

result
object
required

Outputs keyed by root record. The contract’s outputSchema describes them. The engine computes in exact decimals; the API returns them as JSON numbers with 64-bit float precision, about 15 significant digits.

timings
object
required

Milliseconds spent on this rating. coldStartMs is present only on a cold start.

lane
enum<string>

Where the rating ran. worker: the Worker that runs the engine the bundle carries. local: the API’s own rslc engine.

Available options:
worker,
local