> ## Documentation Index
> Fetch the complete documentation index at: https://hub.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Postman with StackOne API

> Learn how to use Postman to test and explore the StackOne API.

> [!WARNING]
>
> **Prerequisites**
>
> Before testing with Postman, set up an integration and link an account following the [Getting Started](https://docs.stackone.com/gateway/quickstart) guide.

## Get the collection

The StackOne public Postman workspace has a pre-configured collection for the Unified APIs (HRIS, ATS, CRM, and more). Fork it into your own workspace to get started:

[![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/stackonehq/stackone-public/collection/8d04033a-b6b1-4c91-8235-729f5c46123a)

The collection has Basic Auth configured with `{{apiKey}}` as the username, and an `x-account-id` header set to `{{accountId}}`.

## Set up your environment

**1. Create an environment**

In Postman, click the **Environments** icon in the left sidebar, then **+** to create a new environment. Name it "StackOne" (or similar).

**2. Add your credentials**

Add these variables to the environment:

| Variable | Value |
| - | - |
| `apiKey` | Your StackOne API key: find it in the [dashboard](https://app.stackone.com) under **Settings → API Keys** |
| `accountId` | The linked account ID you want to target: visible in the [Accounts page](https://app.stackone.com/accounts) |

**3. Select the environment**

Select your environment from the dropdown in the top-right corner of Postman before sending any request.

## Make a request

With your environment active, open any request in the collection and click **Send**. The `{{apiKey}}` and `{{accountId}}` variables are resolved automatically from your environment.

> [!TIP]
>
> Start with **GET /accounts** to confirm your API key is working. It returns all linked accounts for your project.

## Troubleshooting

**`{"error":"Invalid authentication token"}`**: Your `apiKey` variable is missing or incorrect. Check that the right environment is selected and the value matches your key from the dashboard.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.