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

# Get a single repository by ID, including freshness fields.

> Fetch one repository by ID, scoped to the authenticated workspace via its connected org. Returns the full row including freshness fields; raises 404 if no match.



## OpenAPI

````yaml /openapi.json get /api/v1/repositories/{repo_id}
openapi: 3.1.0
info:
  description: Change Impact Engine for multi-repo systems
  title: Riftmap
  version: 1.12.3
servers: []
security: []
paths:
  /api/v1/repositories/{repo_id}:
    get:
      tags:
        - repositories
      summary: Get a single repository by ID, including freshness fields.
      description: >-
        Fetch one repository by ID, scoped to the authenticated workspace via
        its connected org. Returns the full row including freshness fields;
        raises 404 if no match.
      operationId: get_repository_api_v1_repositories__repo_id__get
      parameters:
        - in: path
          name: repo_id
          required: true
          schema:
            format: uuid
            title: Repo Id
            type: string
        - in: header
          name: X-Workspace-Id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Workspace-Id
        - in: cookie
          name: riftmap_access
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Riftmap Access
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RepositoryResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    RepositoryResponse:
      description: Basic repository record.
      properties:
        archived:
          title: Archived
          type: boolean
        clone_url:
          title: Clone Url
          type: string
        connected_org_id:
          format: uuid
          title: Connected Org Id
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        default_branch:
          title: Default Branch
          type: string
        full_path:
          title: Full Path
          type: string
        id:
          format: uuid
          title: Id
          type: string
        last_activity_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Activity At
        last_commit_sha:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Commit Sha
        last_scanned_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Scanned At
        name:
          title: Name
          type: string
        platform_id:
          title: Platform Id
          type: string
      required:
        - id
        - connected_org_id
        - platform_id
        - name
        - full_path
        - clone_url
        - default_branch
        - last_scanned_at
        - last_commit_sha
        - last_activity_at
        - archived
        - created_at
      title: RepositoryResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-Key
      type: apiKey
    HTTPBearer:
      description: API key as Bearer token (rfm_live_... prefix)
      scheme: bearer
      type: http

````