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

# List repo settings

> List this organization's per-repository fix settings: each row's id, the branch it applies to (null means all branches), the service alias, the environment, and the write fence (path prefix and writable extensions). Each repository also reports `fix_runner`, which says who executes its fix requests: "platform", SRE Agent's own agent, "opencode_ci", the fix running in this organization's own GitHub Actions workflow, or "self_hosted", the fix running on a machine this organization runs. The id is what update_repo_settings and delete_repo_settings address a row by; the runner is set with those tools or by an admin under Integrations, and both verify the repository is set up for it before saving "opencode_ci". A repository with no settings row is not listed: it is still targetable by a fix request, with an auto-detected fence and the platform runner. alerting_sns_topic_arn, when set, is the SNS topic an "Alarm on this" pull request for the repository reuses instead of creating one. auto_dispatch false means the repository waits for a person to press Send on a fix request (on its card, or in the Control Tower) before it is sent; ci_fallback_to_platform true means a request its CI never starts goes to SRE Agent's own agent after 5 minutes.



## OpenAPI

````yaml /api-reference/openapi.json get /repo_settings
openapi: 3.1.0
info:
  description: >-
    A resource-shaped endpoint onto the same tool surface the MCP server
    (/api/mcp) reaches. Every gate, refusal and audit row a caller sees here is
    the exact one the MCP endpoint answers for the same tool. Authenticated with
    an API key holding the api:admin scope, or the read-only api:config_read
    scope for GET alone.
  title: SRE Agent configuration API
  version: 1.0.0
servers:
  - url: https://sreagent.app/api/v1/config
security:
  - apiKey: []
tags:
  - name: ai_providers
  - name: ai_settings
  - name: alert_mutes
  - name: alert_routes
  - name: aws_external_id
  - name: certificate_monitors
  - name: change_notifications
  - name: compliance_periods
  - name: connectors
  - name: data_sources
  - name: deploy_policies
  - name: export
  - name: github_settings
  - name: image_targets
  - name: notification_settings
  - name: organization_settings
  - name: outbound_configs
  - name: outbound_rules
  - name: overseer_settings
  - name: prompt_templates
  - name: repo_settings
  - name: service_bindings
  - name: slack
  - name: slis
  - name: slos
  - name: status_page_components
  - name: status_page_incidents
  - name: status_page_settings
  - name: synthetic_checks
  - name: team_members
  - name: teams
  - name: ticket_import_rules
  - name: ticket_integrations
paths:
  /repo_settings:
    get:
      tags:
        - repo_settings
      summary: List repo settings
      description: >-
        List this organization's per-repository fix settings: each row's id, the
        branch it applies to (null means all branches), the service alias, the
        environment, and the write fence (path prefix and writable extensions).
        Each repository also reports `fix_runner`, which says who executes its
        fix requests: "platform", SRE Agent's own agent, "opencode_ci", the fix
        running in this organization's own GitHub Actions workflow, or
        "self_hosted", the fix running on a machine this organization runs. The
        id is what update_repo_settings and delete_repo_settings address a row
        by; the runner is set with those tools or by an admin under
        Integrations, and both verify the repository is set up for it before
        saving "opencode_ci". A repository with no settings row is not listed:
        it is still targetable by a fix request, with an auto-detected fence and
        the platform runner. alerting_sns_topic_arn, when set, is the SNS topic
        an "Alarm on this" pull request for the repository reuses instead of
        creating one. auto_dispatch false means the repository waits for a
        person to press Send on a fix request (on its card, or in the Control
        Tower) before it is sent; ci_fallback_to_platform true means a request
        its CI never starts goes to SRE Agent's own agent after 5 minutes.
      operationId: list_repo_settings
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/repo_settings_row'
                    type: array
                  organization:
                    type: object
                  truncated:
                    type: boolean
                type: object
          description: The organization's rows.
        default:
          description: The request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    repo_settings_row:
      properties:
        alerting_sns_topic_arn:
          type:
            - string
            - 'null'
        auto_dispatch:
          type:
            - boolean
            - 'null'
        branch:
          type:
            - string
            - 'null'
        branches:
          type: array
        ci_fallback_to_platform:
          type:
            - boolean
            - 'null'
        environment:
          type:
            - string
            - 'null'
        fix_runner:
          type:
            - string
            - 'null'
        id:
          type: string
        path_prefix:
          type:
            - string
            - 'null'
        repo:
          type: string
        service:
          type:
            - string
            - 'null'
        writable_extensions:
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - repo
        - branch
        - service
        - environment
        - path_prefix
        - writable_extensions
        - alerting_sns_topic_arn
        - fix_runner
        - auto_dispatch
        - ci_fallback_to_platform
        - branches
        - id
      type: object
    Error:
      type: object
      description: The body of every failed request.
      properties:
        error:
          type: string
          description: >-
            A short machine-readable code such as forbidden, conflict or
            read_only_key.
        message:
          type: string
          description: A sentence that says what to change.
      required:
        - error
        - message
      additionalProperties: true
  securitySchemes:
    apiKey:
      description: >-
        An sre_ak_* API key holding the api:admin scope (or api:config_read,
        which every write refuses with read_only_key).
      scheme: bearer
      type: http

````

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