> ## 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.

# /brreg/companies/roles

> Get the registered roles (board members, CEO, auditor, etc.) of a Norwegian legal entity by its organization number. Each role includes the role group and type, the person (name, birth date) or the company holding it, and whether the role has been deregistered.

**Price:** 1 credit

**⚠️ Common errors:** 412: No legal entity found for the given organization number



## OpenAPI

````yaml /openapi/company-registries.json post /api/brreg/companies/roles
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/brreg/companies/roles:
    post:
      tags:
        - /brreg
      summary: /brreg/companies/roles
      description: >-
        Get the registered roles (board members, CEO, auditor, etc.) of a
        Norwegian legal entity by its organization number. Each role includes
        the role group and type, the person (name, birth date) or the company
        holding it, and whether the role has been deregistered.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: No legal entity found for the given
        organization number
      operationId: __api_brreg_companies_roles_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BrregCompaniesRolesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BrregRole'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BrregCompaniesRolesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        organization_number:
          type: string
      type: object
      required:
        - organization_number
    BrregRole:
      properties:
        '@type':
          type: string
          default: BrregRole
        group:
          anyOf:
            - type: string
            - type: 'null'
        group_description:
          anyOf:
            - type: string
            - type: 'null'
        type:
          anyOf:
            - type: string
            - type: 'null'
        type_description:
          anyOf:
            - type: string
            - type: 'null'
        person:
          anyOf:
            - $ref: '#/components/schemas/BrregRolePerson'
            - type: 'null'
        company:
          anyOf:
            - $ref: '#/components/schemas/BrregRoleCompany'
            - type: 'null'
        deregistered:
          type: boolean
          default: false
        order:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    BrregRolePerson:
      properties:
        '@type':
          type: string
          default: BrregRolePerson
        first_name:
          anyOf:
            - type: string
            - type: 'null'
        middle_name:
          anyOf:
            - type: string
            - type: 'null'
        last_name:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
        birth_date:
          anyOf:
            - type: string
            - type: 'null'
        is_dead:
          type: boolean
          default: false
      type: object
    BrregRoleCompany:
      properties:
        '@type':
          type: string
          default: BrregRoleCompany
        organization_number:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
        organization_form:
          anyOf:
            - type: string
            - type: 'null'
        is_deleted:
          type: boolean
          default: false
      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

````