Before you start
- You have a Bindbee account and an API key for the environment you’re building against.
- You know which models your use case needs.
Steps
1
Set up scoping for your use case
Turn on only the models and fields you actually need. Scoping decides what syncs, so it is easier to get right now than to change later.Result: The connector requests your models and nothing else. See Scoping.
2
Create the connector
Pick one path - a Magic Link you send to the customer, or the Embedded SDK inside your own product.Result: The customer authorizes, and the connector moves to
COMPLETE. See Connection methods.3
Subscribe to connector_sync_started (Optional)
Fires the moment a sync begins, which is what you need to show “importing your data…” in your UI.Result: Your endpoint receives an event at the start of every run. See Webhooks.
4
Poll the Connectors API (Optional)
Reads Result: The current state of every connection. See Get Connectors.
status and sync_status for a connector when you need to check where a connection stands.5
Fetch attached custom fields (Optional)
Where you have mapped custom fields, read the mappings so you know what extra data arrives with each record.Result: The list of extensions on each model. See Custom fields via API.
6
Subscribe to connector_synced (Recommended)
This is the signal that a sync has finished and the data is ready to read. Verify the signature on every request and reply within 10 seconds.Result: You learn the moment a connector’s data is complete, rather than polling for it. See Webhooks.
7
Read once the webhook arrives
Pull the models you scoped, paging until
cursor is null.Result: The full census for that customer.After the first sync
The first full read gives you the complete census. From then on you only need the delta, and there are two ways to get it:- Subscribe to
connector_data_modifiedand read the record IDs it hands you. - Pass
modified_afterwith the highestmodified_atyou saw on the previous run.
id - you will receive the same record more than once.
Frequently Asked Questions
You want to start reading without waiting for the webhook
You want to start reading without waiting for the webhook
You can, but the data is incomplete until the run finishes. Gate on
connector_synced rather than a timer - see Syncing.A model you scoped returns nothing
A model you scoped returns nothing
Read its per-model status on the run.
Skipped and Not Supported both return an empty set with no error - see Sync status.Related
- Go-Live checklist - what to verify once this workflow is built
- Scoping - the decision that shapes every later step
- Webhooks - the event catalog behind steps 3 and 6
- Troubleshooting - the order to debug a connector in, once you are live