Concepts and Terminology
| Concept | Term | Description |
|---|---|---|
| Company credential | Integrated API Key | A secret key generated during installation of a Pleo-approved integration, scoped to a single customer installation. Each customer receives a unique key. |
| Integration configuration | Auth client / Marketplace entry | Defines the scopes and permissions pre-configured into the key by Pleo. Managed internally by Pleo; no OAuth 2.0 client lifecycle exists. |
| Permission boundary | Scoped access | The set of API actions the integration is allowed to perform. Pre-configured at install time. |
| Company identity | Company_id | Identifies the Pleo company whose data the integration can access. |
When to Use Integrated API Keys
Use Integrated API Keys if:- Your integration cannot support OAuth 2.0
- You are building an approved accounting/ERP integration
- You need pre-configured permissions without implementing token flows
- You are prepared to manage per-customer keys for a multi-customer integration
How Integrated API Keys Work (Conceptually)
Install-Scoped Access
- Each key is generated per customer installation
- The key is bound to that customer + integration context and cannot be reused across other customers
- Keys are generated only in approved flows via the Pleo Web App
Pre-Scoped Permissions
- Permissions/scopes are configured by Pleo during integration setup
- The key can only perform operations allowed by these scopes
- Scope management is internal to Pleo, not editable by the integration
Integration Validation
- Integrations must validate the key by making a test API call
- Upon successful validation, the integration stores the key securely and tracks the relevant
company_idor other Pleo identifiers - Integrations should support storing multiple keys, one per customer installation
High-Level Workflow
1. Onboarding prerequisites (Integration Developer → Pleo)
- Request access to build an accounting/ERP integration
- Confirm eligibility for Integrated API Keys with Pleo
- Provide Marketplace integration details (name, branding, support contacts, features)
- Pleo configures the integration (“auth client”) with pre-scoped permissions
2. Customer install flow (Customer + Pleo)
- Customer initiates installation via Pleo Marketplace or Accounting settings
- Pleo presents an Integrated API Key step in the install modal
- Pleo verifies the customer has the required permissions
- If permitted, Pleo generates a customer-specific key and presents it to the customer
3. Customer transfers key to integration (Customer + Integration)
- Customer copies the generated key
- Integration provides a secure input field to paste and save the key
- Integration must support masking, secure storage, and future rotation per customer
4. Integration validates and stores key (Integration + Pleo APIs)
- Validate key with a test API call
- On success:
- Save key securely
- Store relevant identifiers (company_id)
- Show “Connected”
- On failure:
- Show clear error
- Prompt for re-entry or support contact
5. Ongoing maintenance
- Customers may rotate or recreate keys
- Integration must support key updates, re-validation, and rotation per customer installation
Implementation Checklist for External Developers
Integration developer must implement:- Connect screen with:
- Secret API key input
- Save + Test connection button
- Clear error states
- Secure key storage and masking
- Key rotation / reconnect flow per customer
- Minimal health check API call for validation
- Key generation UI in install flow
- Scoped key permissions
- Record visibility under Settings → API Keys after install
Security Responsibilities (High-Level)
- Treat Integrated API Keys as secrets
- Mask keys after save; avoid logs, analytics, or client-side exposure
- Rotate or replace compromised keys
- Validate that keys have the required scopes
- Manage keys per customer installation
Integrated API Keys vs OAuth 2.0
| Integrated API Keys | OAuth 2.0 | |
|---|---|---|
| Availability | Restricted / approved integrations only | Available |
| Access model | Company-scoped (per-customer installation) | User-delegated |
| Typical usage | Accounting / ERP multi-customer integrations | Multi-customer integrations |
| Customer consent | Implicit in install | Explicit consent required |
| Multi-customer support | Yes — one integration can serve multiple customer installations | Yes |
| Authentication | Static per-customer Integrated API key | Access tokens |
| Recommended for production | Approved exceptions | Default for all integrations |
Typical Development Workflow
- Onboard with Pleo and confirm Integrated API Key eligibility
- Implement secure connect screen with key input
- Validate key with a test API call
- Support reconnect / rotation flows per customer
- Optional: implement health check or minimal API calls to verify integration functionality
What Comes Next?
Related Reading
- User Experience Guidelines for Integrated API Keys
- Security and Credential Management for Integrated API Keys