Skip to main content
A source is an app connected to Conare, like HubSpot or Gmail. It syncs into one namespace on a schedule (Gmail every 15 minutes, other apps every hour, or now with sources.sync(id)): new and changed records are written, and records deleted in the app are deleted. Each record becomes one document:
  • id: <source id>:<schema>:<record key>, for example src_1a2b3c:contacts:1042, so two sources in one namespace never overwrite each other
  • text: the record as readable text
  • metadata: source (the app), source_id, schema, and useful fields such as title, url, author and dates
So you can query a source like any other namespace, and filter by schema or source_id.

Connect an app

connectUrl is a hosted page where the person who owns the app account signs in. It works for 7 days. After that they return to redirectUrl and the first sync starts. sources.types() (GET /sources/types) lists the apps you can connect and the type to pass.

Connect your users’ apps

To give each user of your app search over their own apps, connect each user’s apps into that user’s namespace:
Each user signs in to their own account. Their records land only in their namespace.

Manage sources

Deleting a source stops syncing and removes the connection. Its documents stay unless you pass deleteDocuments: true. You can also connect, watch and disconnect sources in the console.