How it fits together
Connecting products
How an administrator joins two products: keys, scopes, webhooks and what to check afterwards.
The idea in one paragraph #
To let product A read from product B, an administrator makes a key in B under its Data access page, chooses what that key may read (its scopes), then pastes the key and B's web address into A under Integrations. A stores the key sealed (encrypted), and uses it for read-only requests. Nothing is installed, and nothing is shared except what the scopes allow.
Step by step #
- In the product you want to read from, go to Data access (in Care Core: Admin, Integrations, API keys). Make a key. Name it after what will use it, so you can tell later which to revoke.
- Choose the narrowest scopes that do the job. The key is shown once: copy it now.
- In the product that will read, open its Integrations page for the other product and paste the address and the key.
- The product tests the connection when you save. If it says the key was not accepted, the scope or the address is wrong.
- Check the result where it is used: the page that uses the join shows the data, or says clearly that the product could not be reached.
Keys and their names #
Each product's keys start with a short prefix, so you can tell what a key belongs to if you find one.
| Product | Prefix | Scopes it offers |
|---|---|---|
| Care Core | cc_ | people.read, people.write, staff.read, staff.write, staff.sensitive, compliance.read, compliance.write, teams.read, teams.write, care.read, care.write, recruitment.read, recruitment.write, referrals.read, referrals.write, tasks.read, tasks.write, events.read, webhooks.manage, audit.read, admin.read |
| Policy Core | pck_ | content (published policy content), summary (counts, no names), readings (names and email addresses: grant sparingly) |
| Incident Core | ick_ | summary (counts), person (counts for one named person) |
| EngageTrack | etk_ | summary (counts), staff (whether one member of staff held a qualification on a date) |
| Care Plans | cpk_ | Set on its Data access page |
| Improvement Core | imk_ | Set on its Data access page |
| Strategic Plans | spk_ | Read access to goals |
Webhooks: hearing about changes #
A key lets a product ask. A webhook lets Care Core tell. Care Core writes an event for every change in the same transaction as the change, so an event cannot be lost or sent for something that rolled back, and a separate process delivers them (a cron job every minute on the demonstrations). Events carry identifiers and dates only: no names, no health information. Each delivery is signed, and the receiver checks the signature with a shared secret.
To receive them, an administrator adds the receiver's address in Care Core under Admin, Integrations, Webhooks, chooses the event types (a prefix such as employment.* works), and pastes the signing secret into the receiving product. EngageTrack, for example, also listens for learning.recorded so that a training record made in Care Core is brought across at once, instead of at the next daily run.
When a join looks wrong #
| You see | Look at |
|---|---|
| The joined block is missing | The product's Integrations page: is it connected, and when did it last succeed? |
| "The key was not accepted" | The key was revoked, mistyped, or lacks the scope |
| A name is missing | Care Core first: is the person there and active? Then the product's sync |
| Data is a day old | A nightly job is not running, or a webhook is not being delivered: see Care Core's delivery list |