Authorize Using a Token

In order to use the EnterWorks APIs, you must first obtain an authorization token using the method below or by creating a token using JavaScript.

To generate an authorization token from the Swagger page:

  1. On the Swagger page, click to expand Authorization Token. The arrow to the left of the Authorization Token text may not be displayed, but you can still click on the text to expand.
  2. Click the getToken link.
  3. On the Call Login Service screen, enter your login credentials.
  4. Click the Login button. A token is generated and displayed at the bottom of the screen.
  5. Select and copy the entire token.
  6. Go back to the Swagger tab and expand the endpoint you want to test.
  7. Paste the token in the Authorization field. In the example method below, the value in the Authorization field will be Bearer[<paste-your-token-here>].
    Note: You will need to paste your token in the Authorization field every time you test a call.
  8. Enter any additional parameters and click the Try it out! button at the bottom of the method to send your request.