Making Your First API Request
Learn how to make your first API request with StackOne
Overview
You’ve recently received StackOne access and want to initiate your first call using our . As an introduction to the StackOne Unified API, you’ve tested account connection through the StackOne Dashboard.
Now, you want to integrate a specific provider into your existing application and test the integration. In this guide, you will learn how to:
Prerequisites
-
API Key created in StackOne Dashboard and copied to a secure location
-
Required provider integration enabled
-
Account linked successfully
-
(Optional) Use an SDK or Postman
Getting Account ID
- Specify the request type, URL, and API Key in the Authorization section (append to the header). example:
-
To filter results by a specific provider account (e.g., Greenhouse), define the
provider
parameter:–provider=greenhouse
–provider=hubspot
–provider=bamboohr
-
From the
/accounts
API call response, copy theid
value.
ATS: List Applications in Greenhouse
-
Specify the List Applications URL and header details:–
https://api.stackone.com/unified/ats/applications
–x-account-id:<id_from_Accounts_call>
Note:
Authorization header remains the same
-
The response will contain a collection of existing applications with crucial data including:– Application ID– Candidate ID– Job ID– Location ID– Status– Created and Updated timestamps
-
(Optional) Use the data from the previous step to create new applications by making POST requests via the API.
CRM: Get Contact in HubSpot
-
Specify the List Contacts URL and header details:–
https://api.stackone.com/unified/crm/contacts/
–x-account-id:<id_from_Accounts_call>
-
Select the required contact from the contacts collection and copy its ID.
-
Include the ID in the URL path.
-
The response will contain all available data for the specified contact, including:– First Name, Last Name– Company Name– Email(s)– Phone Number(s)– Associated Account ID– Created and Updated timestamps
HRIS: Create Employee in BambooHR
-
Specify the List Employees URL and header details to see a sample employee array:–
https://api.stackone.com/unified/hris/employees
–x-account-id:<id_from_Accounts_call>
-
In a separate tab, open a POST method request with the same URL, Authorization, and
x-account-id
header. -
Specify employee details in the request body, for example:
-
Upon successful creation, you’ll receive a 🟢
201 Status Code
with the message “Record created successfully” and its timestamp. -
(Optional) To verify the record creation, modify the GET request from step 1 to include the newly created Employee ID.
References
Was this page helpful?