curl.
Before You Begin
- Make sure you have generated a Standalone API Key
- Understand the permission and scope requirements for Standalone API Keys
- Use the correct Base URL for the environment you’re working in
Example 1 – GET a List of Employees
Requirements
- Standalone API Key with
users.readAPI Scope
Endpoint
https://external.staging.pleo.io/v2/employees
cURL Template
Use the template below and replace your API Key:YOUR-API-KEY→ your generated Standalone API Key
Execute the Request
Example with placeholders replaced:Sample Response
Example 2 – GET Details of a Specific Company
Requirements
- Standalone API Key with
companies:readAPI Scope
Endpoint
https://external.pleo.io/v1/companies/{companyId}
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 forTip: You can extract the
companyIdfrom the response in Example 1
Execute the Request
Example with placeholders replaced:Sample Response
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?
this how-to is part of:
Related Reading
- How to Make an API Call Using a Standalone API Key (Postman)
- OAuth 2.0 Setup Workflow Guide: Step-by-step instructions on how to configure OAuth 2.0 where you handle the full token lifecycle.