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

# List the environments a coding agent connection may launch in

> List the vendor environments a coding agent connection's key may launch a fix in (Replicas organization environments), each with the GitHub repositories it holds. Read live from the vendor; never launches work; personal environments are left out. Pass one's `id` as `environmentId` to `issues.fixes.create` or `agentDispatches.projectDefault.update`. An agent without environments answers `supported: false`.



## OpenAPI

````yaml /openapi.json get /integrations/connections/{connectionId}/coding-agent-environments
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:
  /integrations/connections/{connectionId}/coding-agent-environments:
    get:
      tags:
        - Integrations
      summary: List the environments a coding agent connection may launch in
      description: >-
        List the vendor environments a coding agent connection's key may launch
        a fix in (Replicas organization environments), each with the GitHub
        repositories it holds. Read live from the vendor; never launches work;
        personal environments are left out. Pass one's `id` as `environmentId`
        to `issues.fixes.create` or `agentDispatches.projectDefault.update`. An
        agent without environments answers `supported: false`.
      operationId: integrations.codingAgentEnvironments.list
      parameters:
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: A coding agent connection ID.
        - name: organizationId
          in: query
          schema:
            type: string
            minLength: 1
            description: >-
              Organization the connection belongs to. Auto-filled from CLI and
              SDK context when omitted. User tokens must supply it unless the
              credential's fixed scope resolves it; secret keys may omit it (the
              key's organization applies).
          allowEmptyValue: true
          allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  supported:
                    type: boolean
                    description: >-
                      Whether the agent has environments at all; `environments`
                      is empty when not.
                  environments:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: The vendor's id for the environment.
                        name:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: The environment's name at the vendor.
                        scope:
                          enum:
                            - team
                            - personal
                          type: string
                          description: >-
                            Whose it is: `team` is shared by the organization
                            behind the key and is what a launch prefers;
                            `personal` belongs to one person at the vendor.
                        defaultBranch:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: >-
                            The branch its runs start from, when the vendor's
                            environment names one.
                        repositories:
                          type: array
                          items:
                            type: object
                            properties:
                              url:
                                type: string
                                description: Canonical `https://github.com/<owner>/<name>`.
                              fullName:
                                type: string
                                description: '`<owner>/<name>`.'
                            required:
                              - url
                              - fullName
                          description: The GitHub repositories the environment holds.
                        readiness:
                          type: object
                          properties:
                            ready:
                              type: boolean
                            reason:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: >-
                                The vendor's reason while not ready; null when
                                ready.
                          required:
                            - ready
                            - reason
                          description: >-
                            Whether a fix launched there would run with a
                            working setup, from the vendor's own status. A fix
                            is never handed to, or launched in, an environment
                            that is not ready.
                      required:
                        - id
                        - name
                        - scope
                        - defaultBranch
                        - repositories
                        - readiness
                required:
                  - supported
                  - environments

````

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