Generating Bearer Token

REST reports generation from Mart requires a bearer token in order to authenticate yourself. Once generated, you can reuse this token to generate multiple reports.

To generate a bearer token, follow these steps:

  1. Log on to erwin Mart Administrator.

  2. On the top pane, click .
    The Mart Reporting API page opens.

  3. In the Select a definition field, select Generate Report Using Bearer Tokens.

  4. Expand the report-controller section. Then, click the POST section.

  5. Click Try it out.

  6. In the Request body section, enter your Mart username and password.

  7. Click Execute.
    The CURL command and bearer token are generated in the Responses section.

  8. Copy the bearer token (highlighted in the image above, content between the quotes) and use it in your CURL command for report generation.