Open API and Custom Integrations explained
Learn how a custom integration connects your software with betterbunch to automatically create customer invitations.
If you use custom-built job management, invoicing or customer relationship management (CRM) software, our Open API can help automate your invitation process.
A developer can build a connection that sends customer details from your software to betterbunch, saving your team from entering them manually.
How a custom integration works
Your developer sets up a trigger in your software, such as a job being completed or an invoice being paid.
When that trigger happens, your software sends the customer’s details to betterbunch. We use those details to create an invitation and send it according to your sending settings.
An email address or mobile number is required to create an invitation. A first name is optional, but helps make the invitation feel more personal.
Tip: Before building a custom integration, check whether your software can connect through one of our existing automation options, including Zapier.
Who builds and maintains the connection?
betterbunch maintains the Open API. Your developer or technical team builds and maintains the custom integration between your software and betterbunch.
Your team will need access to your software’s development tools and the technical knowledge to set up and test the connection. We’re happy to help with questions about the betterbunch side of the setup.
Create an Open API key
Your API key lets your software securely connect with your betterbunch account.
- Log in to your betterbunch account.
- Select Automation from the left-hand menu, then open Open API.
- Click Create API key.
- Give your key a name that helps you recognise where it’s used, like “CRM connection”.
- Click Create.
- Use the copy button in the window that opens to copy your key.
- Provide the key to your developer, or enter it into your software’s connection settings.
Important: Copy your key before closing the window. The full key is shown only once, and you won’t be able to view or copy it again afterwards. Keep it private, as anyone with the key can use it to connect to your account.
After creating the key, the Open API page only shows a masked version. This helps you identify it, but cannot be used to connect your software. If you lose the full key, create a new one.
Open API and Zapier have separate keys, so make sure you create your custom integration’s key on the Open API page.
Share the developer reference with your technical team
The Open API developer reference explains how to connect your software, send requests and understand API responses and errors.
Ask your developer to use this reference when building and maintaining your integration.
It includes the technical details for creating invitations, supplying customer information and setting an invitation’s send date.
Choose when invitations are sent
Your software’s trigger controls when an invitation is created. Your betterbunch sending settings control when it is delivered.
Go to Automation → Open API and find When invitations are sent. Choose your preferred option:
- Best time to send – betterbunch uses engagement data to choose a time when the customer is more likely to respond.
- Right away – sends the invitation as soon as it is created, subject to your other invitation rules.
- After delay – waits for the number of hours you choose before sending.
- At specific time – schedules the invitation for your chosen time.
Click Save to keep your preferred setting.
Your Open API schedule applies when your integration creates an invitation without supplying a specific send date. If your software supplies a send date, that date is used instead. Your developer can find the details in the developer reference.
Note: Open API and Zapier have separate send schedules. Changing your Open API schedule does not change the schedule used by invitations created with a new Zapier key.
Test your integration
Before turning on your custom integration:
- Ask your developer to create a test invitation using your own contact details.
- Open your Invitations page in betterbunch.
- Check that the invitation has the correct customer details and scheduled send time.
- Confirm that you receive the invitation and can open the feedback link.
Depending on your sending settings, the test invitation may send straight away.
Open API activity does not appear in Automation Logs. Check your Invitations page to review invitations created through your integration. Their source will appear as Open API.
Manage and replace your keys
You can have up to five Open API keys for each betterbunch business. Your Zapier keys have a separate limit of five.
The Open API page shows each key’s creation details, when it was last used and how many requests used it in the past 30 days. These details can help you check connection activity or identify old keys.
Note: Request counts are not counts of successfully sent invitations. Check your Invitations page to confirm that invitations are being created and sent as expected.
To replace a key without interrupting your integration:
- Create a new Open API key and copy it.
- Ask your developer to update your integration with the new key.
- Test the connection.
- Click Revoke beside the old key once nothing uses it.
Revoked keys stop working immediately. If you already have five keys, you’ll need to revoke an unused key before creating another.
For more help, see Create and manage your Open API keys.
Already connected with a Legacy key?
If your integration uses an older key, it will continue to work. You’ll see it listed as Legacy key on both the Open API and Zapier pages, so you don’t need to replace it immediately.
The legacy key is shared between both integrations. Revoking it on either page stops it working for both Open API and Zapier connections.
Invitations created using the legacy key follow your Open API send schedule when no specific send date is supplied, even if they come through Zapier. To use Zapier’s separate schedule, create a new key on the Zapier page and update your Zapier connection.
Important: Before revoking a legacy key, check with your developer that every connection using it has been updated.
Need a hand? Reach out to our team through the chatbot in the bottom right corner of your screen.