> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akumi.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Attach a score to a trace

> Attaches a rating, a label or a thumbs up or down to a trace you already
recorded, matched on the request id you sent with the original inference call.
Free and unmetered.



## OpenAPI

````yaml /api-reference/openapi.json post /scores
openapi: 3.1.0
info:
  title: Akumi
  version: 0.0.1
servers:
  - url: https://api.akumi.eu/v1
    description: Production
security:
  - http: []
tags:
  - name: Audit log
  - name: Chat completions
  - name: Embeddings
  - name: Models
  - name: Recall
  - name: Scores
paths:
  /scores:
    post:
      tags:
        - Scores
      summary: Attach a score to a trace
      description: >-
        Attaches a rating, a label or a thumbs up or down to a trace you already

        recorded, matched on the request id you sent with the original inference
        call.

        Free and unmetered.
      operationId: v1.scores.store
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StoreScoreRequest'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  uuid:
                    type: string
                  request_id:
                    type: string
                  name:
                    type: string
                  value:
                    type:
                      - number
                      - 'null'
                  value_string:
                    type:
                      - string
                      - 'null'
                  comment:
                    type:
                      - string
                      - 'null'
                  source:
                    type: string
                  created_at:
                    type:
                      - string
                      - 'null'
                required:
                  - uuid
                  - request_id
                  - name
                  - value
                  - value_string
                  - comment
                  - source
                  - created_at
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    StoreScoreRequest:
      type: object
      description: |-
        Attach a named judgment to a request's trace: a rating, a label, or a
        thumbs up or down. Send exactly one of `value` (numeric) or
        `value_string`; sending both, or neither, is rejected. `comment` is
        optional free text.
      properties:
        request_id:
          type: string
          maxLength: 255
        name:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]*$
          maxLength: 64
        value:
          type: number
          minimum: -99999999.9999
          maximum: 99999999.9999
        value_string:
          type: string
          maxLength: 128
        comment:
          type:
            - string
            - 'null'
          maxLength: 2000
      required:
        - request_id
        - name
      title: StoreScoreRequest
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    http:
      type: http
      scheme: bearer

````