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

# /zefix/companies

> Get Swiss company details by EHRA ID or UID

**Price:** 1 credit

**⚠️ Common errors:** 412: Company not found in the Swiss commercial register



## OpenAPI

````yaml /openapi/company-registries.json post /api/zefix/companies
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/zefix/companies:
    post:
      tags:
        - /zefix
      summary: /zefix/companies
      description: >-
        Get Swiss company details by EHRA ID or UID


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Company not found in the Swiss commercial
        register
      operationId: __api_zefix_companies_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ZefixCompanyPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ZefixCompany'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ZefixCompanyPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        company:
          type: string
      type: object
      required:
        - company
    ZefixCompany:
      properties:
        '@type':
          type: string
          default: ZefixCompany
        ehraid:
          anyOf:
            - type: integer
            - type: 'null'
        name:
          type: string
        uid:
          anyOf:
            - type: string
            - type: 'null'
        uid_formatted:
          anyOf:
            - type: string
            - type: 'null'
        chid:
          anyOf:
            - type: string
            - type: 'null'
        chid_formatted:
          anyOf:
            - type: string
            - type: 'null'
        legal_seat:
          anyOf:
            - type: string
            - type: 'null'
        legal_seat_id:
          anyOf:
            - type: integer
            - type: 'null'
        register_office_id:
          anyOf:
            - type: integer
            - type: 'null'
        legal_form_id:
          anyOf:
            - type: integer
            - type: 'null'
        status:
          anyOf:
            - type: string
            - type: 'null'
        shab_date:
          anyOf:
            - type: string
            - type: 'null'
        delete_date:
          anyOf:
            - type: string
            - type: 'null'
        cantonal_excerpt_web:
          anyOf:
            - type: string
            - type: 'null'
        purpose:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - $ref: '#/components/schemas/ZefixAddress'
            - type: 'null'
        translations:
          items:
            type: string
          type: array
        old_names:
          items:
            $ref: '#/components/schemas/ZefixOldName'
          type: array
        audit_firms:
          items:
            $ref: '#/components/schemas/ZefixAuditFirm'
          type: array
        main_offices:
          items:
            $ref: '#/components/schemas/ZefixRelatedCompany'
          type: array
        further_main_offices:
          items:
            $ref: '#/components/schemas/ZefixRelatedCompany'
          type: array
        branch_offices:
          items:
            $ref: '#/components/schemas/ZefixRelatedCompany'
          type: array
        has_taken_over:
          items:
            $ref: '#/components/schemas/ZefixRelatedCompany'
          type: array
        was_taken_over_by:
          items:
            $ref: '#/components/schemas/ZefixRelatedCompany'
          type: array
      type: object
      required:
        - name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    ZefixAddress:
      properties:
        '@type':
          type: string
          default: ZefixAddress
        organisation:
          anyOf:
            - type: string
            - type: 'null'
        care_of:
          anyOf:
            - type: string
            - type: 'null'
        street:
          anyOf:
            - type: string
            - type: 'null'
        house_number:
          anyOf:
            - type: string
            - type: 'null'
        addon:
          anyOf:
            - type: string
            - type: 'null'
        po_box:
          anyOf:
            - type: string
            - type: 'null'
        town:
          anyOf:
            - type: string
            - type: 'null'
        swiss_zip_code:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ZefixOldName:
      properties:
        '@type':
          type: string
          default: ZefixOldName
        name:
          anyOf:
            - type: string
            - type: 'null'
        ehraid:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
    ZefixAuditFirm:
      properties:
        '@type':
          type: string
          default: ZefixAuditFirm
        name:
          anyOf:
            - type: string
            - type: 'null'
        ehraid:
          anyOf:
            - type: integer
            - type: 'null'
        uid:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ZefixRelatedCompany:
      properties:
        '@type':
          type: string
          default: ZefixRelatedCompany
        name:
          anyOf:
            - type: string
            - type: 'null'
        ehraid:
          anyOf:
            - type: integer
            - type: 'null'
        uid:
          anyOf:
            - type: string
            - type: 'null'
        legal_seat:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````