Generating Access Token
REST reports generation from Mart requires an access token in order to authenticate yourself. Once generated, you can reuse this token to generate multiple reports.
You can generate a bearer token in two ways:
To generate an access token via the access token feature, follow these steps:
-
Log on to erwin Mart Portal and on the top pane, click
.
-
Click
Access Token.
The Access Token page opens. -
Click Refresh Token.
This will generate a bearer token and display it in the Token field. You can edit the token expiry date. -
To copy the token, click
and use it to generate REST reports.
To generate an access token via API, follow these steps:
-
Log on to erwin Mart Portal and on the header, click
.
-
Click
REST Reports.
The Mart Reporting API page opens. -
In the Select a definition field, select Generate Token.
-
Expand the report-controller section.
-
Click Try it out.
-
In the Request body section, enter your Mart username and password.
-
Click Execute.
The CURL command and access token are generated in the Responses section. -
Copy the access token (highlighted in the image above, content between the quotes) and use it in for report generation.
By default, access tokens generated via API are valid for four hours (14400 seconds) by default. To extend the validity, edit the Rest API Token Lifetime property on the Advanced tab of erwin Mart Portal configuration screen.
Copyright © 2025 Quest Software, Inc. |