HrFlow.ai Postman

Explore the API endpoints without code.

Postman is a tool for testing APIs. Through an intuitive and feature-rich interface, you can send requests of any kind to the Hrflow.ai API.
This page explains how to use the Hrflow.ai API in Postman.

πŸ“˜

Prerequisites

  1. ✨ Create a Workspace
  2. πŸ”‘ Get your API Key

Step 1: Import the Hrflow.ai collection into Postman

Hrflow.ai provides you with a Postman collection gathering all the requests you will need to test our API. In 2 clicks, you have access to everything you need to communicate with our tools.

Via Postman's button

  1. To import the "Hrflow.ai API" collection, simply click on the button below:

Run in Postman

This button allows you to fork the "Hrflow.ai API" collection in your Personal Workspace.

  1. You arrive on this page which details what you are about to do.
495
  1. Postman may ask you to create a Postman account during this process.
    If you do not have a Postman account, you must create one by clicking on "Create Account instead" at the top of this form.
471
  1. Once your Postman account is created, you will come to this page:
523

In the field "Fork label", put the name you want to give to the copy of the request collection.
In the field "Location", choose the workspace where you want to import the collection.

Click on "Fork Collection" and that's it !

1465

Via Postman's integrated search engine

  1. Another way to proceed is to use the Postman search bar to directly import the "Hrflow.ai API" collection.
1053
  1. Then click on the result "Hrflow.ai API".
232
  1. Once this is done, you will arrive on the collection that we have shared with you. On this collection, you only have read rights. Thus, to be able to modify the variables of this collection, it is necessary to "Fork" the collection.
    To fork the collection, you just have to click on the following fork button "Fork" :
430

In the field "Fork label", put the name you want to give to the copy of the request collection.
In the field "Location", choose the workspace where you want to import the collection.

536

Click on "Fork Collection" and... TADA!

1465

Step 2: Your first steps in our Postman collection

This part will introduce you to our request collection and how to start using it.

Before starting to send requests, you must know the 4 following concepts.

Workspace

A workspace is a space that can contain a set of collections and environments. You can invite your team into a workspace. You can also publicly share all the content of this workspace.

When you search for "Hrflow.ai API" in Postman's search engine, you will find our public workspace "Hrflow API Public Workspace".

311

It is from this workspace that we have shared the "Hrflow.ai API" collection. To be able to modify the collections of this workspace, you had to fork our collection from our workspace to yours. Our public workspace is read-only while on your workspace, you have all rights (read and write).

Collection

A collection is a container that can hold a set of requests and request folders.

You can also define variables that are accessible at the collection level.
In the "Hrflow.ai API" collection, we have defined the variable base_url. This variable is the fixed part of the URL shared between each endpoint.
For example :

  • {{base_url}}/auth ➑️ https://api.hrflow.ai/v1/auth
  • {{base_url}}/profile/parsing/file ➑️ https://api.hrflow.ai/v1//profile/parsing/file
1419

Environment

An environment is a context that initializes the value of a set of variables. For example, the value of the board_key variable may depend on the execution context. You can create a Test environment and a Production environment.

Choose an environment

When working in a workspace, you can choose to work in one environment rather than another. Just click on the drop-down menu at the top right of your window and click on the desired environment.

474

Manage an environment

To create and manage environments, go to the navigation bar on the left of the window and click on "Environments".

92

We provide with the collection a default empty environment "Empty - Environment".

1916

This environment contains all the variables we use in the collection.

You will notice that it has 3 columns :

  • VARIABLE
    Corresponds to the name of the variables
  • INITIAL VALUE
    Corresponds to the initial value of the variable. If you change the value of the variable during the execution of a script, the INITIAL VALUE will remain the same. However, it is not this field that will be read when calling this variable.
  • CURRENT VALUE
    Corresponds to the current value of the variable. If you change the value of the variable during the execution of a script, it is this value that will change. When you call this variable, it is this value that will be given.

🚧

Modifying the value of a variable

When you modify the content of a variable directly in the environment, make sure you have modified the "CURRENT VALUE" field.

Use a variable defined in an environnement

To use the value of a variable, just write in any Postman text field {{my-var-name}} with "my-var-name" the name of my variable.

🚧

Postman is case sensitive for variable name

Thus, {{HRFLOW.AI}} is different from {{hrflow.ai}}.

Let's take an example. If I initialize the variable x-api-key with the value ask_abcdef0123456789, I will be able to see the result.

984

So in the environment properly chosen beforehand, the content returned by the {{x-api-key}} element will be ask_abcdef0123456789.

In the "Hrflow.ai API" collection, we use 8 variables. Two of these variables are necessary to use all the requests:

The other fields avoid us from constantly filling in the regularly used values :

  • board_key
  • source_key
  • profile_key
  • job_key
  • profile_key_with_resume
  • score_algorithm_key

Request

As its name suggests, a request will allow you to communicate with a particular endpoint of the Hrflow API.

Requests are listed in collections.
When you click on one of them, for example, "Try your API Keys", you can customize the information sent by Postman.

1918

If you have :

  • filled in at least the value of the variables x-api-key and x-user-mail
  • And you are using the right environment,

Then you just have to click on the "Send" button to send your request to our API.

151

You should get the answer in the lower part of the window.

πŸ‘

Success πŸ‘

❗️

If you get this or a similar error

  • Be sure to set the x-api-key and x-user-mail variables to an environment (for example here, we use Empty - Environment).
  • And be sure to select the runtime environment from the drop-down list in the upper right corner of the window.

In some cases, instead of modifying the environment variables, you may be tried to modify the value in the request directly.
For example, in the request "πŸ’Ύ Get a Job indexed in a Board", you can just replace the call to the variables in the Params with the raw values directly.

1274

The request before the change

920

The request once the values are hard-coded in the parameters

But you don't have to do this. You can update the value of the variables in the appropriate environments and use the proposed request as is.

Here is an example of setting up a source to make your first API calls.