POST/api/orgs/{org_id}/scores

Score a request, session or span

A score is a judgement, not content: the target needs no stored body, so you can score a request that was not stored. Send value (a number or boolean) or string_value (a category). With config_id the value must fit the config.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

Request body

  • targetobjectrequired

    One request, session or span of the organization.

    target
    • kindenumrequired
      "request""session""span"
    • idstringrequired
  • config_idstring | null

    A score config; the value must fit it.

  • namestring | null

    The score name when no config is named.

  • valuenumber | boolean | null

    A number or boolean.

  • string_valuestring | null

    A category, at most 200 characters.

  • commentstring | null

    At most 2,000 characters.

Responses

  • 200

    The score.

    Response
    • idstring
    • targetobject

      One request, session or span of the organization.

      target
      • kindenumrequired
        "request""session""span"
      • idstringrequired
    • namestring
    • config_idstring | null
    • valuenumber | null
    • string_valuestring | null
    • commentstring | null
    • sourceenum
      "human""api""judge"
    • author_emailstring | null
    • created_atstring
  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    The resource does not exist or belongs to another organization.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 422

    The target or value is invalid (invalid_target, invalid_value).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 503

    This deployment has no score store.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

Request

curl -X POST 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/scores' \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "target": {
    "kind": "request",
    "id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF"
  },
  "name": "helpful",
  "value": 0.9,
  "comment": "Answered in one step"
}'

Response

{
  "id": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
  "target": {
    "kind": "request",
    "id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF"
  },
  "name": "helpful",
  "config_id": "5d4c3b2a-1f0e-4d9c-8b7a-6f5e4d3c2b1a",
  "value": 0.9,
  "string_value": null,
  "comment": "Answered in one step",
  "source": "api",
  "author_email": null,
  "created_at": "2026-11-18T14:40:00Z"
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/scores