---
title: "POST /api/{org_id}/playground/score"
method: POST
path: "/api/{org_id}/playground/score"
tags: ["Playground"]
---

# POST /api/{org_id}/playground/score

`POST /api/{org_id}/playground/score`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/playground/score`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/playground/score/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required

## Request body

- object
  - `expectedOutput` unknown
  - `input` unknown
  - `metadata` unknown
  - `output` string, required
  - `scorerIds` string[], required: Scorers are resolved at their latest version. Pinning belongs to the moment a column is promoted to an Experiment, not to a draft.

## Response `200`

- object
  - `results` ScoreResultBody[], required: One entry per requested scorer, in the order they were asked for. A scorer that could not run reports why instead of vanishing.
    - union
      - object
        - `boolean` boolean, nullable
        - `categorical` string, nullable
        - `completionTokens` integer, nullable
        - `latencyMs` integer, required
        - `metadata` unknown
        - `modelUsed` string, nullable
        - `numeric` number, double, nullable
        - `promptTokens` integer, nullable
        - `reasoning` string, nullable
        - `status` 'scored', required
        - `scorerId` string, required
        - `scorerName` string, required
        - `scorerVersion` integer, required
      - object
        - `reason` 'no_reference' | 'requires_trace', required
        - `status` 'skipped', required
        - `scorerId` string, required
        - `scorerName` string, required
        - `scorerVersion` integer, required
      - object
        - `error` string, required
        - `status` 'failed', required
        - `scorerId` string, required
        - `scorerName` string, required
        - `scorerVersion` integer, required

## Other responses

- `400`: Too many scorers named
- `403`: A scorer provider is not visible to the caller
- `404`: A referenced scorer does not exist
- `500`: Scorer resolution failed

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
