PigeonDocs

Snapshots

Create a consistent snapshot and page through every readable record.

2 operationshttps://api.sendtopigeon.com
POST/v1/snapshots#

Start an as-of snapshot

Read all snapshot pages before consuming the feed from cursor_after. A connection's oldest open snapshot can be replaced when it starts another one.

createSnapshotOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

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
  • snapshotstring · uuidrequired
  • hintegerrequired
    ≥ 0
  • expires_atstring · date-timerequired
  • cursor_afterstringrequired

    Opaque feed cursor. Preserve verbatim and URL-encode in queries.

  • restore_noticeRestoreNotice
curl -X POST "https://api.sendtopigeon.com/v1/snapshots" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
POST https://api.sendtopigeon.com/v1/snapshots
GET/v1/snapshots/{id}/records#

Read a snapshot page

Pass next_page back as page_token until it is null. An expired snapshot or a changed connection view requires a new snapshot.

listSnapshotRecordsOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Path parameters

NameTypeDescription
idrequiredstring · uuidSnapshot ID.

Query parameters

NameTypeDescription
page_tokenstringPrevious next_page token.
limitintegerMaximum records 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.
Bodyobject
  • recordsarray of record@1.readrequired
  • next_pagestring | nullrequired

    Continuation token, or null after the last page.

curl -X GET "https://api.sendtopigeon.com/v1/snapshots/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/records" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
GET https://api.sendtopigeon.com/v1/snapshots/01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11/records