PigeonDocs

Schemas and revisions

Read canonical records, choose a kind schema and understand account state.

Developer guideOpen Data & schemas
On this page

Record envelope

Every full record uses the same envelope in REST and MCP. The envelope carries:

FieldsMeaning
id, create_idHub-assigned record ID and durable caller-assigned creation ID. Use id for lookups and links.
kind, schemaBody discriminator and exact wire schema, such as note@1.0.
revision, revision_opRevision number and the operation that produced it. Store and compare both.
account, origin, homeAccount and routing identity assigned by the Hub.
created_at, updated_at, deleted_atServer timestamps. A tombstone has deleted_at and empty body and state.
upstream, edits, reviewSource extraction, edited addresses and source review, when present.
external_ids, relationsExternal aliases and record links, subject to access checks.
provenance, flags, gapsSource evidence, record diagnostics and known omissions.
body, stateKind-specific canonical content and an account map with well-known keys.
JSON
{
  "id": "01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11",
  "create_id": "01936f3e-0f00-7a11-8c22-0b6a11aa0001",
  "kind": "note",
  "schema": "note@1.0",
  "revision": 7,
  "revision_op": "01936f40-2c11-7a00-8b2e-55aa10c4e001",
  "account": "0194ab00-0000-7000-8000-000000000001",
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "origin": {
    "connection": "cnx_0194ab00-0000-7000-8000-000000000001",
    "app": "demo"
  },
  "home": "demo",
  "external_ids": [],
  "provenance": {},
  "relations": [],
  "flags": [],
  "gaps": [],
  "body": {
    "title": "Garden",
    "summary": "Working notes",
    "sections": [
      {
        "id": "soil",
        "heading": "Soil",
        "bullets": [
          "Add compost"
        ]
      }
    ],
    "links": [],
    "entities": [],
    "guessed_kind": "guide",
    "tags": []
  },
  "state": {}
}

Select fields

Pass fields=body,provenance on record detail, external-ID lookup, browse or search. Use a single comma-separated list of unique top-level names without spaces. Unknown names, repeated names and dotted paths return HTTP 400 invalid_fields. Browse and search put the projection in results[].record. Feed and snapshot reject fields with the same code.

A projection has selected_fields: true and always includes id, create_id, kind, schema, revision, revision_op and deleted_at when applicable. A selected body or state contains the entire value. Fetch the full record before constructing a whole-record replacement. You can use a projection's revision pair for a patch to an explicit field or part.

JSON
{
  "id": "01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11",
  "create_id": "01936f3e-0f00-7a11-8c22-0b6a11aa0001",
  "kind": "note",
  "schema": "note@1.0",
  "revision": 7,
  "revision_op": "01936f40-2c11-7a00-8b2e-55aa10c4e001",
  "body": {
    "title": "Garden",
    "summary": "Working notes",
    "sections": [
      {
        "id": "soil",
        "heading": "Soil",
        "bullets": [
          "Add compost"
        ]
      }
    ],
    "links": [],
    "entities": [],
    "guessed_kind": "guide",
    "tags": []
  },
  "provenance": {},
  "selected_fields": true
}

A connection that can read a record can read its full account state. Ordinary record writers can replace caller-owned keys with state or edit individual addresses with state_patch. Both forms share the 64 KiB final compact UTF-8 JSON budget. The assistant's saves:edit grant permits body patches only. Connector-defined state outside the well-known keys remains verbatim JSON. Write examples · Well-known state schemas

KindWell-known keys
Commonnote is up to 5,000 UTF-16 code units. tags is a set of up to 50 strings of up to 60 code units each. pinned is a boolean.
Sendnote is up to 2,000 code units. archived is a boolean. feedback contains rating, reasons, note and at. A feedback note is up to 2,000 code units and down ratings may select the six published reasons. Feedback at and the client-written acknowledgment feedback_resolution_seen_at are UTC with milliseconds. Server-owned connector_input holds the submitted URL or text and optional note. server-owned connector_retry_of holds the original send record ID.
Placeexperience has version 1, optional opened_at and optional visits.current with timestamped date, rating and note. Ratings are integers from 0 through 8. found_at is an instant. status is saved or done.
Productprivate_product_url is a personal HTTPS URL without URL credentials. rating is an integer from 1 through 5 or null. price_alert is one value with a Money or null target, boolean enabled and optional region, variant_key and basis.
Recipescale is positive. cooked maps stable cook IDs to {at, scale?, notes?}. Order entries by actual time descending, then ID descending.
Mediaepisodes maps s<season>e<episode> or <provider>:<id> identities to watched-at timestamps. consumption is the consumption phase. completed_at is an instant, rating is null or a half-step from 0.5 through 5, review is up to 5,000 code units, and status is saved, done or archived.
Guidecompleted_stop_ids is a set of stable guide stop Part IDs.
Event, link, note, workoutCommon annotations. Device calendar bindings and unsubmitted drafts stay on the device.

On sends, Pigeon owns state.connector_input, state.connector_retry_of and the admin resolution at body.feedback. A full replacement preserves omitted server-owned values. It may echo an unchanged value. A patch that addresses a server-owned value or a replacement that supplies a different value fails atomically with HTTP 422 server_owned_field in REST and MCP. The client writes the submission at state.feedback and can mark the resolution seen with state.feedback_resolution_seen_at. Pigeon clears that acknowledgment when it resolves new feedback.

A send's submission note remains in its retained input and body. A personal annotation on the send uses state.note.

Allowing a connection to read a record includes its personal notes, ratings, progress and activity, any private product URL, and any URL, text or note submitted with a send. Connection permissions

Owner metadata

GET /v1/records/{id}/owner-metadata requires the built-in Pigeon owner credential and read access to the record. A live event returns its server-derived calendar_sync status. Other records return an empty object. An unreadable record returns HTTP 404 not_found. A caller who can read the record but lacks the owner credential receives HTTP 403 owner_required. Owner metadata response schema

Schema downloads