Using the "Try it" Editor

Throughout our API reference, for each API call, you will see an option to create a mock request using a variety of languages. Our hope is that this enables you to more quickly understand our APIs and the data model behind them. As an example, here is a screenshot of the "Try it" feature for a simple "Get" request:

In order to utilize this feature across our API documentation, you will need to obtain the JWT token from your sandbox environment. First, make sure you request a user account and authenticate for the first time, as described in our Quickstart Guide.

Once you've done so, the easiest way to fetch the JWT is by logging in with your Zus user credentials via the "Log In" button in the top right corner of this page, as detailed in the Authenticating in the Zus Documentation Site section of the User Authentication page. Your JWT will then automatically appear in the Authentication "Bearer" field in the "Try It" module for all supported endpoints.

As an alternative, you can also get the JWT via our Postman collection, described in the previous resource article; after you fork the Zus public collection and environment variables, all you need to do is to hit "Get New Access Token" as follows:

You will be prompted to login with your sandbox credentials and complete 2FA. Once you've done so, you will be presented with a JWT token in the following dialogue:

Simply copy this token into the bearer dialogue box of the try it editor. You can now browse through our documentation and try any API that we have to offer!