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

# Get Ticket Status History

> Tickets opened from agent conversations, per creation date and current status.

One period per day up to 31 days, per week up to 120 days, per month beyond; `days=0` covers all time.



## OpenAPI

````yaml /openapi-v1.json get /api/v1/autonomy-gaps/ticket-status
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/autonomy-gaps/ticket-status:
    get:
      tags:
        - Autonomy Gaps
      summary: Get Ticket Status History
      description: >-
        Tickets opened from agent conversations, per creation date and current
        status.


        One period per day up to 31 days, per week up to 120 days, per month
        beyond; `days=0` covers all time.
      operationId: get_ticket_status_history
      parameters:
        - in: query
          name: days
          schema:
            default: 30
            title: Days
            type: integer
          required: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TicketStatusHistorySchema'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    TicketStatusHistorySchema:
      properties:
        granularity:
          enum:
            - day
            - week
            - month
          title: Granularity
          type: string
        statuses:
          items:
            type: string
          title: Statuses
          type: array
        totals:
          additionalProperties:
            type: integer
          title: Totals
          type: object
        total:
          title: Total
          type: integer
        buckets:
          items:
            $ref: '#/components/schemas/TicketStatusBucketSchema'
          title: Buckets
          type: array
      required:
        - granularity
        - statuses
        - totals
        - total
        - buckets
      title: TicketStatusHistorySchema
      type: object
    TicketStatusBucketSchema:
      properties:
        date:
          format: date
          title: Date
          type: string
        total:
          title: Total
          type: integer
        counts:
          additionalProperties:
            type: integer
          title: Counts
          type: object
      required:
        - date
        - total
        - counts
      title: TicketStatusBucketSchema
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.