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

# Get an analysis

> Retrieve a single analysis by id.



## OpenAPI

````yaml /openapi.json get /v1/analyses/{analysis_id}
openapi: 3.1.0
info:
  title: Passu Public API
  summary: >-
    External read-only API for sectors, companies, events, metrics, and
    analyses.
  description: >-
    The Passu Public API is a read-only external API intended for
    server-to-server integrations.
  version: v1
servers:
  - url: https://api.passu.ai
    description: Production
security: []
tags:
  - name: auth
  - name: sectors
  - name: companies
  - name: events
  - name: metrics
  - name: analyses
paths:
  /v1/analyses/{analysis_id}:
    get:
      tags:
        - analyses
      summary: Get an analysis
      description: Retrieve a single analysis by id.
      operationId: getAnalysis
      parameters:
        - name: analysis_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Analysis Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Analysis'
        '401':
          description: Authentication failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Authenticated but not permitted to access this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    Analysis:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        analysis_type:
          $ref: '#/components/schemas/AnalysisType'
        scope:
          oneOf:
            - $ref: '#/components/schemas/EventAnalysisScope'
            - $ref: '#/components/schemas/CompanyQuarterAnalysisScope'
            - $ref: '#/components/schemas/SectorQuarterAnalysisScope'
          title: Scope
          discriminator:
            propertyName: scope_type
            mapping:
              COMPANY_QUARTER:
                $ref: '#/components/schemas/CompanyQuarterAnalysisScope'
              EVENT:
                $ref: '#/components/schemas/EventAnalysisScope'
              SECTOR_QUARTER:
                $ref: '#/components/schemas/SectorQuarterAnalysisScope'
        sections:
          items:
            $ref: '#/components/schemas/AnalysisSection'
          type: array
          title: Sections
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - analysis_type
        - scope
        - updated_at
      title: Analysis
    Problem:
      properties:
        type:
          type: string
          title: Type
        title:
          type: string
          title: Title
        status:
          type: integer
          title: Status
        detail:
          type: string
          title: Detail
        request_id:
          type: string
          title: Request Id
        instance:
          anyOf:
            - type: string
            - type: 'null'
          title: Instance
        errors:
          anyOf:
            - items:
                $ref: '#/components/schemas/ValidationErrorItem'
              type: array
            - type: 'null'
          title: Errors
      type: object
      required:
        - type
        - title
        - status
        - detail
        - request_id
      title: Problem
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AnalysisType:
      type: string
      enum:
        - EVENT
        - COMPANY_QUARTERLY
        - SECTOR_QUARTERLY
      title: AnalysisType
      description: |-
        Public analysis-type enum mirroring the hierarchy level.

        Event sub-kind (earnings / conference / news) is derivable from the
        linked corporate event and deliberately not reflected here.
    EventAnalysisScope:
      properties:
        scope_type:
          type: string
          const: EVENT
          title: Scope Type
          default: EVENT
        event_id:
          type: string
          format: uuid
          title: Event Id
      type: object
      required:
        - event_id
      title: EventAnalysisScope
    CompanyQuarterAnalysisScope:
      properties:
        scope_type:
          type: string
          const: COMPANY_QUARTER
          title: Scope Type
          default: COMPANY_QUARTER
        company_id:
          type: string
          format: uuid
          title: Company Id
        fiscal_year:
          type: integer
          title: Fiscal Year
        fiscal_quarter:
          type: integer
          title: Fiscal Quarter
      type: object
      required:
        - company_id
        - fiscal_year
        - fiscal_quarter
      title: CompanyQuarterAnalysisScope
    SectorQuarterAnalysisScope:
      properties:
        scope_type:
          type: string
          const: SECTOR_QUARTER
          title: Scope Type
          default: SECTOR_QUARTER
        sector_id:
          type: string
          format: uuid
          title: Sector Id
        fiscal_year:
          type: integer
          title: Fiscal Year
        fiscal_quarter:
          type: integer
          title: Fiscal Quarter
      type: object
      required:
        - sector_id
        - fiscal_year
        - fiscal_quarter
      title: SectorQuarterAnalysisScope
    AnalysisSection:
      properties:
        section_type:
          $ref: '#/components/schemas/AnalysisSectionType'
        sentences:
          items:
            $ref: '#/components/schemas/Sentence'
          type: array
          title: Sentences
      type: object
      required:
        - section_type
      title: AnalysisSection
    ValidationErrorItem:
      properties:
        field:
          type: string
          title: Field
        message:
          type: string
          title: Message
      type: object
      required:
        - field
        - message
      title: ValidationErrorItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    AnalysisSectionType:
      type: string
      enum:
        - OPERATIONAL_SUMMARY
        - CREDIT_SUMMARY
        - IMPORTANT_CHANGES
        - TAKEAWAYS
      title: AnalysisSectionType
      description: Public analysis-section-type enum. Decoupled from the ORM enum.
    Sentence:
      properties:
        text:
          type: string
          title: Text
        quotes:
          items:
            $ref: '#/components/schemas/Quote'
          type: array
          title: Quotes
      type: object
      required:
        - text
      title: Sentence
    Quote:
      properties:
        quote_type:
          $ref: '#/components/schemas/QuoteType'
        fact_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Fact Id
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
        author:
          anyOf:
            - type: string
            - type: 'null'
          title: Author
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        table_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Table Name
        row_names:
          items:
            type: string
          type: array
          title: Row Names
      type: object
      required:
        - quote_type
      title: Quote
    QuoteType:
      type: string
      enum:
        - TEXT
        - TABLE
        - XBRL_FACT
      title: QuoteType
      description: >-
        Public quote-type enum. Owned by the public contract, decoupled from the
        ORM enum.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````