Runs
Create score
Submits one or more named scores for a function run, or for specific steps when step IDs are provided. Scores are recorded as run metadata and aggregated for experiments.
post/runs/{runId}/scores
Request
- Base URL: https://api.inngest.com/v2
- URL: https://api.inngest.com/v2/runs/{runId}/scores
- Auth: API key in header Authorization
Path parameters
runIdstring required
Run ID (ULID) of the function run to score
Request body
Example request
[
{
"experiment": {
"id": "model-routing",
"variant": "baseline"
},
"name": "accuracy",
"stepId": "generate-summary",
"value": 0.95
}
]Response
A successful response.
Example response
{
"data": [
{
"experiment": {
"id": "model-routing",
"variant": "baseline"
}
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.