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

# How to Make an API Call Using a Standalone API Key

export const WhatComesNext = ({children, href}) => <div className="mt-4">
    <a href={href} className="btn-primary">
      {children} →
    </a>
  </div>;

export const RememberCallout = ({title, children}) => <div className="callout-box callout-remember">
    <div className="callout-row">
      <span className="callout-icon">
        <svg width="22" height="22" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M229.66,98.34,172.39,155.8c11.46,22.93-1.72,45.86-10.11,57a8,8,0,0,1-12,.83L42.34,105.76A8,8,0,0,1,43,93.85c29.65-23.92,57.4-10,57.4-10l57.27-57.46a8,8,0,0,1,11.31,0L229.66,87A8,8,0,0,1,229.66,98.34Z" opacity="0.2" /><path d="M235.32,81.37,174.63,20.69a16,16,0,0,0-22.63,0L98.37,74.49c-10.66-3.34-35-7.37-60.4,13.14a16,16,0,0,0-1.29,23.78L85,159.71,42.34,202.34a8,8,0,0,0,11.32,11.32L96.29,171l48.29,48.29A16,16,0,0,0,155.9,224c.38,0,.75,0,1.13,0a15.93,15.93,0,0,0,11.64-6.33c19.64-26.1,17.75-47.32,13.19-60L235.33,104A16,16,0,0,0,235.32,81.37ZM224,92.69h0l-57.27,57.46a8,8,0,0,0-1.49,9.22c9.46,18.93-1.8,38.59-9.34,48.62L48,100.08c12.08-9.74,23.64-12.31,32.48-12.31A40.13,40.13,0,0,1,96.81,91a8,8,0,0,0,9.25-1.51L163.32,32,224,92.68Z" /></svg>
      </span>
      <div>
        {title && <div className="callout-title">
            {title}
          </div>}
        <div className="callout-body">
          {children}
        </div>
      </div>
    </div>
  </div>;

Follow these steps to make your first Pleo API call using `curl`.

## Before You Begin

* Make sure you have generated a [Standalone API Key](/docs/current/how-tos/api-keys/how-to-generate-standalone-api-keys)
* Understand the [permission and scope](/docs/current/authentication/standalone-api-keys-overview#how-standalone-api-keys-work-conceptually) requirements for Standalone API Keys
* Use the correct [Base URL](/docs/current/authentication/api-base-urls) for the environment you're working in

<RememberCallout title="Remember">
  Standalone API Keys authenticate your API calls and are scoped by environment, company, and permissions. Ensure you use the correct company ID for every request.
</RememberCallout>

## Example 1 – GET a List of Employees

### Requirements

* Standalone API Key with `users.read` [API Scope](/docs/current/authentication/api-scopes)

### Endpoint

[`https://external.staging.pleo.io/v2/employees`](/reference/employees/search-for-employees)

### cURL Template

Use the template below and replace your API Key:

* `YOUR-API-KEY` → your generated Standalone API Key

```bash theme={null}
curl --request GET \
-u "YOUR-API-KEY:" \
-H "Accept: application/json;charset=UTF-8" \
"https://external.staging.pleo.io/v2/employees" \
| jq
```

### Execute the Request

Example with placeholders replaced:

```bash theme={null}
curl --request GET \
-u "pls_1ab2cd3e4f5g6h7a89b012c34de56f78_gabc90:" \
-H "Accept: application/json;charset=UTF-8" \
"https://external.staging.pleo.io/v2/employees" \
| jq
```

### Sample Response

```json theme={null}
{
  "data": [
    {
      "id": "abcdefgh-1234-5abc-6789-de01234fa12b",
      "companyId": "12abc3d4-e567-890e-1234-abc56e78fabc",
      "firstName": "Simon",
      "lastName": "Schöt",
      "email": "simon.scottie@pleo.dev",
      "phone": "+298200000"
    },
    {
      "id": "987abc45-ab67-5abc-d6e7-de89012fa13c",
      "companyId": "12abc3d4-e567-890e-1234-abc56e78fabc",
      "firstName": "Avani",
      "lastName": "Challa",
      "email": "avani.challa123@pleo.dev",
      "phone": "+298200000"
    }
    # entries omitted for brevity
  ],
  "pagination": {
    "hasPreviousPage": false,
    "hasNextPage": true,
    "startCursor": "72GNR65XMJGXDAWIZ4EUE3FFNQ=AAAAAADJIF7KOJHFGDAA",
    "endCursor": "QYGEX3OMBNHJZHOWD74B7B5JOE=AAAAAADJIF7KOJOZKTAA",
    "total": 36
  }
}
```

## Example 2 – GET Details of a Specific Company

### Requirements

* Standalone API Key with `companies:read` [API Scope](/docs/current/authentication/api-scopes)

### Endpoint

[`https://external.pleo.io/v1/companies/{companyId}`](/reference/companies/search-for-a-specific-company)

### cURL Template

Use the template below and replace your API Key and Company ID:

* `YOUR-API-KEY` → your generated Standalone API Key
* `{companyId}` → the Company ID you want details for
  > Tip: You can extract the `companyId` from the response in [Example 1](#example-1-–-get-a-list-of-employees)

```bash theme={null}
curl --request GET \
-u "YOUR-API-KEY:" \
-H "Accept: application/json;charset=UTF-8" \
"https://external.staging.pleo.io/v1/companies/{companyId}" \
| jq
```

### Execute the Request

Example with placeholders replaced:

```bash theme={null}
curl --request GET \
-u "pls_1ab2cd3e4f5g6h7a89b012c34de56f78_gabc90:" \
-H "Accept: application/json;charset=UTF-8" \
"https://external.staging.pleo.io/v1/companies/12abc3d4-e567-890e-1234-abc56e78fabc" \
| jq
```

### Sample Response

```json theme={null}
{
  "data": {
    "id": "12abc3d4-e567-890e-1234-abc56e78fabc",
    "name": "MyTestCompany",
    "address": {
      "addressLine1": "51462 Littel Common",
      "addressLine2": "Apt. 210",
      "locality": "North Kris",
      "region": "Mississippi",
      "postalCode": "D6H 4XH",
      "country": "GB"
    },
    "organizationId": "98a7bc6d-efgh-5a43-b21c-0a9bc876de5f",
    "registrationNumber": "12345678"
  }
}
```

## Result

* You’ve successfully made API requests using your **Standalone API Key**
* You’ve verified that your API Key has the correct **permissions and scope**
* You understand how to extract IDs (like `companyId`) for subsequent requests

***

## What Comes Next?

<WhatComesNext href="/docs/current/guides/standalone-api-keys-workflow-guide#result">
  Return to the Standalone API Key Workflow Guide
</WhatComesNext>

***

<div className="text-xs uppercase" style={{ fontVariant: 'small-caps' }}>
  this how-to is part of:
</div>

<div className="mt-4 flex flex-wrap gap-2">
  <a
    href="/docs/current/guides/standalone-api-keys-workflow-guide"
    className="inline-flex items-center rounded-full border border-gray-300 dark:border-gray-600 
px-3 py-1 text-xs font-medium 
bg-white dark:bg-[#1f262b] text-black dark:text-white
hover:bg-gray-100 dark:hover:bg-[#2b2f33]
transition-colors"
  >
    Standalone API Key Workflow Guide
  </a>
</div>

***

## Related Reading

* [How to Make an API Call Using a Standalone API Key (Postman)](/docs/current/how-tos/api-keys/how-to-make-an-api-call-using-standalone-api-keys-postman)
* [OAuth 2.0 Setup Workflow Guide](/docs/current/guides/oauth-workflow-guide): Step-by-step instructions on how to configure OAuth 2.0 where you handle the full token lifecycle.

***
