Developer API

Use a personal access token to read your Pigeon records and start syncing.

On this page

Try the API with your own account

  1. Sign in to Personal access tokens and choose Create token.
  2. Grant workout:read to try sync. Select workout:write explicitly if you also want to try writes.
  3. Copy the token when it appears. Set it as PIGEON_ACCESS_TOKEN in your local environment and keep it private.

The API base URL is https://api.sendtopigeon.com. Use HTTPS and send your personal access token or OAuth access token in the bearer header. API responses use JSON with string IDs and UTC timestamps.

Create a snapshot to read the records this token can see.

bash
curl --fail-with-body --request POST \
  --header "Authorization: Bearer $PIGEON_ACCESS_TOKEN" \
  https://api.sendtopigeon.com/v1/snapshots

Set PIGEON_SNAPSHOT to the response's snapshot value, then read the first page.

bash
curl --fail-with-body \
  --header "Authorization: Bearer $PIGEON_ACCESS_TOKEN" \
  "https://api.sendtopigeon.com/v1/snapshots/$PIGEON_SNAPSHOT/records"

Follow any remaining pages before using cursor_after to read the change feed. The API's GET /v1/records looks up a record by external namespace and ID. Use snapshots to list records.

Use GET /v1/search with a URL-encoded q to search readable records. You can filter by kind and pass the returned next_cursor as cursor to page with the same query. Search request and response schemas

With sends:create, submit POST /v1/sends with a UUID Idempotency-Key and a JSON body containing url or text, with an optional note. Use the receipt's results[0].id in GET /v1/records/{id} to check the send's progress. To retry an extraction that failed on this connection, send retry_of with that send's ID and use a fresh key. Send request and response schemas

Errors and rate limits

Hub errors use application/problem+json. Use the response's code to decide what to do and keep the request-id header for troubleshooting. See Writes, idempotency and errors for recovery steps.

External Hub requestsPer connectionBurst
GET and HEAD120 per minute30
Other methods, including snapshot creation30 per minute20

Snapshot creation also has a rolling limit of six per hour. On HTTP 429, wait for the number of seconds in Retry-After before retrying. The stable codes are rate_limited and, for snapshot creation, snapshot_rate_limited.

Connect other accounts

Submit an integration and use OAuth to let people grant access to their own accounts. Use webhooks to trigger sync and the API reference to look up methods, parameters and response schemas.