M2M Application Setup
Setting up an M2M application
Before starting, be sure to fork the Zus Postman Collection!
Let's start by getting you a M2M application. This will allow your backend system to make requests with a Bearer access token and eliminate the need for a user to manually authenticate!
- Step 1: Follow our M2M application set up tutorial this will generate a clientid and clientsecret that you can use to generate access tokens moving forward.
- Step 2: Follow our M2M access tutorial to obtain an access token.
Follow along!
That's it!
Your access token is valid for 1 hour, when it expires just execute step 2 again to get a fresh token.
You're now able to use that access token to make any API calls to Zus moving forward.
β οΈ M2M token authentication rate limits
Token authentication is subject to a special rate limit, as calling systems are expected to acquire a token and continue to use it until it expires. If your application attempts to obtain a token for the same app client more than 200 times in an hour, the application will receive a 429 error. User authentication (using a username and password) is not subject to this limit.
Updated about 1 year ago