Calling the JWT Authorization API

After all common and API-specific values have been added to the originating JWT payload, use your preferred JWT library to generate and encode the originating token. Use your “Swipeclock API Secret” as the encoding key. Then create an API call to the authentication API endpoint as follows:

Authorization: Bearer 
Content-Type: application/json

If the API call is made correctly, you will receive an HTTP 201 (Created) response, with a JSON body including a single “token” string field. This will be the JWT token that you will use to sign all subsequent API endpoint calls.

    "token": "eyJ0eXAiO.....eH74"