PigeonDocs

Records

Read, look up, search and inspect canonical records and their history.

9 operationshttps://api.sendtopigeon.com
GET/v1/kinds#

List record kinds and granted capabilities

Returns the connection's read and edit capabilities for each listed kind. Access to individual records also requires a record link.

listKindsOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Responses

200 Capabilities of the authenticated connection.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyobjectno extra fields
  • kindsarray of objectrequired
curl -X GET "https://api.sendtopigeon.com/v1/kinds" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
GET https://api.sendtopigeon.com/v1/kinds
GET/v1/records#

Look up a record by external ID

Looks up one readable record by namespace and external ID. First-party Pigeon sessions may use list=true to browse live library saves in descending updated_at and ID order. Each page uses current visibility. Edits can move saves to an earlier page. In list mode, fields adds a selected canonical record to each row under record.

lookupRecordOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Query parameters

NameTypeDescription
nsstringRequired once for lookup. Colon-separated ASCII namespace segments.
external_idstringRequired once for lookup. External ID within the namespace, at most 2048 UTF-8 bytes with no NUL.
listbooleanUse owner-only list mode.
kindstringIn list mode, filter by save kind.
limitintegerList page size.
cursorstringUse next_cursor from the previous list page with the same kind.
fieldsstringComma-separated, unique top-level record field names, without spaces. Identity, revision and deletion fields are always returned. Selecting body or state returns that entire value.

Responses

200 A record for lookup, or a page of save rows for list mode.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyone of 2
  • RecordDetailany of 2
  • SaveListPageSaveListPage
    no extra fields
curl -X GET "https://api.sendtopigeon.com/v1/records" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
GET https://api.sendtopigeon.com/v1/records
GET/v1/records/{id}#

Read a record

Returns the current authorized canonical record, including state. Malformed IDs, missing records, other accounts’ records, and records outside the caller’s read grant return not_found. Send results include only readable targets. Tombstones may be visible to the originating connection or Pigeon. A selected response is marked selected_fields and cannot serve as a full record for replacement.

getRecordOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Path parameters

NameTypeDescription
idrequiredstring · uuidRecord ID.

Query parameters

NameTypeDescription
fieldsstringComma-separated, unique top-level record field names, without spaces. Identity, revision and deletion fields are always returned. Selecting body or state returns that entire value.

Responses

200 Successful response.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyany of 2
curl -X GET "https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
GET https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11
GET/v1/records/{id}/history#

List record history

Returns canonical snapshots and committed revision metadata for a live readable record. Revisions are ascending. Advance after to the last revision processed.

listRecordHistoryOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Path parameters

NameTypeDescription
idrequiredstring · uuidRecord ID.

Query parameters

NameTypeDescription
afterintegerExclusive revision number.
limitintegerMaximum entries to return.

Responses

200 Successful response.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyarray of object
  • [ item ]object
    no extra fields
curl -X GET "https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/history" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
GET https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/history
GET/v1/records/{id}/original#

Read the original extraction

Returns the current body and its adopted extraction for a linked record.

getRecordOriginalOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Path parameters

NameTypeDescription
idrequiredstring · uuidRecord ID.

Responses

200 Successful response.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyobject
  • mineanyrequired
  • baselineobjectrequired
  • reviewobjectrequired
  • originalobjectrequired
curl -X GET "https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/original" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
GET https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/original
POST/v1/records/{id}/original/review#

Resolve an original review

Keep the user's version or adopt the candidate extraction using the current revision and candidate version.

reviewRecordOriginalOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Path parameters

NameTypeDescription
idrequiredstring · uuidRecord ID.

Headers

NameTypeDescription
Idempotency-KeyrequiredstringPersist with the request payload. Replay the same key with the same payload after a transport failure.

Request body required

application/jsonobjectno extra fields
  • choicestringrequired
    "keep_mine" · "take_original"
  • baseRevisionBaserequired
    no extra fields
  • candidate_versionintegerrequired
    ≥ 1

Responses

200 Successful response.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyobject
curl -X POST "https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/original/review" \
  -H "Authorization: Bearer $PIGEON_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "choice": "keep_mine",
  "base": {
    "revision": 1,
    "revision_op": "01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11"
  },
  "candidate_version": 1
}'
JSONExample body
{
  "choice": "keep_mine",
  "base": {
    "revision": 1,
    "revision_op": "01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11"
  },
  "candidate_version": 1
}
POST https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/original/review
POST/v1/records/{id}/corrections#

Submit a correction proposal

A connection with write access can submit a proposal against the adopted extraction. Submission leaves that extraction unchanged.

proposeRecordCorrectionOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Path parameters

NameTypeDescription
idrequiredstring · uuidRecord ID.

Request body required

application/jsonobjectno extra fields
  • opsarray of CorrectionIntentrequired
    min items 1max items 1000
  • notestring
    max length 4096default ""

Responses

200 Successful response.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyobject
  • idstring · uuidrequired
  • accountstring · uuidrequired
  • recordstring · uuidrequired
  • sourcestring · uuidrequired
  • artifactstring · uuidrequired
  • versionintegerrequired
    ≥ 1
  • opsarray of objectrequired
  • notestringrequired
  • statusconst "open"required
  • created_atstring · date-timerequired
curl -X POST "https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/corrections" \
  -H "Authorization: Bearer $PIGEON_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "ops": [
    {
      "op": "set",
      "part": "string",
      "field": "string"
    }
  ]
}'
JSONExample body
{
  "ops": [
    {
      "op": "set",
      "part": "string",
      "field": "string"
    }
  ]
}
POST https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/corrections
GET/v1/search#

Search readable records

Searches current records linked to the calling connection. All words must match. The last word also matches a prefix. Each page uses current permissions, and edits can move records between pages. When fields is supplied, each hit includes the selected canonical record under record.

searchRecordsOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Query parameters

NameTypeDescription
qrequiredstring
kindstring
limitinteger
cursorstringUse next_cursor from the previous page with the same query, kind and deep flag.
deepbooleanSearch retained source captions, transcripts and page text. Requires a first-party Pigeon session and Pro.
fieldsstringComma-separated, unique top-level record field names, without spaces. Identity, revision and deletion fields are always returned. Selecting body or state returns that entire value.

Responses

200 A page of matching records. A null cursor indicates the final page.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
BodySearchPageno extra fields
  • resultsarray of objectrequired
  • next_cursorstring | nullrequired
curl -X GET "https://api.sendtopigeon.com/v1/search" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
GET https://api.sendtopigeon.com/v1/search
GET/v1/records/{id}/owner-metadata#

Read owner-only record metadata

Requires the built-in Pigeon owner and access to the record. A live event can have calendar_sync. Other records return an empty object.

getOwnerMetadataOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Path parameters

NameTypeDescription
idrequiredstring · uuidRecord ID.

Responses

200 Successful response.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
BodyOwnerMetadatano extra fields
  • calendar_syncCalendarSync
    no extra fields
curl -X GET "https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/owner-metadata" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
GET https://api.sendtopigeon.com/v1/records/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/owner-metadata