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

# Get Company History

> Get the history of a company by its id.

This endpoint returns the company's history including:
- Historical events
- Representatives and their changes
- Limited partners and their changes
- Prokura and their changes



## OpenAPI

````yaml get /companies/{company_id}/history
openapi: 3.1.0
info:
  title: Registercheck API
  version: 1.0.0
servers:
  - url: https://jobs-api.registercheck.de/api/v2
security: []
paths:
  /companies/{company_id}/history:
    get:
      tags:
        - Companies
      summary: Get Company History
      description: |-
        Get the history of a company by its id.

        This endpoint returns the company's history including:
        - Historical events
        - Representatives and their changes
        - Limited partners and their changes
        - Prokura and their changes
      operationId: get_company_history_companies__company_id__history_get
      parameters:
        - name: company_id
          in: path
          required: true
          schema:
            type: string
            title: Company Id
        - name: X-Visitor-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Visitor-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyHistoryResponse'
        '404':
          description: Company or history not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
      security:
        - HTTPBearer: []
        - APIKeyHeader: []
components:
  schemas:
    CompanyHistoryResponse:
      properties:
        company_id:
          type: string
          title: Company Id
          description: Unique identifier of the company
        company_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Name
          description: Current name of the company
        register_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Register Number
          description: Current registration number of the company
        company_history:
          anyOf:
            - $ref: '#/components/schemas/CompanyHistory'
            - type: 'null'
          description: Historical events and changes for the company
      type: object
      required:
        - company_id
      title: CompanyHistoryResponse
      description: Response model for company history endpoint
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CompanyHistory:
      properties:
        events:
          anyOf:
            - items:
                $ref: '#/components/schemas/HistoryEvent'
              type: array
            - type: 'null'
          title: Events
          description: List of historical events for the company
      type: object
      title: CompanyHistory
      description: Model for company history with flattened structure
    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
    HistoryEvent:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the historical event
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
          description: >-
            Type of historical event (e.g., COMPANY_PURPOSE, LEGAL_FORM or
            REGISTERED_CAPITAL)
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Status of the event (ADDED or REMOVED)
        event_value:
          anyOf:
            - type: string
            - type: 'null'
          title: Event Value
          description: Value or description of the event
        event_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Event Date
          description: Date when the event occurred
        entry_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Entry Number
          description: Register entry number
        registered_capital:
          anyOf:
            - type: string
            - type: 'null'
          title: Registered Capital
          description: Registered capital at the time of event
        company_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Name
          description: Company name at the time of event
        address:
          anyOf:
            - type: string
            - type: 'null'
          title: Address
          description: Company address at the time of event
        location:
          anyOf:
            - type: string
            - type: 'null'
          title: Location
          description: Company location at the time of event
        company_purpose:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Purpose
          description: Company purpose at the time of event
        general_representation_arrangement:
          anyOf:
            - type: string
            - type: 'null'
          title: General Representation Arrangement
          description: General representation arrangement
        legal_form:
          anyOf:
            - type: string
            - type: 'null'
          title: Legal Form
          description: Legal form at the time of event
        other_legal_relationships:
          anyOf:
            - type: string
            - type: 'null'
          title: Other Legal Relationships
          description: Other legal relationships
        comments:
          anyOf:
            - type: string
            - type: 'null'
          title: Comments
          description: Additional comments about the event
        prokura_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Prokura Id
          description: Associated prokura id if applicable
        representatives:
          anyOf:
            - items:
                $ref: '#/components/schemas/HistoryRepresentative'
              type: array
            - type: 'null'
          title: Representatives
          description: Representatives involved in this event
      type: object
      required:
        - id
      title: HistoryEvent
      description: Model for historical events
    HistoryRepresentative:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the representative
        is_company:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Company
          description: Whether this representative is a company (legal entity)
        city:
          anyOf:
            - type: string
            - type: 'null'
          title: City
          description: City of residence or registered office
        titles:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Titles
          description: Academic or professional titles
        first_name:
          anyOf:
            - type: string
            - type: 'null'
          title: First Name
          description: First name of the person
        last_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Name
          description: Last name of the person
        birth_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Birth Name
          description: Birth name if different from current name
        birth_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Birth Date
          description: Date of birth
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
          description: Role in the company
        job:
          anyOf:
            - type: string
            - type: 'null'
          title: Job
          description: Job title or position
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Full name of the representative
        register_court:
          anyOf:
            - type: string
            - type: 'null'
          title: Register Court
          description: Register court (for legal entity representatives)
        register_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Register Number
          description: Register number (for legal entity representatives)
        register_prefix:
          anyOf:
            - type: string
            - type: 'null'
          title: Register Prefix
          description: Register prefix (for legal entity representatives)
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Current status of the representation
        representation_rule:
          anyOf:
            - type: string
            - type: 'null'
          title: Representation Rule
          description: How representation authority is exercised
        is_general_partner:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is General Partner
          description: Whether this is a general partner
        person:
          anyOf:
            - $ref: '#/components/schemas/HistoryPerson'
            - type: 'null'
          description: Associated person information
        company:
          anyOf:
            - $ref: '#/components/schemas/HistoryCompany'
            - type: 'null'
          description: Associated company information
      type: object
      required:
        - id
      title: HistoryRepresentative
      description: Model for representative in history
    HistoryPerson:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: Unique identifier for the person
        full_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Full Name
          description: Full name of the person
        first_name:
          anyOf:
            - type: string
            - type: 'null'
          title: First Name
          description: First name of the person
        last_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Name
          description: Last name of the person
        birth_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Birth Date
          description: Date of birth
      type: object
      title: HistoryPerson
      description: Model for a person in history
    HistoryCompany:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: Unique identifier for the company
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Company name
        register_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Register Number
          description: Company registration number
        register_court:
          anyOf:
            - type: string
            - type: 'null'
          title: Register Court
          description: Court where the company is registered
      type: object
      title: HistoryCompany
      description: Model for a company in history
  securitySchemes:
    HTTPBearer:
      type: http
      description: Enter your API key
      scheme: bearer
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````