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

# Measured conversations

> The measured conversations and tasks of a period, per agent, newest first, to open one without typing its id.



## OpenAPI

````yaml openapi/en/cell.json GET /v1/context-use/conversations
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/context-use/conversations:
    get:
      tags:
        - governance
      summary: Measured conversations
      description: >-
        The measured conversations of a period, per agent, newest first; the ids
        come in the body, and a

        conversation opens with `POST /v1/context-use/conversation`. Declared
        before the path route below,

        which would otherwise take `conversations` for an id.


        **Authentication.** Console person token with the `analysis`, `vendor`
        role (or admin), or a source key with the `admin` scope.
      operationId: measured_conversations_v1_context_use_conversations_get
      parameters:
        - in: query
          name: since
          required: true
          schema:
            format: date
            title: Since
            type: string
          description: The first day of the period.
        - in: query
          name: until
          required: true
          schema:
            format: date
            title: Until
            type: string
          description: The last day of the period.
        - in: query
          name: source_id
          required: false
          schema:
            anyOf:
              - format: uuid
                type: string
              - type: 'null'
            title: Source Id
          description: Only this agent's conversations.
        - in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeasuredConversationPage'
          description: One page of measured conversations.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    MeasuredConversationPage:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/MeasuredConversation'
          title: Items
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      required:
        - items
      title: MeasuredConversationPage
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    MeasuredConversation:
      additionalProperties: false
      description: >-
        One measured conversation or task, to open without typing its id
        (MED-06).
      properties:
        channel:
          title: Channel
          type: string
        conversation_id:
          description: The conversation id, or `task:<id>` for a task.
          title: Conversation Id
          type: string
        ended_at:
          format: date-time
          title: Ended At
          type: string
        experiment_group:
          default: ''
          title: Experiment Group
          type: string
        measured_at:
          format: date-time
          title: Measured At
          type: string
        no_context:
          description: True when the agent read no context at all in it.
          title: No Context
          type: boolean
        source_id:
          format: uuid
          title: Source Id
          type: string
      required:
        - conversation_id
        - source_id
        - channel
        - ended_at
        - measured_at
        - no_context
      title: MeasuredConversation
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````