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

# Read the project's fix setting

> The project's fix setting: the agent `issues.fixes.create` hands off to when it names no `agent`, a connected coding agent account (with the vendor environment the next launch prefers) or Sazabi's agent, and whether every new issue starts a fix. Set only with `agentDispatches.projectDefault.update`; a handoff no longer records the agent it used. `connectionBroken` says the selected connection is disconnected or needs attention, so fixes go to Sazabi's agent until it reconnects.



## OpenAPI

````yaml /openapi.json get /agent-dispatches/project-default
openapi: 3.1.1
info:
  title: Sazabi Public API
  version: 1.0.0
  description: >
    Public REST API for Sazabi. Authenticate using a secret API key in the
    Authorization header.


    ## Pagination


    This API uses two pagination strategies depending on the endpoint type:


    ### Cursor-Based Pagination (List Endpoints)


    List endpoints (threads, messages, keys) use cursor-based pagination for
    efficient, consistent results:


    - **Parameters**: `limit` (items per page, default 50, max 100), `cursor`
    (opaque pagination token)

    - **Response**: Includes `nextCursor` field - pass this as `cursor` in the
    next request

    - **End of results**: When `nextCursor` is `null`, there are no more results

    - **Example**: `GET
    /v1/threads?limit=20&cursor=01234567-89ab-cdef-0123-456789abcdef`


    ### Page-Based Pagination (Search Endpoints)


    Search endpoints use page-based pagination due to the underlying search
    engine:


    - **Parameters**: `limit` (items per page, default 20, max 100), `page`
    (1-indexed page number)

    - **Response**: Includes `pagination` object with `page`, `limit`,
    `totalResults`, `totalPages`

    - **Example**: `GET /v1/search/threads?q=error&limit=10&page=2`
servers:
  - url: https://api.sazabi.com/v1
    description: Production
security: []
paths:
  /agent-dispatches/project-default:
    get:
      tags:
        - AgentDispatches
      summary: Read the project's fix setting
      description: >-
        The project's fix setting: the agent `issues.fixes.create` hands off to
        when it names no `agent`, a connected coding agent account (with the
        vendor environment the next launch prefers) or Sazabi's agent, and
        whether every new issue starts a fix. Set only with
        `agentDispatches.projectDefault.update`; a handoff no longer records the
        agent it used. `connectionBroken` says the selected connection is
        disconnected or needs attention, so fixes go to Sazabi's agent until it
        reconnects.
      operationId: agentDispatches.projectDefault.get
      parameters:
        - name: organizationId
          in: query
          required: true
          schema:
            type: string
            minLength: 1
          allowEmptyValue: true
          allowReserved: true
        - name: projectId
          in: query
          required: true
          schema:
            type: string
            format: uuid
          allowEmptyValue: true
          allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  default:
                    anyOf:
                      - type: object
                        properties:
                          provider:
                            enum:
                              - sazabi
                              - cursor
                              - devin
                              - capy
                              - replicas
                              - hoplite
                              - warp
                              - claude
                              - codex
                              - tembo
                            type: string
                            description: >-
                              A coding agent's integration provider id, or
                              `sazabi` for Sazabi's agent.
                          connectionId:
                            anyOf:
                              - type: string
                                format: uuid
                              - type: 'null'
                            description: The coding agent account; null for Sazabi's agent.
                          displayName:
                            type: string
                          environment:
                            anyOf:
                              - type: object
                                properties:
                                  id:
                                    type: string
                                    minLength: 1
                                  name:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                required:
                                  - id
                                  - name
                              - type: 'null'
                            description: >-
                              The vendor environment the next launch runs in
                              while it still holds the repository: the one
                              chosen for the last fix or in the project's
                              settings, else the one the last launch used; null
                              for a vendor without environments, before a
                              launch, or for Sazabi's agent.
                        required:
                          - provider
                          - connectionId
                          - displayName
                          - environment
                      - type: 'null'
                    description: >-
                      The selected agent as stored, whether or not its
                      connection still works; null while none is selected.
                  autoFix:
                    type: boolean
                    description: >-
                      Whether every new issue starts a fix with the selected
                      agent. False while no agent is selected.
                  connectionBroken:
                    type: boolean
                    description: >-
                      True while the selected coding agent connection is
                      disconnected or needs attention: `issues.fixes.create`
                      requests that name no `agent` go to Sazabi's agent until
                      it reconnects, and the selection stays.
                  agents:
                    type: array
                    items:
                      type: object
                      properties:
                        provider:
                          enum:
                            - cursor
                            - devin
                            - capy
                            - replicas
                            - hoplite
                            - warp
                            - claude
                            - codex
                            - tembo
                          type: string
                        connectionId:
                          type: string
                          format: uuid
                        displayName:
                          type: string
                      required:
                        - provider
                        - connectionId
                        - displayName
                    description: >-
                      The connected coding agent accounts the project may select
                      (active, no attention), oldest first; Sazabi's agent is
                      always a choice.
                required:
                  - default
                  - autoFix
                  - connectionBroken
                  - agents

````

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