> ## 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 a sector

> Retrieve a single sector by id. ``?include_ancestors=true`` adds the
ancestor chain (root → parent) in one round-trip.



## OpenAPI

````yaml /openapi.json get /v1/sectors/{sector_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/sectors/{sector_id}:
    get:
      tags:
        - sectors
      summary: Get a sector
      description: |-
        Retrieve a single sector by id. ``?include_ancestors=true`` adds the
        ancestor chain (root → parent) in one round-trip.
      operationId: getSector
      parameters:
        - name: sector_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Sector Id
        - name: include_ancestors
          in: query
          required: false
          schema:
            type: boolean
            description: Include the ancestor chain (root → parent) in the response.
            default: false
            title: Include Ancestors
          description: Include the ancestor chain (root → parent) in the response.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SectorDetail'
        '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:
    SectorDetail:
      properties:
        sector:
          $ref: '#/components/schemas/Sector'
        ancestors:
          items:
            $ref: '#/components/schemas/Sector'
          type: array
          title: Ancestors
          default: []
      type: object
      required:
        - sector
      title: SectorDetail
    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
    Sector:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        level:
          type: integer
          title: Level
        parent_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Parent Id
        kind:
          $ref: '#/components/schemas/SectorKind'
      type: object
      required:
        - id
        - name
        - level
        - kind
      title: Sector
    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
    SectorKind:
      type: string
      enum:
        - STANDARD
        - CUSTOM
      title: SectorKind
      description: STI discriminator surfaced in API responses.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````