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

# List Agent Logs

> Lists summaries of AI agent executions (conversations handled by a Siit AI agent) created in a time window, including the ones that never created a Request, newest first. Results only include the executions the caller is allowed to see. This endpoint may change or be removed without prior notice.



## OpenAPI

````yaml /api-reference/openapi.yml get /v1/agent_logs
openapi: 3.0.1
info:
  title: Siit Public API
  version: v0
servers:
  - url: https://api.siit.io
security: []
paths:
  /v1/agent_logs:
    get:
      tags:
        - Unstable
        - Agent Log
      summary: List Agent Logs
      description: >-
        Lists summaries of AI agent executions (conversations handled by a Siit
        AI agent) created in a time window, including the ones that never
        created a Request, newest first. Results only include the executions the
        caller is allowed to see. This endpoint may change or be removed without
        prior notice.
      parameters:
        - name: created_after
          in: query
          schema:
            type: string
            format: date-time
          required: true
          description: >-
            Only include executions created at or after this DateTime (ISO 8601
            with a timezone offset, inclusive).
        - name: created_before
          in: query
          schema:
            type: string
            format: date-time
          required: true
          description: >-
            Only include executions created before this DateTime (ISO 8601 with
            a timezone offset, exclusive). Must be later than `created_after`
            and at most 31 days after it.
        - name: agent_uid
          in: query
          required: false
          description: Only include executions of this AI agent.
          schema:
            type: string
        - name: requester_uid
          in: query
          required: false
          description: >-
            Only include executions with this conversation user, whether or not
            a Request was created.
          schema:
            type: string
        - name: request_created
          in: query
          required: false
          description: >-
            `true` keeps only executions that created a Request, `false` only
            those that did not. Omit to include both.
          schema:
            type: boolean
        - name: outcome
          in: query
          schema:
            type: string
            enum:
              - deflected
              - escalated
              - unresolved
          required: false
          description: Only include executions with this current outcome.
        - name: page
          in: query
          required: false
          description: The current page
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          description: Number of results retrieved per page.
          schema:
            type: integer
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  meta:
                    $ref: '#/components/schemas/meta_object'
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        uid:
                          type: string
                          description: >-
                            The UID of the agent execution (agent log). Pass it
                            to `GET /v1/agent_logs/{uid}/events` to read its
                            timeline.
                        agent:
                          type: string
                          description: UID of the AI agent that ran the execution.
                        request:
                          type: string
                          nullable: true
                          description: >-
                            UID of the Request currently linked to the
                            execution, or null when none was created.
                        user:
                          type: string
                          nullable: true
                          description: >-
                            UID of the conversation user (the person the agent
                            talked with), including when no Request was created.
                        created_at:
                          type: string
                          format: date-time
                          description: When the execution started, formatted as ISO 8601.
                        finished_at:
                          type: string
                          format: date-time
                          nullable: true
                          description: >-
                            When the execution finished, formatted as ISO 8601.
                            Null while it is still running.
                        platform:
                          type: string
                          description: >-
                            Channel the conversation happened on (e.g. `slack`,
                            `ms_teams`, `employee_portal`).
                        state:
                          type: string
                          description: >-
                            Technical state of the execution (e.g. `pending`,
                            `started`, `success`, `failed`).
                        outcome:
                          type: string
                          enum:
                            - deflected
                            - escalated
                            - unresolved
                          description: >-
                            Current outcome of the execution. `deflected`: a
                            triage execution where the user approved a suggested
                            article and no Request is linked. `escalated`: a
                            Request is linked. `unresolved`: neither.
        '400':
          description: Invalid time window
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors_object'
        '401':
          description: Unauthorized
      security:
        - bearer: []
components:
  schemas:
    meta_object:
      type: object
      properties:
        count:
          type: integer
        current_page:
          type: integer
        next_page_link:
          type: string
          nullable: true
        per_page:
          type: integer
          default: 20
          maximum: 200
        previous_page_link:
          type: string
          nullable: true
        total:
          type: integer
    errors_object:
      type: object
      properties:
        error:
          type: string
        troubleshoot:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````