Get authentication token for IEM API - Manual - Industrial Edge - Industrial Edge - Industrial Edge - Documentation of Industrial Edge APIs - CLI tools - Industrial Edge - References - APIs

Industrial Edge Platform Operation - APIs & References

Product
Industrial Edge
Edition
12/2024
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.