{
  "name": "The Kingdom Protocol",
  "version": "0.1",
  "status": "implemented by The Living Bread, read only",
  "spec": "https://living-bread.org/protocol",
  "context": "https://living-bread.org/protocol/v0.1/context.jsonld",
  "objects": [
    {
      "kind": "gathering",
      "title": "Gathering",
      "schema": "https://living-bread.org/protocol/v0.1/gathering.schema.json",
      "urn": "lb:gathering:<uuid>",
      "schema_org": "https://schema.org/Event",
      "door": "/api/gathering/{uuid}, /api/gatherings, the feeds and ICS calendars"
    },
    {
      "kind": "church",
      "title": "Church",
      "schema": "https://living-bread.org/protocol/v0.1/church.schema.json",
      "urn": "lb:church:<uuid> (a church on the app) or lb:church:<slug> and lb:church:<country>/<slug> (the open directory)",
      "schema_org": "https://schema.org/Church",
      "door": "/api/church/{uuid}, /api/church/{country}/{slug}, /api/nearby"
    },
    {
      "kind": "ministry",
      "title": "Ministry",
      "schema": "https://living-bread.org/protocol/v0.1/ministry.schema.json",
      "urn": "lb:ministry:<slug>",
      "schema_org": "https://schema.org/NGO",
      "door": "/api/ministry/{slug}, /api/ministries"
    },
    {
      "kind": "community",
      "title": "Community",
      "schema": "https://living-bread.org/protocol/v0.1/community.schema.json",
      "urn": "lb:community:<uuid>",
      "schema_org": "https://schema.org/Organization",
      "door": "/api/community/{uuid}, /api/communities"
    },
    {
      "kind": "need",
      "title": "Need",
      "schema": "https://living-bread.org/protocol/v0.1/need.schema.json",
      "urn": "lb:need:<uuid>",
      "schema_org": "https://schema.org/Demand",
      "door": "/api/need/{uuid}, /api/needs"
    },
    {
      "kind": "service-opportunity",
      "title": "ServiceOpportunity",
      "schema": "https://living-bread.org/protocol/v0.1/service-opportunity.schema.json",
      "urn": "lb:service:<uuid>",
      "schema_org": "https://schema.org/Demand",
      "door": "/api/service-opportunities"
    },
    {
      "kind": "offering",
      "title": "Offering",
      "schema": "https://living-bread.org/protocol/v0.1/offering.schema.json",
      "urn": "lb:offering:<handle>/<slug>",
      "schema_org": "https://schema.org/Thing",
      "door": "inside /api/person/{handle}"
    },
    {
      "kind": "person",
      "title": "Person",
      "schema": "https://living-bread.org/protocol/v0.1/person.schema.json",
      "urn": "lb:profile:<handle>",
      "schema_org": "https://schema.org/Person",
      "door": "/api/person/{handle}"
    },
    {
      "kind": "testimony",
      "title": "Testimony",
      "schema": "https://living-bread.org/protocol/v0.1/testimony.schema.json",
      "urn": "lb:testimony:<uuid>",
      "schema_org": "https://schema.org/CreativeWork",
      "door": "/api/testimony/{uuid}, /api/testimonies, /feeds/testimonies"
    },
    {
      "kind": "prayer",
      "title": "Prayer",
      "schema": "https://living-bread.org/protocol/v0.1/prayer.schema.json",
      "urn": "lb:prayer:<uuid>",
      "schema_org": "https://schema.org/CreativeWork",
      "door": "/api/prayer/{uuid} (by id only), /api/answered, /feeds/answered"
    },
    {
      "kind": "scripture-reference",
      "title": "ScriptureReference",
      "schema": "https://living-bread.org/protocol/v0.1/scripture-reference.schema.json",
      "urn": "lb:scripture:verse-<book>-<chapter>-<verse>",
      "schema_org": "https://schema.org/Quotation",
      "door": "/api/scripture/{ref}"
    },
    {
      "kind": "place",
      "title": "Place",
      "schema": "https://living-bread.org/protocol/v0.1/place.schema.json",
      "urn": "lb:place:gh-<geohash3> (prayer regions) and lb:city:<region>-<city> (the registry)",
      "schema_org": "https://schema.org/Place",
      "door": "/api/places"
    },
    {
      "kind": "response",
      "title": "Response",
      "schema": "https://living-bread.org/protocol/v0.1/response.schema.json",
      "urn": "lb:response:<kind>/<uuid>",
      "schema_org": "https://schema.org/InteractionCounter",
      "door": "/api/response/{kind}/{uuid}"
    }
  ],
  "api": {
    "base": "https://discover.living-bread.org",
    "index": "https://discover.living-bread.org/api",
    "card": "https://discover.living-bread.org/api/protocol",
    "openapi": "https://discover.living-bread.org/openapi.json",
    "resolve": "https://discover.living-bread.org/api/resolve/{urn}",
    "now": "https://discover.living-bread.org/api/now",
    "now_text": "https://discover.living-bread.org/api/now.txt",
    "now_stream": "https://discover.living-bread.org/api/now/stream"
  },
  "feeds": "https://discover.living-bread.org/feeds",
  "mcp": "https://mcp.living-bread.org/mcp",
  "developers": "https://living-bread.org/developers",
  "embeds": {
    "script": "https://living-bread.org/embed.js",
    "pray_for_me_iframe": "https://discover.living-bread.org/embed/pray-for-me?site={site_key}"
  },
  "license": {
    "directory": "https://creativecommons.org/licenses/by/4.0/",
    "people's words": "remain their authors'; quote with attribution; never for model training without consent",
    "scripture": "King James Version, public domain"
  },
  "never": [
    "open prayer listings",
    "private prayer",
    "precise locations of people",
    "minors",
    "closed lands",
    "private, recovery, grief or youth groups",
    "contact details of people"
  ],
  "contact": "support@living-bread.org"
}