Patchvault API

A read-only JSON API over the public Patchvault catalog: lodges, councils, camps, sections, and their issues. Everything the API serves is data any visitor can already see on the website; collection contents, prices, and private notes are never exposed.

Authentication

Every request needs a personal API key passed as a bearer token. API keys are a Pro feature — create and revoke them from your profile settings (Edit profile → API). Keys start with pv_ and are shown once at creation.

curl -H "Authorization: Bearer pv_YOUR_KEY" \
  https://patchvault.org/api/v1/lodges

Requests without a valid key receive 401 Unauthorized with a JSON error body. A valid key whose account is no longer Pro receives 403 Forbidden. Browser requests from any origin are allowed (CORS), but never put a key in code you publish: anyone who has it can use your rate limit.

Identifiers

Every record is identified by its slug — the same identifier used in the website's URLs. Numeric database IDs never appear in the API and will never be accepted by it. Issues are keyed by their PatchVault catalog-entry slug (e.g. netopalis-1-f1), matching the web issue pages. If an issue is renumbered, its old slug keeps resolving, but the slug and url fields in every response are always the canonical current values — update any stored slugs from the response.

An issue also carries an issue_uuid: the patch itself, as opposed to its catalog listing. It never changes, even when the patch is renumbered, so it is the best key for matching Patchvault issues against records in another system.

Endpoints

All endpoints are GET and return application/json.

MethodPathDescription
GET /api/v1/lodges/{lodge_slug}/issues List a lodge's issues (paginated)
GET /api/v1/lodges/{lodge_slug}/issues/{slug} Fetch one issue by catalog-entry slug
GET /api/v1/lodges List lodges (paginated)
GET /api/v1/lodges/{slug} Fetch one lodge by slug
GET /api/v1/councils/{council_slug}/issues List a council's issues (paginated)
GET /api/v1/councils/{council_slug}/issues/{slug} Fetch one issue by catalog-entry slug
GET /api/v1/councils List councils (paginated)
GET /api/v1/councils/{slug} Fetch one council by slug
GET /api/v1/camps/{camp_slug}/issues List a camp's issues (paginated)
GET /api/v1/camps/{camp_slug}/issues/{slug} Fetch one issue by catalog-entry slug
GET /api/v1/camps List camps (paginated)
GET /api/v1/camps/{slug} Fetch one camp by slug
GET /api/v1/sections/{section_slug}/issues List a section's issues (paginated)
GET /api/v1/sections/{section_slug}/issues/{slug} Fetch one issue by catalog-entry slug
GET /api/v1/sections List sections (paginated)
GET /api/v1/sections/{slug} Fetch one section by slug
GET /api/v1/search Search lodges, councils, camps and sections by name or number

Lists of lodges and councils come back in number order; camps and sections by name. An issuer's issues come back in catalog order, the same order as the issuer's page on the website. Only issuers the website shows publicly (live and beta) are served.

Parameters

ParameterWhereDescription
page Every list endpoint except search Page number, starting at 1. Out-of-range pages clamp to the last page. 25 records per page.
q /api/v1/search Required. Matches any part of a name, case-insensitively; a lodge or council number matches exactly. A blank query returns no results.
type /api/v1/search lodge, council, camp, section, or all (the default).
limit /api/v1/search Most results per type. Default 20, at most 50.

Pagination

List responses carry an RFC 8288 Link header (first, prev, next, last) plus current-page, page-items, total-pages, and total-count headers. The same numbers repeat in the body's meta block:

{
  "lodges": [ ... ],
  "meta": { "page": 1, "per_page": 25, "pages": 40, "count": 991 }
}

Field reference

Dates are ISO 8601 (1948-01-01); timestamps are ISO 8601 in UTC. Any field can be null when Patchvault doesn't have the value. Every url is this API's own URL for the record; issues_url lists the record's issues.

Lodge

In lists and in /api/v1/lodges/{slug}:

FieldTypeMeaning
slugstringIdentifier, e.g. netopalis.
namestringLodge name.
numberstringLodge number, as text (a few numbers are not whole numbers).
designatorstringLetter that tells apart lodges sharing a number, as the Blue Book does (e.g. A).
combinedstringNumber, designator and name as the catalog shows them.
councilobjectThe lodge's council: slug and name.
issues_countintegerIssues listed for the lodge.
event_issues_countintegerHow many of those are event issues.
updated_attimestampLast change to the lodge record.
url, issues_urlstringSee above.

The single-lodge response adds:

FieldTypeMeaning
statusstringWhether the lodge is active, merged, and so on, in Patchvault's words.
chartered_ondateCharter date.
started_on, ended_ondateWhen the lodge began and, if it has, ended.
websitestringThe lodge's own website.
chaptersarrayThe lodge's chapters: slug, name, issues_count.

Council

FieldTypeMeaning
slug, name, number, designator, combinedstringAs for lodges.
city, statestringWhere the council is (or was) headquartered.
issues_count, event_issues_count, updated_at, url, issues_urlAs for lodges.
statusstringSingle council only. Active, merged, and so on.
existed_from, existed_todateSingle council only. When the council existed.
websitestringSingle council only.

Camp

FieldTypeMeaning
slug, namestringIdentifier and camp name.
activebooleanWhether the camp still operates.
issues_count, event_issues_count, updated_at, url, issues_urlAs for lodges.
founded_on, closed_ondateSingle camp only.
websitestringSingle camp only.

Section

FieldTypeMeaning
slug, namestringIdentifier and section name, e.g. SR-7A.
entity_typestringSection, Region or Area: the OA's regional units over the years.
issues_count, event_issues_count, updated_at, url, issues_urlAs for lodges.
start_date, end_datedateSingle section only. When the section existed under this name.
descriptionstringSingle section only.
websitestringSingle section only.

Issue

In an issuer's issue list and in the single-issue response:

FieldTypeMeaning
slugstringThe catalog listing's identifier, e.g. netopalis-1-f1. Changes if the issue is renumbered.
issue_uuidstringThe patch's permanent identifier. Never changes.
combinedstringThe full catalog number, e.g. 1 F1.
issue_numberstringThe number within the issuer, e.g. F1.
varietystringVariety suffix when the issue is a variety of another (e.g. a).
eventbooleanTrue for event issues (conclaves, anniversaries and the like).
categorystringCatalog category, e.g. Standard Issue.
issue_typeobjectThe kind of item: name (e.g. Flap) and abbreviation (e.g. F).
yearintegerYear first issued.
date_typestring How exact year is: precise date, approximate year, decade. For a decade, read year as its decade (1953 means the 1950s).
shapestringPatch shape, e.g. Flap, Round.
bb6stringThe issue's number in the Blue Book 6th edition, when it has one.
updated_attimestampLast change to the issue.
urlstringThis API's URL for the issue.
thumbnailstringSmall front image URL, or null when there is no image yet.

The single-issue response adds:

FieldTypeMeaning
descriptionstringThe issue's description, in Markdown, as the website shows it.
border_typestringe.g. Rolled, Cut.
colorsobjectColor names: border, background, lettering, and fdl (the fleur-de-lis / BSA emblem).
reordersarrayKnown reorders, oldest first: date, quantity, notes, patchscan_url.
variationsarrayKnown variations (colored backs, loom errors and so on): notes, previously_listed_as, and image / image_back URLs.
image, image_backobjectFront and back image URLs in two sizes, medium and full, or null when there is no image.

/api/v1/search groups matches by type. Each match has type, id (the record's slug), name and combined. Types with no matches come back as empty lists; types you didn't ask for are left out.

{
  "query": "neto",
  "type": "all",
  "limit": 20,
  "results": {
    "lodges": [
      { "type": "lodge", "id": "netopalis", "name": "Netopalis", "combined": "1 Netopalis" }
    ],
    "councils": [],
    "camps": [],
    "sections": []
  }
}

Example

curl -H "Authorization: Bearer pv_YOUR_KEY" \
  https://patchvault.org/api/v1/lodges/netopalis/issues/netopalis-1-f1
{
  "slug": "netopalis-1-f1",
  "issue_uuid": "5f0c1e8a-6a2b-4b8e-9a51-2d7c3f9e1b04",
  "combined": "1 F1",
  "issue_number": "F1",
  "variety": null,
  "event": false,
  "category": "Standard Issue",
  "issue_type": { "name": "Flap", "abbreviation": "F" },
  "year": 1948,
  "date_type": "precise date",
  "shape": "Flap",
  "bb6": "1 F1",
  "updated_at": "2026-05-01T12:00:00Z",
  "url": "https://patchvault.org/api/v1/lodges/netopalis/issues/netopalis-1-f1",
  "thumbnail": "https://...",
  "description": "...",
  "border_type": "Rolled",
  "colors": { "border": "Black", "background": "Red", "lettering": "White", "fdl": "Blue" },
  "reorders": [],
  "variations": [],
  "image": { "medium": "https://...", "full": "https://..." },
  "image_back": null
}

Rate limits

Limits are per API key. The API is available to Pro accounts; exceeding the limit returns 429 Too Many Requests with a Retry-After header (seconds until the window resets).

TierRequestsWindow
Pro 600 60 seconds

Errors

Errors come back as JSON with a single error message.

StatusMeaning
401Missing, malformed, or revoked API key.
403The key is valid, but its account is not Pro.
404Unknown slug, or a record not publicly visible.
429Rate limit exceeded — honor Retry-After.

Versioning & deprecation

The API is versioned in the path (/api/v1). Within a version, fields may be added at any time — clients should ignore unknown keys — but existing fields and identifiers will not change meaning or disappear. Breaking changes ship as a new path version, and a deprecated version will keep working for at least six months after its replacement is announced on the news feed.

Terms

Use of the API is subject to the site's Terms of Service. Photos are © their respective owners; personal, non-commercial use permitted.