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

# List tickets

> Newest first, cursor paginated. A queue mutates while you page through it, so offsets would skip or repeat rows.



## OpenAPI

````yaml /api-reference/openapi.json get /tickets
openapi: 3.1.0
info:
  title: miniDesk API
  version: 1.0.0
  description: >-
    Create and work support tickets from your own systems. Every response
    carries an `X-Request-Id`; quote it when reporting a problem.
servers:
  - url: https://api.minidesk.ai/v1
security:
  - bearerAuth: []
paths:
  /tickets:
    get:
      tags:
        - Tickets
      summary: List tickets
      description: >-
        Newest first, cursor paginated. A queue mutates while you page through
        it, so offsets would skip or repeat rows.
      operationId: listTickets
      parameters:
        - name: cursor
          in: query
          required: false
          description: The `next_cursor` from the previous page. Omit for the first page.
          schema:
            type: string
            maxLength: 512
            format: base64url
            contentEncoding: base64url
            pattern: ^[A-Za-z0-9_-]*$
        - name: limit
          in: query
          required: false
          description: How many tickets to return. 1 to 100, default 25.
          schema:
            default: 25
            type: integer
            minimum: 1
            maximum: 100
        - name: status
          in: query
          required: false
          description: 'One status, or several separated by commas: `open` or `new,open`.'
          schema:
            type: string
        - name: assignee_id
          in: query
          required: false
          description: Only tickets assigned to this member.
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        - name: priority
          in: query
          required: false
          description: Only tickets at this priority.
          schema:
            type: string
            enum:
              - low
              - normal
              - high
              - urgent
        - name: category
          in: query
          required: false
          description: Only tickets in this category.
          schema:
            type: string
            maxLength: 60
        - name: q
          in: query
          required: false
          description: Full-text search over requester details and message bodies.
          schema:
            type: string
            maxLength: 200
      responses:
        '200':
          description: A page of tickets.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TicketList'
        '400':
          description: The body failed validation. `field` names the offending property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, malformed, or revoked credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Over the rate limit. See the `Retry-After` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    TicketList:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                pattern: >-
                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              reference:
                type: string
              status:
                type: string
                enum:
                  - new
                  - open
                  - pending
                  - resolved
                  - closed
              priority:
                type: string
                enum:
                  - low
                  - normal
                  - high
                  - urgent
              category:
                anyOf:
                  - type: string
                  - type: 'null'
              source:
                type: string
                enum:
                  - agent
                  - widget
                  - email
                  - api
              language:
                anyOf:
                  - type: string
                  - type: 'null'
              requester:
                anyOf:
                  - type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      email:
                        anyOf:
                          - type: string
                          - type: 'null'
                      name:
                        anyOf:
                          - type: string
                          - type: 'null'
                      is_verified:
                        type: boolean
                    required:
                      - id
                      - email
                      - name
                      - is_verified
                  - type: 'null'
              created_at:
                type: string
              updated_at:
                type: string
            required:
              - id
              - reference
              - status
              - priority
              - category
              - source
              - language
              - requester
              - created_at
              - updated_at
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - data
        - next_cursor
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - validation_failed
                - invalid_credential
                - identity_required
                - identity_invalid
                - quota_exhausted
                - forbidden
                - not_found
                - conflict
                - invalid_transition
                - rate_limited
                - internal_error
                - service_unavailable
            message:
              type: string
            field:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API credential from **Settings → API**, sent as `Authorization:
        Bearer mdsk_api_...`. Issued per workspace and shown once.

````