...
Create an Application Access in Usage Engine as described in Configuring Application Access. Ensure to copy the Client Secret since it will only be visible when creating the Application Access.
Either download the Postman app, or select to run it in a browser, and create an account and sign in.
The API specification can be downloaded from the Usage Engine API page for your environment Environments. The detailed documentation of the API is available on the same endpoint.
Go to the workspace and import the openapi.json specification in Postman as a Postman Collection.
Before accessing any API, you must create a bearer token. You can do this by using the Create Access Token API endpoint POST /oauth/token which is found in the API in theauthentication
section fo the API specification. Configure this in the Authorization tab.Select which endpoint you want to start using, for example List meter types. Navigate to Authorization tab, select OAuth 2.0 as the authentication type. Configure getting the token by using
{{baseUrl}}/authentication/v1/oauth/token
(with the correct AccesTokenUrl for your account) and with the information provided by the Application Access. Pay attention Usage Engine CE Authorization endpoint uses "Send client credentials in body" as the Client Authentication method.
Provide the ClientID and ClientSecret that you obtained when creating the Application.Add an additional Key in the Token request named
audience
. Configure this to match the base url of the environment you are using Environments.Once happy with you configurations, press “Get New Access Token”. This will generate a new access token.
Press proceed or wait a couple of seconds. Now you will be presented with your new the newly created access token. Press “Use Token”.
Now, the token should The token will now be added to the authorization header of your endpoint.
Update the body and query parameters with relevant parameters and send the request.
...