Skip to main content
POST
Rate a submission using the latest program version

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required
Pattern: ^[a-z0-9][a-z0-9._-]{0,127}$

Body

application/json
inputs
object
required

Response

Native rating result, timings and selected version and bundle identity.

programId
string
required
Pattern: ^[a-z0-9][a-z0-9._-]{0,127}$
version
integer
required
Required range: x > 0
raterId
string
required

The program ID the engine was loaded under.

bundleId
string
required

SHA-256 identity of the engine bundle that rated the submission.

Pattern: ^[a-f0-9]{64}$
programFingerprint
string
required

Fingerprint of the compiled rating program.

result
object
required

Outputs keyed by root record, for example {"Policy": {...}}. The version contract’s outputSchema describes it. 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 loading the engine (cold start only) and rating.

releaseVersion
integer
Required range: x > 0