UX Principles
Integrated API Keys behave differently from OAuth 2.0 authentication. Users are providing a customer-specific installation credential, not logging into a session. Your interface should therefore prioritise:- Clear guidance on where the key comes from
- Safe credential handling
- Explicit confirmation of company connection
- Predictable recovery when authentication fails
API Key Input Experience
Users must have a clear and secure way to provide their Integrated API Key.Required Behaviour
Your UI must:- Provide a dedicated API Key input field
- Clearly label the field as a secret credential
- Accept secure paste input
- Mask the API Key during entry where possible
- Never display the full key after saving
Recommended Guidance Text
Explain to users that:- The API Key was generated by Pleo during the installation process
- The key grants company-level access to the integration
- The key should be stored securely
- The key cannot be viewed again after saving
Saving and Confirmation Behaviour
After a user submits an API Key, the system should immediately validate it.Expected UX Flow
- User copies the Integrated API Key from Pleo
- User enters the API Key into the integration
- User clicks Connect or Save
- System validates authentication
- Company association is confirmed
- Integration becomes active
Company Confirmation
Integrated API Keys are linked to a specific Pleo company installation. Users should be able to confirm the organisation associated with the connection.Required Behaviour
Your UI must:- Display the associated
company_idafter activation - Clearly indicate which company is connected
- Confirm successful installation visually
Example Confirmation Signals
- “Connected to Company ID: XXXXX”
- Success status indicator
- Connected state badge
Error Handling Experience
Authentication failures must be clearly communicated.Errors Should:
- Explain what failed
- Avoid technical jargon where possible
- Provide a clear recovery action
Examples
Good:- “The API Key appears to be invalid. Please check and try again.”
- “This key does not have the required permissions.”
- Generic messages such as “Authentication failed.”
Required Behaviour
If activation fails:- The integration must not enter an active state
- Users must be able to retry immediately
- The API Key field must remain editable
API Key Visibility Rules
Integrated API Keys must be treated as sensitive secrets within the interface.Required UX Behaviour
- Mask the API Key after saving
- Never allow full key retrieval
- Do not expose keys in logs or UI messages
- Avoid displaying partial keys unless necessary for identification
••••abcd).
Updating API Keys
Customers may rotate or replace Integrated API Keys. Users must be able to replace an API Key when required.Required UX Behaviour
Your interface must:- Provide an Update API Key or Reconnect action
- Allow entry of a replacement key
- Re-run validation automatically
- Clearly show reconnection progress
Expected User Flow
- User selects Update API Key
- User enters new key
- System revalidates authentication
- Company association is confirmed again
- Integration returns to active state
Expiry and Failure Recovery
Integrated API Keys may stop working if they are revoked, rotated, or lose permissions. Your UI should help users recover quickly.Recommended Behaviour
- Detect authentication failures automatically
- Display persistent connection warnings
- Provide a clear Replace API Key or Reconnect action
- Avoid silent failures
“Your connection to Pleo has been interrupted. Please update your API Key to restore access.”
Status and Connection Visibility
Users should always understand the current integration state.Recommended Connection States
- Connected
- Validation in progress
- Connection failed
- Action required
Relationship to OAuth 2.0 UX
OAuth 2.0 and API Keys create different mental models for users.| UX Aspect | OAuth 2.0 | Integrated API Keys |
|---|---|---|
| User action | Login & consent | Paste credential |
| Ownership | User account | Installation credential |
| Renewal | Automatic | Manual replacement |
| Failure recovery | Reconnect login | Replace key |
| Session concept | Yes | No |