/auvik:api-patternsfrom auvik
Documents Auvik API patterns: JSON:API envelope, HTTP Basic auth with email+API key, region routing, cursor pagination, rate limits, and v1 vs v2 device API differences.
Ships in auvik. 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.
None: SKILL.md is the whole skill.
The Auvik MCP server wraps the Auvik REST API (https://auvikapi.{region}.my.auvik.com/v1 and /v2) and exposes tools across tenants, devices, networks, interfaces, configurations, alerts, statistics, and billing. Two quirks to know up front: Auvik uses HTTP Basic auth with username:apiKey (not a bearer token), and the API base URL is region-pinned - your credentials only work against the cluster your tenant lives in.
Auvik authenticates with HTTP Basic - the username is the Auvik user's email and the password is the API key.
| Field | Value |
|---|---|
| Auth scheme | HTTP Basic |
| Username | The connection's Username field (your Auvik login email) |
| Password | The connection's API Key field |
Both are stored on the Auvik connection in Conduit, which injects them on every request. The MCP server handles the basic-auth encoding; do not pre-encode.
Auvik tenants live in one of several regional clusters:
| Region | Base host |
|---|---|
us1 | auvikapi.us1.my.auvik.com |
us2 | auvikapi.us2.my.auvik.com |
us3 | auvikapi.us3.my.auvik.com |
us4 | auvikapi.us4.my.auvik.com |
us5 | auvikapi.us5.my.auvik.com |
us6 | auvikapi.us6.my.auvik.com |
eu1 | auvikapi.eu1.my.auvik.com |
eu2 | auvikapi.eu2.my.auvik.com |
au1 | auvikapi.au1.my.auvik.com |
ca1 | auvikapi.ca1.my.auvik.com |
lnx | auvikapi.lnx.my.auvik.com |
Set the Region field on the Auvik connection in Conduit to pin the region. If omitted, the server attempts to detect the region from the credentials. Misroutes typically surface as 404 or redirect loops on calls that should obviously succeed.
Auvik returns JSON:API-shaped responses. The tools surface this through to users, so know the shape:
{
"data": [
{
"id": "...",
"type": "device",
"attributes": { ... },
"relationships": { ... }
}
],
"links": { "next": "...", "prev": "...", "first": "...", "last": "..." },
"meta": { "totalRecords": 1284, "totalPages": 26 },
"included": [ ... ]
}
Key points:
attributes, not the top level.relationships, not embedded - use included (when present) for sideloads.links.next for the next page rather than constructing the URL yourself.Singletons (*_get style tools) return data as an object, not an array.
Auvik uses cursor-style pagination via links.next. Pattern:
data and links.next.links.next is non-null, the tool exposes a way to fetch the next page (usually a page_first / page_after argument that the MCP server populates from the cursor).links.next is null or your accumulated count reaches a sane cap.Use page sizes of 100-500. Larger pages can time out on big tenants.
meta.totalRecords is the authoritative count - prefer it over counting accumulated rows when reporting size.
Auvik enforces per-API-key rate limits. Behavior at limit:
Retry-After header.Statistics endpoints (auvik_statistics_*) are noticeably heavier than entity listings - rate-limit pressure usually shows up there first when scanning a large tenant.
Auvik exposes two generations of device endpoints. The MCP tools split them:
| Tool | API |
|---|---|
auvik_devices_list, auvik_devices_get | v1 - light record, fast |
auvik_devices_get_details | v2 - extended attributes |
auvik_devices_get_lifecycle | v2 - lifecycle fields |
auvik_devices_get_warranty | v2 - warranty fields |
Default to v1 for bulk listings; reach for v2 only when you need the extended fields. Calling v2 tools in a tight loop over a large device set is the single most common cause of rate-limit problems.
Auvik is multi-tenant by design - a single MSP credential sees every client tenant the MSP manages. Pattern:
auvik_tenants_list to enumerate visible tenants.tenant_id (or tenantId, depending on the tool) on subsequent calls.| Code | Meaning | Fix |
|---|---|---|
| 401 | Bad credentials | Check the username and API key on the Auvik connection in Conduit |
| 403 | Credentials valid, no access to the resource | Wrong tenant, or key lacks scope |
| 404 | Unknown ID, or wrong region | Verify region; verify ID |
| 429 | Rate limit | Back off; narrow the query |
| 500 | Auvik-side hiccup | Retry, then escalate |
tenant_id explicitly on per-tenant reports - implicit scoping is a source of cross-tenant data leaks in human-facing output.auvik_tenants_list results within a session - the tenant list rarely changes.What SKILL.md sets; muted values are Claude Code's defaults
When working with Auvik authentication, region selection, pagination, rate limits, or interpreting the JSON:API response shape. Use when: auvik api, auvik authentication, auvik pagination, auvik region, auvik rate limit, auvik v1 v2, or auvik jsonapi.
Three short reads, in order
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin auvik4 skills in this plugin
/alertsAuvik AlertsAuvik alerts: severity tiers, status lifecycle, dismissal semantics, and the common alertName patterns that show up in MSP NOC queues.
/devicesAuvik DevicesAuvik device records: device types, manageStatus and onlineStatus, lifecycle and warranty fields, and choosing between the v1 list endpoint and the detailed device endpoints.
/networksAuvik NetworksAuvik network and interface entities: the network entity model, IP-range scoping, interface-to-device relationships, and adminStatus vs operStatus.
Other plugins' skills for the same job