Postman
Using Swagger UI for API client development
Last updated
Using Swagger UI for API client development
Last updated
This page shows how to use the to explore and test the Tradecloud API. For more information about how to use Postman in general, see the .
To make things easier, Tradecloud provides a Postman collection with some example requests. You can use this as follows:
Save the on your computer. (Use right-click, save link as)
In Postman, click "Import" and select the file collection you just downloaded.
You now have a "Tradecloud Demo" collection in your Postman application. Follow the instructions below to start sending your first request to the Tradecloud API.
At the start of each session, you first need to login to obtain an authorization token. You'll need this token to authorize yourself for all subsequent requests. The token will expire automatically after 10 minutes.
To login and obtain a token:
Open the "Login" request in the "Tradecloud Demo" collection.
Go to the Authorization tab.
Fill out the Username and Password fields with your Tradecloud Integration credentials. If you don't have any credentials yet, please ask us to set up an account for you.
Click Send. The API should return a 200 - OK
response.
Switch to the Headers tab of the response and copy the value of the Set-Authorization header.
This is the token you need to use as authorization for all following requests.
Open one of the requests in the "Tradecloud Demo" collection.
In the Authorization tab:
Set the Type to Bearer Token.
Paste your Authorization Token in the Token field.
Check the body of your request and change the request data where needed.
Make sure that you follow the OpenAPI specs linked in the Postman request description (see screenshot).
Send!
With Postman you can easily send a request to the API once you've obtained your :