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

# List tickets for a project



## OpenAPI

````yaml /api-reference/ilyama.v1.json get /projects/{project_id}/tickets
openapi: 3.1.0
info:
  description: >
    Generation-ready starter contract for ilyama's HTTP API.

    This is intentionally scoped to stable routes already mounted in
    services/apis

    so frontend clients can begin integrating against the rewrite immediately.
  title: ilyama Core API
  version: 0.1.0
servers:
  - url: /core/api/v1
security:
  - bearerAuth: []
tags:
  - name: Certificates (HTTP)
  - name: Device JITR
  - name: Device RPC
  - name: Devices
  - name: Edge replication
  - name: Fleets
  - name: Integrations
  - name: MDM
  - name: Notification Event Registry
  - name: Notifications
  - name: OTA
  - name: Observability & data
  - name: Organizations
  - name: Project settings
  - name: Projects
  - name: Projects — Email Templates
  - name: Projects — Notification Subscriptions
  - name: Projects — Status
  - name: System
  - name: Tickets & workflows
  - name: Webhooks
paths:
  /projects/{project_id}/tickets:
    get:
      tags:
        - Tickets & workflows
      summary: List tickets for a project
      operationId: listProjectTickets
      parameters:
        - in: path
          name: project_id
          required: true
          schema:
            format: uuid
            type: string
        - description: >-
            Page number (1-based). If omitted and `offset` is set, page is
            derived as offset/limit + 1.
          in: query
          name: page
          schema:
            minimum: 1
            type: integer
        - in: query
          name: limit
          schema:
            type: integer
        - description: Legacy offset; used only when `page` is omitted.
          in: query
          name: offset
          schema:
            type: integer
        - description: >-
            Comma-separated ticket UUIDs; list is restricted to these ids
            (invalid tokens return 400).
          in: query
          name: ids
          schema:
            type: string
        - in: query
          name: workflow_version_id
          schema:
            format: uuid
            type: string
        - description: Filter by a single persisted state label row UUID.
          in: query
          name: state_label_id
          schema:
            format: uuid
            type: string
        - description: >-
            Comma-separated workflow state label keys (OR). Matching ignores
            case and non-alphanumeric separators (underscore, space, hyphen), so
            mat_loss matches MAT LOSS and matloss. MattLoss folds to mattloss
            and does not match mat_loss.
          in: query
          name: labels
          schema:
            type: string
        - in: query
          name: system_class
          schema:
            enum:
              - open
              - in_progress
              - terminal_success
              - terminal_failed
              - cancelled
            type: string
        - in: query
          name: assigned_group_id
          schema:
            format: uuid
            type: string
        - description: >-
            Substring match on title (ignored if fewer than 3 characters, same
            pattern as device name search).
          in: query
          name: title_search
          schema:
            type: string
        - description: >-
            When set (with optional tag_value), only tickets having at least one
            tag with this kind are returned.
          in: query
          name: tag_kind
          schema:
            type: string
        - description: Optional; when set with tag_kind, tag value must match exactly.
          in: query
          name: tag_value
          schema:
            type: string
        - description: >-
            Comma-separated allowlisted field names for each item. Base ticket
            keys (e.g. id, title, system_class) plus expansions `tags` (array)
            and `state_label` (object). Unknown names return 400. When omitted,
            each item is the full ticket object.
          in: query
          name: fields
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectTicketsListResponse'
          description: Tickets loaded
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Invalid query (e.g. unknown `fields` token or invalid filter UUID)
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
      security:
        - bearerAuth: []
          orgIdHeader: []
components:
  schemas:
    ProjectTicketsListResponse:
      properties:
        data:
          $ref: '#/components/schemas/ProjectTicketsListData'
        ok:
          enum:
            - 1
          type: integer
      required:
        - ok
        - data
      type: object
    ErrorEnvelope:
      properties:
        detail:
          type: string
        message:
          oneOf:
            - type: string
            - type: object
        ok:
          enum:
            - 0
          type: integer
      required:
        - ok
        - message
        - detail
      type: object
    ProjectTicketsListData:
      properties:
        items:
          items:
            additionalProperties: true
            type: object
          type: array
        meta:
          $ref: '#/components/schemas/ListPaginationMeta'
      required:
        - items
        - meta
      type: object
    ListPaginationMeta:
      properties:
        currentPage:
          type: integer
        itemsPerPage:
          type: integer
        totalItems:
          type: integer
        totalPages:
          type: number
      required:
        - currentPage
        - itemsPerPage
        - totalItems
        - totalPages
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
    orgIdHeader:
      in: header
      name: ORG-ID
      type: apiKey

````