Skip to main content

API Token

You need an API token to access Enapter EMS via HTTP API or enapter-cli.

Get Token

info

You must have the Enapter Cloud account.

  1. Go to Enapter Cloud.
  2. Click on Account Settings in the upper right corner.
Enapter Cloud account settings
  1. In API Tokens click on New Token
New Token
  1. Type in an informative token name and click Create Token
Create API Token
  1. Copy your token and save it somewhere (e.g. your password manager) to use it with API calls.
Copy and save API Token

Usage

HTTP API

Get site info:

$ curl http://api.enapter.com/v3/sites/3a250bee-fddd-4f57-bbe2-841a0083cef7 \
-H 'X-Enapter-Auth-Token: 05f6a83b9ec8aa3234535f1cc7ffc37f45c235a42fedcbbcb2734b22ff1e39cds'

Enapter CLI

Add connection

namestringrequired#

Enapter EMS connection name.

tokenstringrequired#

Enapter EMS API token.

urlstring#

API base URL. Default is https://api.enapter.com.

site-idstring#

Specify site for connection.

enapter3 connection add \
--name cloud-ems \
--token 05f6a83b9ec8aa3234535f1cc7ffc37f45c235a42fedcbbcb2734b22ff1e39cd \
--site-id 3a250bee-fddd-4f57-bbe2-841a0083cef7

Set as default

enapter3 connection set-default --name cloud-ems

List connections

enapter3 connection list

Default connection marked with an asterisk *:

NAME          TYPE      URL                         ALLOW INSECURE   SITE ID
cloud-ems * cloud https://api.enapter.com no 3a250bee-fddd-4f57-bbe2-841a0083cef7
gateway-ems gateway http://192.168.87.200/api no cee4c6ea-1c1d-4561-9224-25d4e01d86f3

Verify connection

Now you can try a command to check the connection. For example, try listing devices on the site:

enapter3 devices list

All Rights Reserved © 2026 Enapter AG.