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

# List repositories

> List repositories in the authenticated organization. Defaults to enabled repositories.



## OpenAPI

````yaml https://api.tembo.io/public-api/openapi/public get /v1/repositories
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/repositories:
    get:
      tags:
        - Repositories
      summary: List repositories
      description: >-
        List repositories in the authenticated organization. Defaults to enabled
        repositories.
      operationId: listRepositories
      parameters:
        - in: query
          name: cursor
          schema:
            type: string
            format: uuid
          description: >-
            Continuation cursor from the previous response nextCursor. Omit for
            the first page; null nextCursor means there are no more pages.
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
          description: >-
            Maximum number of items to return in one page. Use nextCursor from
            the response to fetch more items.
        - in: query
          name: enabled
          schema:
            type: string
            enum:
              - all
              - 'true'
              - 'false'
            default: all
          description: >-
            Select enabled repositories, disabled repositories, or all. The
            public API defaults to enabled repositories.
        - in: query
          name: ids
          schema:
            type: array
            items:
              type: string
              format: uuid
            minItems: 1
            maxItems: 100
          description: Filter by repository IDs, supplied as a comma-separated list.
        - in: query
          name: integrationId
          schema:
            type: string
            format: uuid
          description: Filter repositories belonging to this integration.
        - in: query
          name: order
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
          description: 'Sort direction: ascending or descending.'
        - in: query
          name: search
          schema:
            type: string
            minLength: 1
            maxLength: 500
          description: Search repository names and owners.
        - in: query
          name: sort
          schema:
            type: string
            enum:
              - createdAt
              - integration
              - name
              - pullRequests
              - updatedAt
            default: pullRequests
          description: >-
            Sort by creation time, integration, name, pull request count, or
            update time.
      responses:
        '200':
          description: List repositories
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        baseBranch:
                          type:
                            - string
                            - 'null'
                        createdAt:
                          type: string
                          format: date-time
                        description:
                          type:
                            - string
                            - 'null'
                        enabledAt:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        owner:
                          type:
                            - string
                            - 'null'
                        provider:
                          type: object
                          properties:
                            displayName:
                              type: string
                              minLength: 1
                              maxLength: 500
                            integrationId:
                              type: string
                              format: uuid
                            type:
                              type: string
                              minLength: 1
                              maxLength: 100
                          required:
                            - displayName
                            - integrationId
                            - type
                          additionalProperties: false
                        targetBranch:
                          type:
                            - string
                            - 'null'
                        updatedAt:
                          type: string
                          format: date-time
                        url:
                          type: string
                      required:
                        - baseBranch
                        - createdAt
                        - description
                        - enabledAt
                        - id
                        - name
                        - owner
                        - provider
                        - targetBranch
                        - updatedAt
                        - url
                      additionalProperties: false
                  nextCursor:
                    type:
                      - string
                      - 'null'
                    format: uuid
                required:
                  - items
                  - nextCursor
                additionalProperties: false
        '400':
          description: >-
            Invalid request or missing required organization or user
            information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '401':
          description: Provider authentication failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '403':
          description: Provider authorization failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Repository, integration, or file not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '409':
          description: Repository conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Repository operation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '502':
          description: Repository provider operation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '504':
          description: Repository provider operation timed out
          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 repository = await client.repositories.list({
              limit: 50,
              enabled: 'all',
              order: 'desc',
              sort: 'pullRequests',
            });
        - lang: rust
          label: Rust SDK
          source: |
            use tembo_rs::*;

            let client = Tembo::from_env()?;

            let response = client.repositories().list().send().await?;
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

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