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

# Get Repository Summary

> Get repository summary data for a specific repository.

**Required Scope:** `read:repo`
**Security:** Organization-level access control with resource validation

Args:
    repo_id: Repository ID
    auth: Authentication context
    
Returns:
    Repository summary data including architecture patterns, auth logic, and RAG context
    
Raises:
    401: Unauthorized (invalid token/API key)
    403: Forbidden (insufficient scope or no access to repo)
    404: Repository or summary not found
    500: Internal server error



## OpenAPI

````yaml api-reference/openapi.json get /api/repositories/{repo_id}/summary
openapi: 3.1.0
info:
  title: Enforster AI API
  description: Enforster AI API for code analysis and security scanning.
  version: 1.8.0
servers: []
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /api/repositories/{repo_id}/summary:
    get:
      summary: Get Repository Summary
      description: |-
        Get repository summary data for a specific repository.

        **Required Scope:** `read:repo`
        **Security:** Organization-level access control with resource validation

        Args:
            repo_id: Repository ID
            auth: Authentication context
            
        Returns:
            Repository summary data including architecture patterns, auth logic, and RAG context
            
        Raises:
            401: Unauthorized (invalid token/API key)
            403: Forbidden (insufficient scope or no access to repo)
            404: Repository or summary not found
            500: Internal server error
      operationId: get_repository_summary_api_repositories__repo_id__summary_get
      parameters:
        - name: repo_id
          in: path
          required: true
          schema:
            type: string
            title: Repo Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RepositorySummaryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    RepositorySummaryResponse:
      properties:
        id:
          type: string
          title: Id
        repo_id:
          type: string
          title: Repo Id
        org_id:
          type: string
          title: Org Id
        architecture_pattern:
          anyOf:
            - type: string
            - type: 'null'
          title: Architecture Pattern
        auth_logic_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Auth Logic Summary
        trust_boundaries:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Trust Boundaries
        business_logic_flows:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Business Logic Flows
        cross_file_dependencies:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Cross File Dependencies
        rag_context:
          anyOf:
            - type: string
            - type: 'null'
          title: Rag Context
        security_context:
          anyOf:
            - type: string
            - type: 'null'
          title: Security Context
        data_flow_analysis:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Data Flow Analysis
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - repo_id
        - org_id
      title: RepositorySummaryResponse
      description: Response model for repository summary data.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Use an API key in the X-API-Key header.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk JWT bearer token.

````