Cernion Companies API

Company entity management (v0.20.3). Groups multiple BDEW market-partner codes that belong to the same economic unit (Konzernverbund / Stadtwerk). Supports autoDiscover (cernion_market_partners query → draft → confirm flow) and manual member management. enrichResults enriches market-partner search results with companyId + marketRole.

Operations 12

POST /api/company/companies Create a company entity (Stadtwerk/Konzernverbund) #
GET /api/company/companies List / search company entities #
PUT /api/company/companies/:id/confirm Confirm draft company (transition draft → active) #
GET /api/company/companies/:id Get company entity by ID #
PUT /api/company/companies/:id Update company entity (name, members) #
DELETE /api/company/companies/:id Archive (soft-delete) a company entity #
GET /api/companies List / search company entities #
POST /api/companies Create a company entity (Stadtwerk/Konzernverbund) #
GET /api/companies/:id Get company entity by ID #
PUT /api/companies/:id Update company entity (name, members) #
DELETE /api/companies/:id Archive (soft-delete) a company entity #
PUT /api/companies/:id/confirm Confirm draft company (transition draft → active) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cernion-de:cernion-de-companies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cernion-de-companies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cernion Energy Tools Companies API
  version: 0.99.22
  description: 'MicroService Agent System for Energy Markets - REST API with AI integration.


    CERNION_TOKEN: request at https://cernion.de/ or by email: dev@stromdao.com.


    For the public instance at https://api.cernion.de/, create your token at https://cernion.de/cet-token/.'
servers:
- url: https://api.cernion.de
  description: API Server
tags:
- name: Companies
  description: Company entity management (v0.20.3). Groups multiple BDEW market-partner codes that belong to the same economic unit (Konzernverbund / Stadtwerk). Supports autoDiscover (cernion_market_partners query → draft → confirm flow) and manual member management. enrichResults enriches market-partner search results with companyId + marketRole.
paths:
  /api/company/companies:
    post:
      summary: Create a company entity (Stadtwerk/Konzernverbund)
      tags:
      - Companies
      operationId: company_create
      parameters:
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - displayName
              properties:
                displayName:
                  type: string
                  example: Stadtwerke Heidelberg
                legalName:
                  type: string
                  example: Stadtwerke Heidelberg GmbH
                members:
                  type: array
                  example: []
                  items:
                    type: object
                    properties:
                      bdewCode:
                        type: string
                        example: '9900277000000'
                      role:
                        type: string
                        enum:
                        - VNB
                        - ÜNB
                        - MSB
                        - Lieferant
                        - BKV
                        - Direktvermarkter
                        - other
                      legalEntity:
                        type: string
                      mastrId:
                        type: string
                autoDiscover:
                  type: boolean
                  default: false
                autoConfirm:
                  type: boolean
                  default: false
                query:
                  type: string
                  description: Search term for autoDiscover (e.g. company name)
                  example: Heidelberg
                token:
                  type: string
                  description: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.
            examples:
              manualCreate:
                summary: Create company with explicit members
                value:
                  displayName: Stadtwerke Heidelberg
                  legalName: Stadtwerke Heidelberg GmbH & Co. KG
                  members:
                  - bdewCode: '9900277000000'
                    role: VNB
                    legalEntity: SW HD Netze GmbH
                  - bdewCode: '9910277000001'
                    role: Lieferant
              autoDiscover:
                summary: Auto-discover via MCP then confirm
                value:
                  displayName: Stadtwerke Heidelberg
                  autoDiscover: true
                  autoConfirm: false
                  query: Heidelberg
    get:
      summary: List / search company entities
      tags:
      - Companies
      operationId: company_list
      parameters:
      - name: query
        in: query
        required: false
        schema:
          type: string
          example: Stadtwerke Heidelberg
          description: Search by company name (case-insensitive)
      - name: limit
        in: query
        required: false
        schema:
          type: number
          default: 10
      - name: status
        in: query
        required: false
        schema:
          type: string
          enum:
          - draft
          - active
          - archived
          - all
          default: active
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /api/company/companies/:id/confirm:
    put:
      summary: Confirm draft company (transition draft → active)
      tags:
      - Companies
      operationId: company_confirm
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.
  /api/company/companies/:id:
    get:
      summary: Get company entity by ID
      tags:
      - Companies
      operationId: company_get
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
    put:
      summary: Update company entity (name, members)
      tags:
      - Companies
      operationId: company_update
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.
    delete:
      summary: Archive (soft-delete) a company entity
      tags:
      - Companies
      operationId: company_delete
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.
  /api/companies:
    get:
      summary: List / search company entities
      tags:
      - Companies
      operationId: getApiCompanies
      parameters:
      - name: query
        in: query
        required: false
        schema:
          type: string
          example: Stadtwerke Heidelberg
          description: Search by company name (case-insensitive)
      - name: limit
        in: query
        required: false
        schema:
          type: number
          default: 10
      - name: status
        in: query
        required: false
        schema:
          type: string
          enum:
          - draft
          - active
          - archived
          - all
          default: active
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      x-operation-id-source: normalized
      x-operation-id-original: company_list
    post:
      summary: Create a company entity (Stadtwerk/Konzernverbund)
      tags:
      - Companies
      operationId: postApiCompanies
      parameters:
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - displayName
              properties:
                displayName:
                  type: string
                  example: Stadtwerke Heidelberg
                legalName:
                  type: string
                  example: Stadtwerke Heidelberg GmbH
                members:
                  type: array
                  example: []
                  items:
                    type: object
                    properties:
                      bdewCode:
                        type: string
                        example: '9900277000000'
                      role:
                        type: string
                        enum:
                        - VNB
                        - ÜNB
                        - MSB
                        - Lieferant
                        - BKV
                        - Direktvermarkter
                        - other
                      legalEntity:
                        type: string
                      mastrId:
                        type: string
                autoDiscover:
                  type: boolean
                  default: false
                autoConfirm:
                  type: boolean
                  default: false
                query:
                  type: string
                  description: Search term for autoDiscover (e.g. company name)
                  example: Heidelberg
                token:
                  type: string
                  description: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.
            examples:
              manualCreate:
                summary: Create company with explicit members
                value:
                  displayName: Stadtwerke Heidelberg
                  legalName: Stadtwerke Heidelberg GmbH & Co. KG
                  members:
                  - bdewCode: '9900277000000'
                    role: VNB
                    legalEntity: SW HD Netze GmbH
                  - bdewCode: '9910277000001'
                    role: Lieferant
              autoDiscover:
                summary: Auto-discover via MCP then confirm
                value:
                  displayName: Stadtwerke Heidelberg
                  autoDiscover: true
                  autoConfirm: false
                  query: Heidelberg
      x-operation-id-source: normalized
      x-operation-id-original: company_create
  /api/companies/:id:
    get:
      summary: Get company entity by ID
      tags:
      - Companies
      operationId: getApiCompanies:id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      x-operation-id-source: normalized
      x-operation-id-original: company_get
    put:
      summary: Update company entity (name, members)
      tags:
      - Companies
      operationId: putApiCompanies:id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.
      x-operation-id-source: normalized
      x-operation-id-original: company_update
    delete:
      summary: Archive (soft-delete) a company entity
      tags:
      - Companies
      operationId: deleteApiCompanies:id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.
      x-operation-id-source: normalized
      x-operation-id-original: company_delete
  /api/companies/:id/confirm:
    put:
      summary: Confirm draft company (transition draft → active)
      tags:
      - Companies
      operationId: putApiCompanies:idConfirm
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/TokenQuery'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.
      x-operation-id-source: normalized
      x-operation-id-original: company_confirm
components:
  parameters:
    TokenQuery:
      name: token
      in: query
      required: false
      schema:
        type: string
      description: Optional Cernion MCP token as URL query parameter. If provided, it overrides CERNION_TOKEN for this request. Prefer Authorization Bearer header in production to reduce token exposure in URLs/logs.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Optional Cernion MCP token. If not provided, falls back to CERNION_TOKEN from environment. Request token at https://cernion.de/ or by email: dev@stromdao.com.'