# Query Session Feedback

Source: https://agenta.ai/docs/reference/api/query-session-feedback

`POST /sessions/feedback/query`

Base URL: `https://us.cloud.agenta.ai/api` (US cloud), `https://eu.cloud.agenta.ai/api` (EU cloud) or `$AGENTA_HOST/api` (self-hosted). Authentication: `Authorization: ApiKey YOUR_API_KEY`.

Query Session Feedback

## Request body schema

Content type: `application/json` (required)

- `session_id` (string, required)

## Response schemas

### 200: Successful Response

- `count` (integer) Default: `0`.
- `annotations` (array of object)
  - `created_at` (string (date-time), nullable)
  - `updated_at` (string (date-time), nullable)
  - `deleted_at` (string (date-time), nullable)
  - `created_by_id` (string (uuid), nullable)
  - `updated_by_id` (string (uuid), nullable)
  - `deleted_by_id` (string (uuid), nullable)
  - `span_id` (string, nullable)
  - `trace_id` (string, nullable)
  - `attributes` (object, nullable)
  - `origin` (string, one of: "custom", "human", "auto") Default: `"custom"`.
  - `kind` (string, one of: "adhoc", "eval", "play") Default: `"adhoc"`.
  - `channel` (string, one of: "otlp", "web", "sdk", "api") Default: `"api"`.
  - `tags` (object, nullable)
  - `meta` (object, nullable)
  - `data` (Data, required)
  - `references` (object, required)
    - `query` (object, nullable)
    - `query_variant` (object, nullable)
    - `query_revision` (object, nullable)
    - `testset` (object, nullable)
    - `testset_variant` (object, nullable)
    - `testset_revision` (object, nullable)
    - `application` (object, nullable)
    - `application_variant` (object, nullable)
    - `application_revision` (object, nullable)
    - `evaluator` (object, nullable)
    - `evaluator_variant` (object, nullable)
    - `evaluator_revision` (object, nullable)
    - `environment` (object, nullable)
    - `environment_variant` (object, nullable)
    - `environment_revision` (object, nullable)
    - `testcase` (object, nullable)
    - `selector` (object, nullable)
  - `links` (object | array of object, required)
    - One of, option 1 (OTelLink):
      - `span_id` (string, nullable)
      - `trace_id` (string, nullable)
      - `attributes` (object, nullable)
  - `turn_id` (string, nullable)
- … more fields: see the OpenAPI specification.

### 422: Validation Error

- `detail` (array of object)
  - `loc` (array of string | integer, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (Context)
