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

# Retrieve organization settings

> Retrieve effective organization settings, including defaults for settings that have not been configured.



## OpenAPI

````yaml https://api.tembo.io/public-api/openapi/public get /v1/organizations/{organizationId}/settings
openapi: 3.1.0
info:
  title: Tembo Public API
  description: >-
    Manage agents, sessions, repositories, and organization resources with the
    Tembo API.
  version: 1.0.0
servers:
  - url: https://api.tembo.io
    description: Tembo API
  - url: https://{deployment-origin}/api/public-api
    description: Self-hosted Tembo
    variables:
      deployment-origin:
        default: tembo.example.com
        description: Hostname of your self-hosted Tembo deployment
security: []
paths:
  /v1/organizations/{organizationId}/settings:
    get:
      tags:
        - Organizations
      summary: Retrieve organization settings
      description: >-
        Retrieve effective organization settings, including defaults for
        settings that have not been configured.
      operationId: retrieveOrganizationSettings
      parameters:
        - in: path
          name: organizationId
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Retrieve organization settings
          content:
            application/json:
              schema:
                type: object
                properties:
                  organizationId:
                    type: string
                  settings:
                    type: object
                    properties:
                      cloneDepth:
                        type: integer
                        exclusiveMinimum: 0
                        description: Git clone history depth used for repositories.
                      commitInstructions:
                        type: string
                        maxLength: 64000
                        description: Organization instructions for agent commit messages.
                      customReviewBots:
                        type: array
                        items:
                          type: string
                          pattern: ^[A-Za-z0-9][A-Za-z0-9-]*(\[bot\])?$
                          minLength: 1
                          maxLength: 100
                        maxItems: 25
                        description: >-
                          Additional GitHub bot logins Tembo responds to without
                          an @tembo mention.
                      customSystemPrompt:
                        type: string
                        maxLength: 64000
                        description: >-
                          Custom system instructions supplied to organization
                          agents.
                      defaultAgent:
                        type: string
                        maxLength: 64000
                        description: >-
                          Default coding agent and model key for the
                          organization.
                      defaultKeepAliveMinutes:
                        type: integer
                        minimum: 0
                        maximum: 10080
                        description: >-
                          Default VM keep-alive duration in minutes. 0 preserves
                          built-in per-source durations.
                      defaultSandboxSize:
                        type: string
                        enum:
                          - nano
                          - micro
                          - small
                          - medium
                          - large
                          - xl
                          - xxl
                          - ultra
                        description: Default VM size for organization sessions.
                      deleteBranchWhenPrClosed:
                        type: boolean
                        description: >-
                          Delete agent-created branches when their pull requests
                          close.
                      draftPrs:
                        type: boolean
                        description: Create agent pull requests as drafts by default.
                      enableCoderabbitBot:
                        type: boolean
                        description: Enable handling of CodeRabbit bot feedback.
                      enableCursorBot:
                        type: boolean
                        description: Enable handling of Cursor bot feedback.
                      enableGeminiCodeAssistBot:
                        type: boolean
                        description: Enable handling of Gemini Code Assist bot feedback.
                      enableGithubActionsBot:
                        type: boolean
                        description: Enable handling of GitHub Actions bot feedback.
                      enableGraphiteBot:
                        type: boolean
                        description: Enable handling of Graphite bot feedback.
                      enableGreptileBot:
                        type: boolean
                        description: Enable handling of Greptile bot feedback.
                      experimentalMcp:
                        type: boolean
                        description: Enable experimental MCP features for the organization.
                      fallbackToApiOnSubscriptionLimit:
                        type: boolean
                        description: >-
                          Use the API key or Tembo inference when every
                          connected subscription is out of usage.
                      featureMentionAuthor:
                        type: boolean
                        description: >-
                          Enable mentioning the author in supported integration
                          responses.
                      maxBotReviews:
                        type: integer
                        minimum: 0
                        description: Maximum number of bot review iterations.
                      maxSolutions:
                        type: integer
                        minimum: 0
                        description: Maximum number of generated solutions.
                      onDemandMaxCreditUsage:
                        type: number
                        minimum: 0
                      pgStatStatementsResetFrequency:
                        type: string
                        maxLength: 64000
                        description: >-
                          Reset frequency for PostgreSQL pg_stat_statements
                          collection.
                      pmSystemPrompt:
                        type: string
                        maxLength: 64000
                        description: >-
                          Custom system instructions for the project-management
                          agent.
                      prTitleInstructions:
                        type: string
                        maxLength: 64000
                        description: >-
                          Organization instructions for agent pull request
                          titles.
                      pullRequestInsightsEnabled:
                        type: boolean
                        description: >-
                          Enable or disable pull request contribution insight
                          collection.
                      shouldSignCommits:
                        type: boolean
                        description: >-
                          Sign agent-created commits when signing credentials
                          are configured.
                      slackReviewOnTembo:
                        type: boolean
                        description: Use Tembo review links in Slack review notifications.
                      slowQueryThresholdMs:
                        type: number
                        minimum: 0
                        description: >-
                          Threshold in milliseconds for identifying slow
                          database queries.
                      sshPublicKeys:
                        type: string
                        maxLength: 64000
                        description: >-
                          SSH public keys authorized for organization workspace
                          access.
                      weeklyReportEnabled:
                        type: boolean
                        description: Enable or disable the organization weekly report.
                    required:
                      - cloneDepth
                      - commitInstructions
                      - customReviewBots
                      - customSystemPrompt
                      - defaultAgent
                      - defaultKeepAliveMinutes
                      - defaultSandboxSize
                      - deleteBranchWhenPrClosed
                      - draftPrs
                      - enableCoderabbitBot
                      - enableCursorBot
                      - enableGeminiCodeAssistBot
                      - enableGithubActionsBot
                      - enableGraphiteBot
                      - enableGreptileBot
                      - experimentalMcp
                      - fallbackToApiOnSubscriptionLimit
                      - featureMentionAuthor
                      - maxBotReviews
                      - maxSolutions
                      - onDemandMaxCreditUsage
                      - pgStatStatementsResetFrequency
                      - pmSystemPrompt
                      - prTitleInstructions
                      - pullRequestInsightsEnabled
                      - shouldSignCommits
                      - slackReviewOnTembo
                      - slowQueryThresholdMs
                      - sshPublicKeys
                      - weeklyReportEnabled
                    additionalProperties: false
                required:
                  - organizationId
                  - settings
                additionalProperties: false
        '400':
          description: Invalid request or missing organization information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '403':
          description: Organization administrator access is required
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Organization resource not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '409':
          description: Organization operation conflicts with existing state
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Organization operation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '503':
          description: Required organization storage is unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
      security:
        - apiKey: []
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: >
            import Tembo from '@tembo-io/sdk';


            const client = new Tembo();


            const setting = await
            client.organizations.settings.retrieve('organizationId');
        - lang: rust
          label: Rust SDK
          source: >
            use tembo_rs::*;


            let client = Tembo::from_env()?;


            let response =
            client.organizations().settings().retrieve("example").send().await?;
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

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