Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.32 KB

authorization.rst

File metadata and controls

43 lines (29 loc) · 1.32 KB

Authorization

In the new API all admin routes are protected by JWT authentication. If you would like to test these endpoints in our Swagger UI docs, you need to retrieve a JWT token first. You could do that by using an endpoint with default credentials for API administrators:

image

In the response, you will get a token that has to be passed in each request header. In the Swagger UI, you can set the authentication token for each request.

image

Notice the Authorize button and unlocked padlock near the available URLs:

image

Click the Authorize button and put the authentication token (remember about the Bearer prefix):

image

After clicking Authorize, you should see locked padlock near URLs and the proper header should be added to each API call:

image