---
title: "POST /model-hub/scores/"
method: POST
path: "/model-hub/scores/"
tags: ["model-hub"]
---

# POST /model-hub/scores/

`POST /model-hub/scores/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/scores/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Create a single score.

## Request body

- CreateScore
  - `source_type` 'dataset_row' | 'trace' | 'observation_span' | 'prototype_run' | 'call_execution' | 'trace_session', required
  - `source_id` string, required
  - `label_id` string, uuid, required
  - `value` object, required
  - `notes` string
  - `score_source` 'human' | 'api' | 'auto' | 'imported'
  - `queue_item_id` string, uuid, nullable

## Response `200`

OK

- ScoreResponse
  - `status` boolean
  - `result` Score, required
    - `id` string, uuid
    - `source_type` 'dataset_row' | 'trace' | 'observation_span' | 'prototype_run' | 'call_execution' | 'trace_session', required
    - `source_id` string
    - `label_id` string, uuid
    - `label_name` string
    - `label_type` string
    - `label_settings` object
    - `label_allow_notes` boolean
    - `value` object, required
    - `value_history` object
    - `score_source` 'human' | 'api' | 'auto' | 'imported'
    - `notes` string, nullable
    - `annotator` string, uuid, nullable
    - `annotator_name` string
    - `annotator_email` string
    - `queue_item` string, uuid, nullable
    - `queue_id` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
