API + Webhooks

Any PSA. Any assistant. Never a secret.

Trove KB has no coupling to any particular ticketing system. It has a REST API that does everything the app does, webhooks signed with a key you hold, a lookup that turns a PSA's client id into that client's documentation, and a Model Context Protocol endpoint on the same keys.

REST API

One spec, generated from the validators.

/api/v1, JSON, an API key with read, write, admin, and reactions scopes in the X-Auth-Token header (Authorization: Bearer works too), cursor pagination. The OpenAPI document at /api/v1/openapi.json is built from the same Zod schemas the endpoints validate with, so it cannot drift.

A key is created with every company or a named set. Lists omit what it may not see; a single record it may not see answers 404, the same as a missing id, so a key cannot be used to learn which companies exist.

curl -H "X-Auth-Token: $TROVE_KEY" \
  "https://docs.example.com/api/v1/lookup?system=halopsa&entity=company&external_id=123"
# → the company, its locations, and a summary of its documents
Resources
/companies, /locations, /documents

Create, read, update. Documents return resolved values (option labels, linked titles, rendered markdown) beside the raw ids.

/doc-types, /option-lists/:id/items

Templates with their fields; shared lists, with POST to add an option exactly as the + does.

/documents/:id/revisions

The history, as the app shows it.

/search

The same tsvector search, scoped to the key's companies.

/external-refs, /lookup, /go/…

Map a PSA's ids to companies and documents, then look a client up by that id, or deep link without the API at all.

/kb/*

Collections, search, articles with steps, the original file an imported article came from, upsert and archive under an external id, grants, favorites and votes for a named reader.

/vault/*

Metadata-only item lists and, with the secrets:reveal scope, reveal and TOTP. Audited, no-store.

PSA integration

A ticket jumps straight to its client.

The main use case: a ticket in HaloPSA, Autotask, ConnectWise, or your own tracker needs to show that client's docs. Upsert an external ref once, mapping their id to the company, then either call /lookup from the integration or embed a deep link that needs no API at all:

PUT /api/v1/external-refs
{ "entity": "company", "entity_id": "…", "system": "halopsa", "external_id": "123" }

# then, from the ticket:
https://docs.example.com/go/halopsa/company/123
Webhooks

Signed. Retried.

Every delivery carries X-Trove-Signature: sha256=…, an HMAC over the raw body with the secret shown once when the webhook was made, plus an event name and a delivery id. A worker in the app container retries with exponential backoff up to eight times; on a Worker deployment a Cron Trigger does the same pass.

company.created · company.updated
location.created · location.updated
document.created · document.updated · document.archived
field.promoted
document.due
kb.article.upserted · kb.article.archived
Resolvd

The knowledge base behind the ticket.

Resolvd, our issue tracker, uses Trove KB as its knowledge base outright: one place for the vendor manuals, the runbooks, and the client documentation, instead of a second set of articles inside the ticketing system.

A ticket shows the client's documentation through the lookup, surfaces the articles and runbooks that match it, and tracks runbook progress by step id on the ticket while the runbook itself stays here. When a tech asks, Resolvd's AI assist drafts a reply or a resolution from those articles and from past resolutions, with the knowledge base as its source rather than its guess.

Running in production today over the same REST API and webhooks described on this page. Nothing about it is private to Resolvd: the lookup, runbook step ids, the knowledge base API and MCP tools, and the webhooks are open to any other ticketing system that wants the same.

Client docs on the ticket

GET /lookup by the PSA's own client id, and /go/… deep links from the ticket.

Articles and runbooks in the ticket

search_kb and GET /kb/search ranked against the ticket; runbooks tracked per ticket by step id, progress kept on Resolvd's side.

Resolutions that feed back

A resolved ticket's fix can be written up as an article through PUT /kb/collections/:id/articles/:external_id, under a key granted write on that collection.

AI replies and resolutions, when asked

Resolvd's bring-your-own-key AI assist drafts from the matched articles, runbooks, and prior resolutions. Trove KB stays the source; secrets are never in the context.

Kept in step

kb.article.upserted and kb.article.archived webhooks tell Resolvd what changed.

Wire it to what you already run.

The API docs are in the docs section, and the OpenAPI spec is on every instance.