How to use API collection

  1. Download .json file from API documentation (http://apismarthub.smartyads.com/docs/). 

To do so, right-click on ‘Postman collection’ on the menu, and select ‘Save as…’. Left-click opens .json file in a new tab, where you can also save the file.

  1. Open Postman.

  2. Click ‘Import’ and choose the file.

  3. If the last operation is correct, you will see the collection list (named Smarthub). Choose ‘Login’ in the list.

  1. Please find UUID on the platform: open Settings -> Copy UUID.

  1. On ‘Headers’ tab of Postman, replace UUID with your data from platform (point #5 above).

  2. Go to the ‘Body’ tab and set your password and email that you use to log in into SmartHub platform in the appropriate fields.

  1. Click ‘Send’ button.

  1. If the last operation is correct, you will see the response with your token. Copy the token (without semicolon).

  1. Go to the Authorization tab -> choose ‘Type’ -> ‘Bearer token’-> insert your token to the token field.

  1. Click ‘Send’ button.

  1. Get success response and use other posts. A token is valid for 24 min.