> ## 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.

# Count Agent Logs by outcome

> Counts the AI agent executions created in a time window by current outcome, with the same filters as the Agent Logs list. This endpoint may change or be removed without prior notice.



## OpenAPI

````yaml /api-reference/openapi.yml get /v1/agent_logs/stats
openapi: 3.0.1
info:
  title: Siit Public API
  version: v0
servers:
  - url: https://api.siit.io
security: []
paths:
  /v1/agent_logs/stats:
    get:
      tags:
        - Unstable
        - Agent Log
      summary: Count Agent Logs by outcome
      description: >-
        Counts the AI agent executions created in a time window by current
        outcome, with the same filters as the Agent Logs list. 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.
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    properties:
                      deflected:
                        type: integer
                        description: Number of deflected executions.
                      escalated:
                        type: integer
                        description: Number of escalated executions.
                      unresolved:
                        type: integer
                        description: Number of unresolved executions.
                      total:
                        type: integer
                        description: >-
                          Number of executions matching the filters (the
                          `outcome` filter applies too).
        '400':
          description: Invalid filter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors_object'
        '401':
          description: Unauthorized
      security:
        - bearer: []
components:
  schemas:
    errors_object:
      type: object
      properties:
        error:
          type: string
        troubleshoot:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````