Get authentication token for IEM API - Manual - Industrial Edge Platform - Industrial Edge - Industrial Edge - Documentation of the Industrial Edge Platform - IEM - Hub - Industrial - Device - IED - Edge - IEH

Industrial Edge Platform Operation - APIs & References

Portfolio
Industrial Edge
Product
Industrial Edge Platform
Edition
02/2025
Language
en-US (original)

To retrieve a time limited user-specific access token, you need to send a POST request in the /portal/api/v1/login/direct endpoint with a JSON body that includes your username and password or the credentials of a technical user.

Info

The access token is valid for 24h, this is expressed by the provided epoch time stamp within the response

curl -i -X POST -H "Content-Type:application/json" --insecure -d '{"username":"<your-username>", "password":"<your-password>"}' 'https://<your-iem-url>/portal/api/v1/login/direct'

If the authentication is successful, you will receive a response containing the access token, e.g.

{"data":{"access_token":"bea774c09da277d619ca12ceb09f924b","expires_in":1642721553987}}

This access token must be used within the Authorization header for further requests.