Skip to content

Using Postman with Sirv API

By , Customer Success DirectorUpdated

Open this page in a new chat

Short answer

Install Postman, add the Sirv REST API collection with the Run in Postman button, then enter your API client ID and secret. The collection holds ready-made requests for the Sirv API, so you can get a token and try any method without writing code first.

After reading this you will know

  • How to add the Sirv collection to Postman
  • How to connect Postman to your Sirv account
  • Where to find more API documentation

Postman is a great way to quickly test and play with an API, such as Sirv’s API.

To get you started fast, we provide a Postman collection - a set of pre-written requests for the Sirv REST API.

1. Download and install Postman for Windows / Mac / Linux (or try it in your browser). 2. Click “Run in Postman” below. It will add the Sirv REST API collection to your Postman:

3. Get these 3 variables from your Sirv account:

Add them by right-clicking the “Sirv REST API” collection and clicking “Edit”. Enter your 3 variables in the Variables tab under Current Value:

Enter API variables into Postman

The variables are referenced throughout the collection with {{varName}}.

4. Try running various API requests by clicking the blue Send button.

Some requests - especially GET requests - require Parameters. These are items added to the request, such as ?filename or ?dirname:

Enter parameters in Postman

Some POST requests also require parameters:

POST request with parameters

Other POST requests don’t require parameters, they use raw data from the Body tab:

Enter raw data in Postman Body tab

Get more help with the Sirv REST API:

Back to top