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

# List GitLab repositories

> List repositories for a GitLab namespace



## OpenAPI

````yaml https://api.ravion.com/openapi.yaml get /gitlab/namespaces/{namespaceId}/repositories
openapi: 3.0.0
info:
  title: Ravion
  version: 0.0.0
servers:
  - url: https://api.ravion.com
security:
  - BearerAuth: []
tags:
  - name: Projects
  - name: Environments
  - name: Pipelines
  - name: PipelineRuns
  - name: TerraformResources
  - name: TerraformExecutionSummaries
  - name: PipelineStepExecutions
  - name: AwsCloudWatch
  - name: PipelineVersions
  - name: Organizations
  - name: Stacks
  - name: StackWorkspaces
  - name: Auth
  - name: OAuth
  - name: User
  - name: Health
  - name: Memberships
  - name: ServiceAccounts
  - name: AwsDefaultNetworks
  - name: AwsAccounts
  - name: ApiKeys
  - name: ExecutionEnvironments
  - name: ModuleDefinitions
  - name: ModuleVersions
  - name: ModuleInstances
  - name: DefaultValueDefinitions
  - name: DefaultValues
  - name: CodeSources
  - name: Github
  - name: Gitlab
  - name: Git
  - name: Values
  - name: Deployments
  - name: DeploymentResources
  - name: InfrastructureEvents
  - name: WebSocket
  - name: Describe
paths:
  /gitlab/namespaces/{namespaceId}/repositories:
    get:
      tags:
        - Gitlab
      summary: List GitLab repositories
      description: List repositories for a GitLab namespace
      operationId: ListGitLabRepositories
      parameters:
        - description: GitLab namespace ID
          in: path
          name: namespaceId
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/GitNamespaceTypeParam'
        - $ref: '#/components/parameters/PaginationQueryParams.cursor'
        - $ref: '#/components/parameters/PaginationQueryParams.limit'
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    $ref: '#/components/schemas/GitListRepositoriesResponse'
                required:
                  - data
                type: object
          description: The request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: The request is invalid or malformed.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You are not authenticated
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You do not have permission to access this resource.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Client error
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Server error
components:
  parameters:
    GitNamespaceTypeParam:
      in: query
      name: namespaceType
      schema:
        allOf:
          - $ref: '#/components/schemas/GitNamespaceType'
        nullable: true
    PaginationQueryParams.cursor:
      in: query
      name: cursor
      schema:
        nullable: true
        type: string
    PaginationQueryParams.limit:
      in: query
      name: limit
      schema:
        format: int32
        nullable: true
        type: integer
  schemas:
    GitListRepositoriesResponse:
      additionalProperties: false
      description: Paginated repository list response
      properties:
        data:
          description: List of repositories
          items:
            $ref: '#/components/schemas/GitRepository'
          type: array
        pageInfo:
          allOf:
            - $ref: '#/components/schemas/GitPageInfo'
          description: Pagination info
        totalCount:
          description: Total repository count in this page
          format: int32
          type: integer
      required:
        - data
        - pageInfo
        - totalCount
      type: object
    Errors.UserFacingErrorData:
      additionalProperties: false
      description: |-
        User-facing error presentation data.
        This is what the API returns to the frontend after formatting ErrorData
        using CEL templates from the error registry.

        Used for both:
        - Error fields on domain models (e.g., PipelineRun.error)
        - API error response bodies (HTTP 4xx/5xx responses)
      properties:
        action:
          allOf:
            - $ref: '#/components/schemas/Errors.Action'
          description: Optional action to help resolve the error
        code:
          description: Full error code, e.g., "Ravion:Pipeline:NOT_FOUND"
          type: string
        description:
          description: Additional description with more details
          type: string
        details:
          description: Structured details rendered as user-facing sections.
          items:
            $ref: '#/components/schemas/Errors.UserFacingErrorDetailSection'
          type: array
        isInternal:
          description: >-
            Indicates whether this error is internal (only set when
            ShowInternal=true).

            This allows SUPERADMINs to identify internal errors while viewing
            full details.
          type: boolean
        message:
          description: Main error message (required)
          type: string
        metadata:
          additionalProperties: {}
          description: >-
            Error params/metadata. Stripped for internal errors unless
            superadmin.
          type: object
        requestId:
          description: Request ID for correlating errors with server logs.
          type: string
      required:
        - code
        - message
      type: object
    GitNamespaceType:
      description: Git namespace type
      enum:
        - USER
        - ORGANIZATION
      type: string
    GitRepository:
      additionalProperties: false
      description: Repository info returned by all Git providers
      properties:
        collaborators:
          allOf:
            - $ref: '#/components/schemas/GitCollaboratorCount'
          description: Collaborator statistics
        defaultBranch:
          allOf:
            - $ref: '#/components/schemas/GitBranchRef'
          description: Default branch (alias for defaultBranchRef)
        defaultBranchRef:
          allOf:
            - $ref: '#/components/schemas/GitBranchRef'
          description: Default branch reference
        description:
          description: Repository description
          type: string
        foreignId:
          description: Provider-specific repository ID
          type: string
        isInNamespace:
          description: Whether repository belongs to a namespace (vs personal account)
          type: boolean
        isPrivate:
          description: Whether repository is private
          type: boolean
        name:
          description: Repository name, e.g. 'minsk'
          type: string
        nameWithOwner:
          description: Full name including owner, e.g. 'owner/repo'
          type: string
        owner:
          allOf:
            - $ref: '#/components/schemas/GitRepositoryOwner'
          description: Repository owner info
        pushedAt:
          description: Last push timestamp (ISO 8601)
          type: string
        url:
          description: Full URL to the repository
          type: string
      required:
        - foreignId
        - url
        - name
        - nameWithOwner
        - isInNamespace
        - isPrivate
        - description
        - owner
        - defaultBranchRef
        - defaultBranch
        - collaborators
        - pushedAt
      type: object
    GitPageInfo:
      additionalProperties: false
      description: Pagination info for external Git API responses
      properties:
        endCursor:
          description: Cursor for next page (page number)
          nullable: true
          type: string
        hasNextPage:
          description: Whether more results exist
          type: boolean
      required:
        - endCursor
        - hasNextPage
      type: object
    Errors.Action:
      additionalProperties: false
      description: Action to help user resolve the error
      properties:
        label:
          description: Button/link label text
          type: string
        url:
          description: URL to navigate to for resolution
          type: string
      required:
        - label
        - url
      type: object
    Errors.UserFacingErrorDetailSection:
      additionalProperties: false
      description: Structured user-facing error detail section.
      properties:
        items:
          description: List of detail values for this section.
          items:
            type: string
          type: array
        object:
          additionalProperties: {}
          description: Structured detail payload for object rendering.
          type: object
        render:
          description: Rendering hint for clients. Valid values are list or object.
          type: string
        title:
          description: Detail section title shown in the UI.
          type: string
      required:
        - title
        - render
      type: object
    GitCollaboratorCount:
      additionalProperties: false
      description: Collaborator statistics
      properties:
        totalCount:
          description: Total number of collaborators
          format: int32
          type: integer
      required:
        - totalCount
      type: object
    GitBranchRef:
      additionalProperties: false
      description: Branch reference
      properties:
        name:
          description: Branch name
          type: string
      required:
        - name
      type: object
    GitRepositoryOwner:
      additionalProperties: false
      description: Repository owner info
      properties:
        login:
          description: Owner's login/username
          type: string
      required:
        - login
      type: object
  securitySchemes:
    BearerAuth:
      scheme: Bearer
      type: http

````