Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Api Patterns

ASecurity

Kaseya BMS PSA REST API v2 fundamentals: tenant subdomain routing, API-token bearer auth, Kaseya One SSO bridging, ticket and account workflows, and OData-style pagination.

48 stars
0 votes
0 copies
0 views
Added 10/2/2026
ai-agentsgonodeapidocumentation

Works with

cliapimcp

Security Analysis

A100/100

Scanned 10/2/2026

$npx -y skills add wyre-technology/msp-claude-plugins --skill api-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Patterns?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Api Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wyre-technology-api-patterns-f262db0f/badge)](https://www.skillsdirectory.com/skills/wyre-technology-api-patterns-f262db0f)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: "Kaseya BMS API Patterns"
description: >
  Kaseya BMS PSA REST API v2 fundamentals: tenant subdomain routing,
  API-token bearer auth, Kaseya One SSO bridging, ticket and account
  workflows, and OData-style pagination.
when_to_use: >-
  When working with the Kaseya BMS REST API v2. Use when: kaseya bms, bms api, bms tickets, bms
  accounts, bms psa, vorex, or kaseya psa.
---

# Kaseya BMS API Patterns

## Status note

The MCP server (`kaseya-bms-mcp`) and SDK (`@wyre-technology/node-kaseya-bms`) are in development. This skill is reference documentation.

## Overview

Kaseya BMS exposes a REST v2 API at `/api/` on every BMS tenant. Reference: <https://help.bms.kaseya.com/help/Content/BMS%20API/bms-api-v2-bms-rest-apis.html>

Each MSP has a private tenant — there is no shared regional endpoint:

```
https://<tenant>.bms.kaseya.com/api
```

The tenant subdomain is a credential field; never hard-code.

## Anti-triggers

- **Autotask** — Kaseya's other PSA, with its own tickets, accounts,
  contracts, and time entries that do not sync with BMS; use the
  `autotask-*` skills.
- **Kaseya VSA** — the RMM half of the Kaseya One suite. It shares SSO
  with BMS but not its ticket objects; use `kaseya-vsa-api-patterns`.

## Authentication

Two supported flows.

### API Token (recommended for integrations)

1. BMS Admin → Service Desk → API Tokens → Create
2. Copy the token (shown once)
3. Send on every request as:

```
Authorization: Bearer <api_token>
X-Tenant: <tenantSubdomain>
```

Tokens are long-lived; revoke from the same UI.

### Kaseya One SSO

On Kaseya One tenants, mint a token via `https://one.kaseya.com/oauth/token` with `scope=bms.api`, then call BMS endpoints with `Authorization: Bearer <kaseya_one_jwt>`. The JWT carries the tenant claim — no `X-Tenant` header needed.

## Pagination

OData-style:

| Param | Default | Max | Notes |
|-------|---------|-----|-------|
| `$top` | 50 | 500 | Page size |
| `$skip` | 0 | — | Records to skip |
| `$filter` | none | — | OData filter (e.g. `Status eq 'Open'`) |
| `$orderby` | none | — | e.g. `CreatedDate desc` |

Responses include `TotalRecords` for total count; loop with `$skip += $top` until `$skip >= TotalRecords`.

## Common endpoints

| Domain | Endpoint | Notes |
|--------|----------|-------|
| Tickets | `GET /api/v2/service/tickets` | Filter via `$filter` |
| Single ticket | `GET /api/v2/service/tickets/{id}` | Includes notes if `?includeNotes=true` |
| Create ticket | `POST /api/v2/service/tickets` | |
| Add ticket note | `POST /api/v2/service/tickets/{id}/notes` | |
| Time entries | `GET /api/v2/service/timeentries` | Per-user/ticket |
| Accounts | `GET /api/v2/finance/accounts` | Clients |
| Contacts | `GET /api/v2/crm/contacts` | |
| Contracts | `GET /api/v2/finance/contracts` | |
| Service catalog | `GET /api/v2/service/catalog` | |
| KB articles | `GET /api/v2/service/knowledgebase` | |

## Response shape

```json
{
  "Result": [ /* records */ ],
  "TotalRecords": 1234,
  "ResponseCode": 0,
  "Status": "Ok"
}
```

`ResponseCode != 0` means application-level error even with HTTP 200; surface `Error` field to the user.

## Rate limits

BMS throttles at **300 req/min per tenant** under default policy. HTTP 429 includes `Retry-After`. Sustained abuse can trigger temporary tenant-level lockouts — back off aggressively.

## Error handling

| HTTP | Meaning | Action |
|------|---------|--------|
| 200 | OK (check `ResponseCode`) | |
| 400 | Bad filter / missing required field | Validate inputs |
| 401 | Bad token or expired | Re-issue token; check `X-Tenant` |
| 403 | Token lacks scope on this resource | Surface; verify role |
| 404 | Endpoint or record missing | Confirm tenant subdomain |
| 429 | Rate limited | Back off per `Retry-After` |
| 500-503 | Transient | Exponential backoff |

## Gotchas

- **Tenant header vs JWT claim**: With API token auth, `X-Tenant` is required. With Kaseya One SSO, the JWT carries the tenant claim and `X-Tenant` is *ignored* (or rejected on some versions). Pick one; don't send both.
- **OData filter strings**: Field names are PascalCase (`CreatedDate`, `Status`). Common 400s come from camelCase (`createdDate`).
- **Ticket status transitions**: BMS enforces a state machine on `Status`. Setting an invalid transition returns 400 with a generic message; check the workflow definition before bulk updates.
- **Vorex compatibility shims**: Some legacy Vorex tenants still respond on BMS endpoints with subtly different field names (e.g. `AccountID` vs `AccountId`). Defensive parsing pays off.

## Related skills

When the build-out lands, expect domain skills under this plugin for: tickets, accounts, contracts, time-entries, knowledge-base.

Attribution

WYRE-AIWYRE-AI
View sourceSee grades on GitHubMore from wyre-technology →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →