connectwise-automate-api-patternslisted
Install: claude install-skill wyre-technology/msp-claude-plugins
# ConnectWise Automate API Patterns
## Overview
The ConnectWise Automate REST API v1 provides programmatic access to computers, clients, scripts, monitors, alerts, and more. This skill covers authentication, token management, pagination, filtering, error handling, and performance optimization patterns.
## Key Concepts
### API Base URL
```
https://{automate-server}/cwa/api/v1/
```
Replace `{automate-server}` with your Automate server hostname.
### Authentication Methods
| Method | Description | Use Case |
|--------|-------------|----------|
| **Integrator** | Server-to-server credentials | API integrations, automation |
| **User + 2FA** | User credentials with optional MFA | User-context operations |
### Authentication Flow
```
┌─────────────┐ 1. POST /APICredentials ┌─────────────────────┐
│ Client │ ─────────────────────────────> │ Automate Server │
│ │ (username + password) │ │
│ │ <───────────────────────────── │ │
└─────────────┘ 2. Access Token + Expiry └─────────────────────┘
│
│ 3. API Request with Authorization Header
▼
┌───────────────────────────────────────────────────────────────────┐
│ GET /cwa/api/v1/Computers │
│ Authorization: Bearer <access_token> │
└───────────────────────────────────────────────────────────────────┘
```
### Token Lifecycle
- **Token Expiry:*