Login

Please login for an individual price calculation.

Forgot Password?

Always stay up to date

With our e-mailings you will receive regular information about products, events, services and Balluff.

REGISTER AS A COMPANY

We will check whether you already have a customer number with us in order to link your new online account with it.

Register
Products
Service & Support
Industries & Solutions
Company
Version 1.0
·
Last edited on 2025-02-02

CMTK external API access

1. Introduction

This guide shows how to gain external access to the CMTk API.

In principle, all commands that the web server sends and executes can be executed externally (e.g. edge device).
The authentication procedure is the same as that known from BNI.

2. External API access

The loggin procedure is currently not described in the API documentation.

2.1. Network address

Both addresses set on the CMTk can be used as the network address for the API call:

2.2. Loggin

If you open the developer tool in the browser with F12, you can see the API commands used:

The login data is sent as a JSON object as a payload:

A positive response is answered with the status code 200:


The response also contains the cookie, which must be sent with every further request as authentication:

All other commands are mentioned in the API documentation.

3. Bsp. Thunder Client

Here is a small example of how to log in and control the process data of a Smartlight.

Loggin:

The "jsessionid" cookie is now sent with the header for all requests:

The "devices" command can be used to query the aliases that are required to explicitly request the respective port.

Query process data:

Write process data:

Heir 3 segments are set to the color white:

The parameters of the device can also be read and adjusted. In this example, the modes (index 64 decimal) are changed from chaser to segment:

Energy consumption labeling
Energy consumption labeling

EPREL - European Product Database for Energy Labeling

Do you have any questions or suggestions? We are at your disposal.

For all questions concerning commercial topics such as quotations, orders, and delivery times, our inside sales department will be happy to support you: [email protected]

For Aftersales, Technical Support, Applications and
Product Inquiries we will be happy to support you: [email protected]

Feel free to contact us directly by telephone:

Inside Sales 859-727-2200 - press 1
Presales Tech Support 859-727-2200 - press 2
Aftersales Tech Support 859-727-2200 - press 3


Balluff Inc.

8125 Holton Dr.
Florence, KY 41042

Free sample product

In order to add a free sample product to the cart we will need to remove all the normal products from the cart. Are you sure you want to continue