Your own API integration

Connect your own backend to Pigeon with a scoped grant, change feed and webhooks.

On this page

Submit and test your integration

  1. Sign in to Developers, then choose Submit an integration.
  2. Enter your integration’s details, register the exact redirect URIs your client will use and choose the permissions it needs. Choose a confidential client if your server can protect a client secret. Choose a public client for an app that cannot keep a secret.
  3. Choose Submit for review. Copy the client ID and, for a confidential integration, save the client secret when Pigeon shows it.
  4. Open your OAuth authorization URL using the account that submitted the integration. You can test while its status is Waiting for review.

Pigeon reviews every submission by hand. Other accounts can connect once the status is Approved. If it shows Not approved, open the integration and read Review feedback. Choose Save changes after addressing the feedback, then Send for review again. Your own account can still authorize a rejected integration while you make changes. Changing the name, redirect URIs or permissions of an approved integration sends it back to review.

Let users choose what to share

Pigeon shows the integration name, where the browser will return and what the integration can see or do. The user can choose which requested permissions to grant, then choose Allow or Don’t allow. Use the scopes the user actually granted when deciding what your integration can do.

Keep the client secret and each user’s access and refresh tokens in private backend storage. Keep one cursor per connection and save the new refresh token after every successful refresh. For access to your own account, you can also use a personal access token.

Sync and write records

A read-only integration can build a mirror with a snapshot and the change feed. Webhooks tell your backend when to pull. With write permission, it can submit idempotent operations. Pigeon also checks the record link when it grants access.

Free allows one live external connection. A test grant for your own integration counts toward that slot, and all personal access tokens on the account share a slot. Pro supports multiple live connections. If Pigeon returns connection_paused, wait until the user makes the connection active. If the grant ends, stop syncing and have the user authorize the integration again.