/connectwise-psa:api-patternsfrom connectwise-psa
Covers ConnectWise PSA REST API fundamentals: public/private key with clientId authentication, page/pageSize pagination, conditions query syntax, rate limiting (60/min), and error handling.
Ships in connectwise-psa. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The ConnectWise PSA REST API provides access to all PSA entities including tickets, companies, contacts, projects, and time entries. This skill covers authentication, query syntax, pagination, rate limiting, and best practices for API integration.
"ConnectWise" is an umbrella brand over three products with three unrelated APIs. Loading the wrong one produces auth failures that read like permission problems:
/cwa/api/v1/ base
path, Bearer-token auth, and singular condition= filters. PSA
public/private keys will not authenticate against it. Use
connectwise-automate-api-patterns.connectwise-cpq-api-patterns.| Region | Base URL |
|---|---|
| North America | https://api-na.myconnectwise.net/{codebase}/apis/3.0/ |
| Europe | https://api-eu.myconnectwise.net/{codebase}/apis/3.0/ |
| Australia | https://api-au.myconnectwise.net/{codebase}/apis/3.0/ |
Replace {codebase} with your company identifier (e.g., v4_6_release or custom).
Some instances may use legacy URLs:
https://api-na.myconnectwise.net/v4_6_release/apis/3.0/
https://api-staging.connectwisedev.com/v4_6_release/apis/3.0/
ConnectWise PSA uses Basic Authentication with a combined credential string plus a Client ID header.
Authorization: Basic base64({companyId}+{publicKey}:{privateKey})
clientId: {your-client-id}
Combine credentials:
companyId + "+" + publicKey + ":" + privateKey
Example: company+publickey:privatekey
Base64 encode:
base64("company+publickey:privatekey") = "Y29tcGFueStwdWJsaWNrZXk6cHJpdmF0ZWtleQ=="
Set headers:
Authorization: Basic Y29tcGFueStwdWJsaWNrZXk6cHJpdmF0ZWtleQ==
clientId: your-registered-client-id
Content-Type: application/json
GET /v4_6_release/apis/3.0/service/tickets
Host: api-na.myconnectwise.net
Authorization: Basic Y29tcGFueStwdWJsaWNrZXk6cHJpdmF0ZWtleQ==
clientId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Content-Type: application/json
See references/examples.md for a JavaScript authentication example and recommended environment variable setup.
conditions=field operator value
| Operator | Description | Example |
|---|---|---|
= | Equals | status/id=1 |
!= | Not equals | status/id!=5 |
< | Less than | priority/id<3 |
<= | Less than or equal | priority/id<=2 |
> | Greater than | dateEntered>2024-01-01 |
>= | Greater than or equal | dateEntered>=2024-01-01 |
contains | Contains substring | summary contains "email" |
like | Pattern match | summary like "%email%" |
in | In list | status/id in (1,2,3) |
not in | Not in list | status/id not in (5) |
Use / to reference nested fields:
company/id=12345
status/name="New"
contact/firstName contains "John"
AND (default):
conditions=company/id=12345 and status/id!=5 and priority/id<=2
OR:
conditions=status/id=1 or status/id=2
Complex:
conditions=(status/id=1 or status/id=2) and company/id=12345
Date format: YYYY-MM-DD or ISO 8601
conditions=dateEntered>=[2024-01-01]
conditions=dateEntered>=[2024-01-01T00:00:00Z] and dateEntered<[2024-02-01T00:00:00Z]
Exact match:
conditions=summary="Email not working"
Contains:
conditions=summary contains "email"
Like (wildcards):
conditions=summary like "%email%"
conditions=company/identifier like "AC%"
conditions=contact=null
conditions=assignedResource!=null
Special characters must be URL-encoded:
| Character | Encoded |
|---|---|
| Space | %20 |
= | %3D |
< | %3C |
> | %3E |
" | %22 |
Example:
GET /service/tickets?conditions=company/id%3D12345%20and%20status/id!%3D5
| Parameter | Type | Default | Max | Description |
|---|---|---|---|---|
page | int | 1 | - | Page number (1-based) |
pageSize | int | 25 | 1000 | Records per page |
GET /service/tickets?page=1&pageSize=100
| Header | Description |
|---|---|
Link | Contains next/prev page URLs |
X-Total-Count | Total record count (if requested) |
Paginate by incrementing page until the response has fewer records than
pageSize. See references/examples.md for a
full fetch-all-pages implementation.
GET /service/tickets?conditions=status/id!=5&pageSize=1&fields=id
Check X-Total-Count header or use /count endpoint:
GET /service/tickets/count?conditions=status/id!=5
| Limit | Value |
|---|---|
| Requests per minute | 60 |
| Per API member | Yes |
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per minute |
X-RateLimit-Remaining | Requests remaining in window |
X-RateLimit-Reset | Seconds until limit resets |
When rate limited, you receive HTTP 429:
{
"code": "RateLimitExceeded",
"message": "Rate limit exceeded. Try again in 30 seconds."
}
Implement exponential backoff with jitter on 429s using the Retry-After
header. See references/examples.md for a retry
strategy implementation.
Errors return the relevant HTTP status code plus a JSON body with code
and message fields, and per-field detail in errors[]. See
references/errors.md for the complete HTTP status
code table, error response format, and common error codes.
Request specific fields only:
GET /service/tickets?fields=id,summary,status/name,company/name
GET /service/tickets?orderBy=priority/id asc, dateEntered desc
Include child records:
GET /service/tickets?childconditions=notes/text contains "update"
GET /service/tickets?customFieldConditions=customField1 contains "value"
ConnectWise can POST entity-change events to a registered callback URL. See references/webhooks.md for the callback payload shape and the registration request.
What SKILL.md sets; muted values are Claude Code's defaults
When working with authentication using public/private keys and clientId, pagination with page/pageSize, conditions query syntax, rate limiting (60/min). Use when: connectwise api, connectwise authentication, connectwise auth, api conditions, query builder connectwise, connectwise pagination, api rate limit, connectwise rest, api error connectwise, public key private key, or client id connectwise.
Three short reads, in order
connectwise, psa-api, api-authentication, pagination, rate-limiting, query-syntax
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin connectwise-psa9 skills in this plugin
/companiesConnectWise Manage CompaniesConnectWise PSA company/account management: company types, statuses, sites/locations, custom fields, and company relationships. Essential for MSP account management and CRM operations in ConnectWise PSA.
/contactsConnectWise Manage ContactsConnectWise PSA contact management: contact records, contact types, communication items (email, phone), portal access, and relationships to companies. Essential for MSP customer relationship management in ConnectWise PSA.
/procurementConnectWise PSA Procurement and InventoryConnectWise PSA procurement and stock through Conduit: purchase orders and their line items, sales orders and their products, procurement product items placed on tickets/projects/opportunities, warehouses and bins, inventory on hand, and the three-step inventory adjustment (cw_create_adjustment, cw_add_adjustment_detail, cw_close_adjustment).
/product-catalogConnectWise Manage Product CatalogConnectWise PSA product catalog: catalog items (SKUs), categories, subcategories, manufacturers, and their use on quotes, opportunities, agreements, and tickets. Covers the full catalog item field reference, common MSP workflows (hardware SKU, software license, managed service, agreement add-on), and the passthrough pattern for fields not surfaced on the MCP tool directly.
/projectsConnectWise Manage ProjectsConnectWise PSA project management: project lifecycle and status/type values, phases, templates, resource/team allocation, budgeting, billing methods, and project tickets.
/schedulingConnectWise PSA SchedulingConnectWise PSA schedule entries through Conduit: booking a member's time against a service ticket, project ticket or activity (cw_create_schedule_entry), finding and moving bookings (cw_search_schedule_entries, cw_update_schedule_entry), schedule types and statuses, UTC date handling, and the difference between a booking and a time entry.
Other plugins' skills for the same job