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

# List companies where the company holds a role (AG Grid)

> Returns a paginated list of the companies in which this company itself holds a registered position today (no end date): auditor firm, komplementär or bolagsman of a partnership, administrator (förvaltare), board member. Ended positions are listed by POST /companies/{id}/assignments/history. Each row is one position with its start and, when Bolagsverket registered one, the natural person acting for the company in it (for an auditor firm the auditor in charge) by that person's current name and PersonId; a protected identity is withheld. The request body follows the AG Grid server-side row model; column ids are prefixed a_ (the position), c_ (the company's summary), d_ (the company) and r_ (the acting person).

Pro+ tier

Returns the companies in which this company itself holds a registered position today: as audit firm, as general partner (komplementär) or partner (bolagsman) of a partnership, as administrator (förvaltare) or as board member. One row per position. The positions that have ended are in [ended roles](/api-lens/companies/list-the-companys-ended-roles-in-other-companies-ag-grid), and the whole list as a file in the [CSV export](/api-lens/companies/export-the-companys-roles-in-other-companies-as-csv).

The request body is the grid request described in [Pagination](/api-lens/pagination).

## Columns

The prefix of a column id says where the value comes from: `a_` the position, `c_` the company's summary, `d_` the company, `r_` the person acting for the company in the position. Sort and filter on these ids.

| Column | Description |
| - | - |
| `a_CompanyId` | The internal ID of the company the position is in |
| `d_CompanyRegistrationNumber` | Its organisation number; `d_CompanyRegistrationNumberFormatted` has the hyphen |
| `c_LegalName` | Its name |
| `a_PositionType` | The position code, for example `REV` (auditor), `KP` (general partner), `BO` (partner), `FÖRVALTARE` (administrator) or `LE` (board member) |
| `a_PositionDescription` | The position as registered |
| `a_PositionStart`, `a_PositionEnd` | When the position started and ended |
| `r_RepresentedByPersonName`, `r_RepresentedByPersonId` | The natural person registered as acting for the company in the position, such as an audit firm's auditor in charge. Empty when none is registered or the person has a protected identity |
| `c_SNICodes` | The company's industry codes |
| `c_Period1`, `c_Period1_IS_NetSalesK`, `c_Period1_IS_OperatingProfitOrLossK`, `c_Period1_FN_NumberOfEmployees` | Its latest financial year: net sales and operating profit in thousands, and the number of employees |
| `c_IntelligenceScoreTotal` | Its risk indicator score |
| `c_KFM_DebtBalanceTotalAmountInSEK`, `c_KFM_RecordOfNonPaymentNumberOfCases` | Its debts with the enforcement authority and its number of payment remarks |
| `c_LastCompanyStatusType`, `c_LastCompanyStatusDate`, `c_LastCompanyActivityStatus` | Its latest status, with its date, and its activity status; `LastCompanyStatusDescriptionSv` and `c_LastCompanyActivityStatusDescription` give them as text |
| `d_IsCeased`, `d_CeasedDate` | Whether and when it ceased |


## OpenAPI

````yaml post /companies/{id}/assignments
openapi: 3.1.1
info:
  title: TIC Lens API
  description: "The TIC Lens API provides programmatic access to company, person, property, vehicle, and order data.\r\n\r\n## Authentication\r\n\r\nAll requests require an API key passed via the `x-api-key` header:\r\n\r\n```bash\r\ncurl -H \"x-api-key: YOUR_API_KEY\" https://lens-api.tic.io/companies/123\r\n```\r\n\r\nAPI keys are managed through the TIC Lens web application under **Settings → API Keys**.\r\n\r\n## Base URL\r\n\r\n| Environment | URL |\r\n|-------------|-----|\r\n| Production  | `https://lens-api.tic.io` |\r\n\r\n## Feature Access\r\n\r\nEndpoints are gated by your subscription plan. If your plan does not include a feature, the endpoint will return `403 Forbidden`.\r\n\r\n## Rate Limits\r\n\r\nRate limits are applied per API key. If you exceed the limit, requests will return `429 Too Many Requests`.\r\n\r\n## Response Format\r\n\r\nAll responses are JSON. Null values are omitted from responses.\r\n"
  version: v1
servers:
  - url: https://lens-api.tic.io
security:
  - ApiKey: []
tags:
  - name: Addresses
  - name: Bolagsverket
  - name: Brf
  - name: Companies
  - name: CompanyReports
  - name: Documents
  - name: FlightImages
  - name: Free
  - name: Orders
  - name: OrdersExports
  - name: PaymentControl
  - name: PaymentControlImport
  - name: Persons
  - name: Properties
  - name: PublicSearch
  - name: Screening
  - name: SearchAutocomplete
  - name: Sentinel
  - name: ServingPermits
  - name: Team
  - name: Teams
  - name: Vehicles
  - name: WatchList
paths:
  /companies/{id}/assignments:
    post:
      tags:
        - Companies
      summary: List companies where the company holds a role (AG Grid)
      description: >-
        Returns a paginated list of the companies in which this company itself
        holds a registered position today (no end date): auditor firm,
        komplementär or bolagsman of a partnership, administrator (förvaltare),
        board member. Ended positions are listed by POST
        /companies/{id}/assignments/history. Each row is one position with its
        start and, when Bolagsverket registered one, the natural person acting
        for the company in it (for an auditor firm the auditor in charge) by
        that person's current name and PersonId; a protected identity is
        withheld. The request body follows the AG Grid server-side row model;
        column ids are prefixed a_ (the position), c_ (the company's summary),
        d_ (the company) and r_ (the acting person).
      operationId: GetCompanyAssignments
      parameters:
        - name: id
          in: path
          description: Internal company ID
          required: true
          schema:
            type: integer
            format: int32
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/Ormeo_Web_Lens_Models_AGGrid_AGGridRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/Ormeo_Web_Lens_Models_AGGrid_AGGridRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/Ormeo_Web_Lens_Models_AGGrid_AGGridRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/Ormeo_Web_Lens_Models_AGGrid_AGGridRequest'
      responses:
        '200':
          description: AG Grid page of CompanyAssignment_Dto rows
        '404':
          description: Company not found or not accessible
components:
  schemas:
    Ormeo_Web_Lens_Models_AGGrid_AGGridRequest:
      type: object
      properties:
        startRow:
          type: integer
          format: int32
        endRow:
          type: integer
          format: int32
        rowGroupCols:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/Ormeo_Web_Lens_Models_AGGrid_RowGroupModel'
        groupKeys:
          type:
            - 'null'
            - array
          items:
            type: string
        filterModel:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/Ormeo_Web_Lens_Models_AGGrid_FilterModel'
        sortModel:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/Ormeo_Web_Lens_Models_AGGrid_SortModel'
      additionalProperties: false
    Ormeo_Web_Lens_Models_AGGrid_RowGroupModel:
      type: object
      properties:
        id:
          type:
            - 'null'
            - string
        displayName:
          type:
            - 'null'
            - string
        field:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Web_Lens_Models_AGGrid_FilterModel:
      type: object
      properties:
        columnName:
          type:
            - 'null'
            - string
        columnNameWithAlias:
          type:
            - 'null'
            - string
          readOnly: true
        filterType:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Web_Lens_Models_AGGrid_SortModel:
      type: object
      properties:
        sort:
          $ref: '#/components/schemas/Ormeo_Web_Lens_Models_AGGrid_SortOrder'
        colId:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Web_Lens_Models_AGGrid_SortOrder:
      enum:
        - asc
        - desc
      type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: x-api-key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.