Make an API call

Tags: Flow

Ready to extract some data from the API? This tutorial will guide you through the process to make your first API request. You will access the Flow API from Postman, a REST client, and then pass in or specify an object and a parameter. We’ll start with a simple yet very real world scenario of requesting a subset of author records.

Who can use this?



First, let's make sure you have the prerequisites squared away:

  • Does your account have at least one repository that contains data? As a test, see if you can access any of the Flow reports. If you cannot see the reports, your ability to access meaningful data via the API will be limited.
  • Do you have API permissions? To verify, log into Flow, click Settings then Users. Locate and click your user. Click the Access tab then make sure at least one of the APIs listed in the API Access section has a check next to it.
  • Does your User have an associated API Key? In the Authentication section we show you how to create and use an API key so you can fetch data without having to be logged in Flow.

All set? Let's get started!

  • In Postman, enter your API URL. In this example we’ll use:

  • Click Send.
  • This should return the first three USERS in your account. Note the Status: 200 OK.

That’s it. Congratulations, you did it!

This is a very simple example of a request you can make in the Flow API. Advanced features, such as traversing objects and aggregating data that allow you to customize your results, are also available.

back to top

If you need help, please contact Pluralsight Support.