See which messages the API sent
Messages your own systems send through the BloomText API show the key's name and an API label. In practices BloomText sets up with several locations, Owners and IT create, see and revoke keys on the Developers tab of the organization's settings.
Who can do this: Admins and staff · Web and desktop
Your practice's own systems, such as a scheduling system that sends reminders, can text patients through the BloomText API. Each message they send shows the name of the API key that sent it, so your team can tell it apart from a coworker's message. Replies land in the same chat, like any other text.
Before you start
- Anyone in the chat sees the API label.
- Keys live under Settings → Organizations → your organization → Developers. This tab appears only for Owners and IT of practices BloomText sets up with several locations. See Run every location from your organization's settings.
- API access is for organizations with a signed BAA. To turn it on, contact BloomText. For every other practice, BloomText creates the keys, and keys made before keep working. To revoke one of those keys, contact BloomText support.
Spot a message from the API
- Your scheduling system texted Maria a reminder. Click her chat in the Inbox.
- The message is labeled Reminder service · API: your system sent it, not a coworker.
- Maria's reply lands in the same chat, so the team picks it up like any other text.
Find the key that sent it
- From the Inbox, click Settings at the bottom left.
- Click Organizations, then your organization.
- Click the Developers tab.
- The keys are listed in a table, one row each. A row shows the name its messages show, for example Reminder service, with its first characters, its status, the workspaces it reaches, its scopes, and when it was created, last used and expires. Hover +N to see the rest of its workspaces or scopes. Revoked keys stay in the list, greyed out. To stop its texts, click ⋯ at the end of the row, then Revoke.
Create a key
- On the Developers tab, click Create API key.
- Type a Name, for example "Reminder service". Messages the key sends come from this name.
- If your organization has several workspaces, choose All workspaces, which includes ones you add later, or Only these workspaces and tick the ones the key may reach.
- Tick its Scopes. A reminder service needs only
patients.readandmessages.write. To manage members and teams from your own systems, addmembers.read,members.writeandteams.write. - Pick when it Expires in. The default is 90 days.
- Click Create key. The key shows with most of it hidden; the eye button shows it in full. Click the copy button. This is the only time BloomText shows the key, so store it in your secrets manager before you click Done. BloomText keeps only a fingerprint of it, so a lost key can't be shown again: create a new key and revoke the old one.
Add a webhook to a key
A webhook makes BloomText call your server when a patient writes in or a text the key sent is delivered or fails, so your systems don't have to keep checking. Each key has at most one webhook.
- On the Developers tab, click ⋯ at the end of the key's row, then Webhook. The Webhook panel opens.
- Type the URL of your server. It must start with
https://. - Tick the events to send. The panel offers only the events the key's scopes allow.
- Click Save. BloomText shows the webhook's signing secret, starting
with
whsec_. This is the only time it shows it, so store it in your secrets manager next to the key. - Click Send test event. The panel shows what your server answered.
In the same panel:
- Rotate secret shows a new secret once. For the next 24 hours BloomText signs with both the old and the new one, so your developers have time to switch.
- Remove webhook stops it at once. Adding one again gives a new secret.
Revoking the key, or letting it expire, also stops its webhook. When the audit log is on, each delivery try is listed under Settings → Organizations → your organization → Activity, under Audit log, as Webhook delivered or Webhook failed. The webhooks guide covers the events, payloads and signature checks for developers.
API identities
An API identity is the automated sender your integration's messages come from, such as Appointment reminders. You create and manage identities on the same tab: Settings → Organizations → your organization → Developers, in the API identities section.
- Give it a name and an avatar. It's always marked as automated.
- Choose the teams and phone numbers it may send from. It sends only from those.
- Attach keys to it. A key that sends messages must belong to an identity; keys that only read or that add and remove people don't need one. One identity can have several keys, so replacing a key keeps the same sender.
Staff see the identity as the sender in threads, and Owners and IT see it in Message reports and the Audit log, where the Automated filter shows only identities. Patients see its name in secure chat and your office's number on SMS, and their replies go to the sending number's team inbox.
An identity isn't a person. It isn't listed in the Directory or under People, isn't a billable seat, can't sign in, and never sends on behalf of a staff member.
Until identities are turned on for your organization, messages a key sends show the key's name with an API label.
Turned on when you ask
BloomText turns these on for your organization when you ask. They're described in full in the developer docs.
- Limit a key to phone numbers: the key sends only from those numbers and reads only their teams' messages and conversations. Patients stay organization-wide.
- OAuth client credentials: a second way for a server to sign in with an existing key.
Good to know
- BloomText asks you to confirm before it revokes a key. Apps using it stop working immediately.
- Owners and IT can also set or change a key's expiry from its ⋯ menu.
- Only Owners and IT see the Developers tab.
- Keys belong to the organization, not to one workspace.
- Search results show the same API label next to the key's name.
- For developers, the API keys guide covers scopes, expiry and how to send a key, and the members API guide covers adding and removing people by API.
Related
- Administrative features
- Run every location from your organization's settings
- See new texts and reply
- Business Associate Agreement
Referenced by
Work with people Okta manages
For workspace Admins in an organization that uses Okta. How to spot a member Okta manages, what you can still change, what to ask IT for, why an invite can be refused, and what happens when someone leaves.
Message reports
In practices BloomText sets up with several locations, Owners and IT see every text the organization's workspaces sent to patients, whether it arrived, and why it didn't, by workspace, team and date range. Export the list as a CSV.