Getting started with Smart-enabled API

Accessing Smart-enabled API

This guide will walk you through the steps needed to access and use the Smart-enabled API. To begin, you will need the following credentials and information:

  • CLIENT_ID

  • CLIENT_SECRET

You will receive your CLIENT_ID and CLIENT_SECRET once your access to the API has been granted.

Step 1: Obtain a JWT Token

Before you can make API calls, you need to log in and obtain a JWT (JSON Web Token) to authenticate future requests.

Login Request

Make a POST request to the login URL to get the JWT token:

Endpoint:

POST https://auth.smart.iec.ch/realms/iec/protocol/openid-connect/token

Request Body (URL Encoded)

client_id:Your client ID

client_secret:Your client secret

grant_type: client_credentials

scope: openid

This will return a JWT token, which is used for authenticating subsequent API requests.