Prerequisites
- Petra account
- ConnectWise PSA admin permissions
1. Create a Security Role in ConnectWise
-
In ConnectWise Manage, open the left navigation, go to System → Security Roles, and click + to create a new role. Give it a recognizable name (e.g.,
Petra API
). -
Set the following permissions:
- Companies
- Company Maintenance → Inquire Level: All
- Contacts → Inquire Level: All
- Finance Add: All, Edit: All, Inquire: All
- Service Desk
- Close service tickets → Edit: All, Inquire: All
- Service Tickets → Add: All, Edit: All, Inquire: All
- System
- API Reports → Inquire: All
- Table Setup (customize) → Inquire: All
- Companies
-
Click the
(customize)
link next to Table Setup. In the Update Security window move all items to the Disallow list, then move the following back to the Allow list:- Project / Project Board
- Service / Service Board
- Service / Source
2. Create an API Member
- Navigate to System → Members → API Members and click +.
- Fill in the profile details and assign the Security Role you created above. Save the member.
3. Generate API keys
- On the API Member profile, open the API Keys tab and click +.
- Enter a description and save to generate a Public Key and Private Key. Copy the keys; the Private Key is only shown once.
4. Link ConnectWise in Petra
- In Petra, open Settings: https://app.petrasecurity.com/settings and click Link ConnectWise.
- In the dialog, enter:
- Company ID (your ConnectWise company)
- Site URL (e.g.,
mycompany.connectwise.com
) - Public Key and Private Key (from the API Member)
After saving, ConnectWise may take up to 1–2 minutes to confirm the connection.
Troubleshooting
- Authentication failed: Verify Company ID, Site URL, Public and Private keys. Regenerate keys if needed.
- Permission errors: Ensure the API Member uses the Security Role configured above and is active.
- Slow connection/timeout: Wait 1–2 minutes and retry; if the issue persists, contact Petra Support.