How to authorize bearer token on Swagger

Modified on Mon, Feb 3 at 10:22 AM

MarketPush utilizes Swagger for documenting its Application Programming Interfaces (APIs).


What is Swagger?

Swagger is an open-source software framework used for designing, building, documenting, and testing RESTful APIs. It provides a set of tools and specifications for creating APIs that are both easy to understand and easy to use.


One of the key features of Swagger is the Swagger UI, which provides a graphical interface for testing and exploring APIs. The Swagger UI displays documentation for the API in a user-friendly format, allowing developers to quickly understand how the API works and test its functionality.



Open the Swagger UI to MarketPush's API documentation. 


Contact the MarketPush Support Team if you do not have the URL to the MarketPush API Swagger Documentation.


  1. Locate the Authorize button in the Swagger UI document
  2. Click the Authorize button to open the authorization modal
  3. Use the keyboard shortcut Ctrl+V (Windows) or Command+V (Mac) to paste your API Key into the provided apiKey field
  4. Click the Authorize button
  5. Click the Close button
  6. Expand the GET /authToken endpoint
  7. Click the Execute button
  8. Copy the access_token string (excluding the starting and ending double quotes) in the Response Body
  9. Click the Authorize button
  10. Use the keyboard shortcut Ctrl+V (Windows) or Command+V (Mac) to paste the access_token from your clipboard into the provided accessToken field
  11. Click the Authorize button in the modal to apply the bearer token to your API requests.


Test your API requests to confirm that they are authorized. You can do this by making a request to one of the API endpoints and checking the response. If the authorization was successful, the response should include the data that you requested.


Note: You will need an API Key in order to generate a bearer token. Contact our support team for instructions on how to obtain one.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article