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
- Sign in to Personal access tokens and choose Create token.
- Grant
workout:readto try sync. Selectworkout:writeexplicitly if you also want to try writes. - Copy the token when it appears. Set it as
PIGEON_ACCESS_TOKENin 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.
curl --fail-with-body --request POST \
--header "Authorization: Bearer $PIGEON_ACCESS_TOKEN" \
https://api.sendtopigeon.com/v1/snapshotsSet PIGEON_SNAPSHOT to the response's snapshot value, then read the first page.
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
Send a link or text
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 requests | Per connection | Burst |
|---|---|---|
GET and HEAD | 120 per minute | 30 |
| Other methods, including snapshot creation | 30 per minute | 20 |
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.