Concepts and Terminology
Integrated API Keys represent direct, pre-approved access for an integration to act on behalf of a customer installation. They are per-installation credentials, meaning each customer gets a unique key. Integrations can therefore support multiple customers by storing and managing one key per customer.
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
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