Skip to main content
POST
Rate with a program 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}$
releaseVersion
integer
required

Release version number.

Required range: 0 < x <= 2147483647

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

The rating result, timings and the exact release and bundle that rated.

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 rated, by its alias; null when a rater entry rated.

programFingerprint
string
required

Fingerprint of the rating program that rated: 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