Webhooks
JOFI supports sending events to a webhook endpoint that you provide. If you'd like to explore a few popular examples of this approach, browse the webhook docs for Stripe, Github, and Twilio SendGrid.
For a list of the JOFI events that trigger webhook requests, see Events.
Live vs test webhook URLs
Your account can have two webhook endpoints:
| Endpoint | Purpose |
|---|---|
| Live webhook | Receives automatic event delivery when participants progress in production (for example, invitation.accepted, test_taker.assessment_completed) |
| Test webhook | Optional URL for integration testing. JOFI does not send automatic events here. Request a JOFI Admin to send test events to this endpoint; end users cannot trigger test deliveries themselves |
Automatic event delivery uses your live webhook URL only. Test API keys (sk_test_...) do not create records and do not trigger the event pipeline, so they will not send events to either URL.
Work with your JOFI representative to configure both endpoints. Webhook URLs must use HTTPS.
How it works
JOFI sends events to your live webhook endpoint as participants progress through the process. Create your webhook endpoint and provide it to your JOFI representative, and they will configure your account to begin calling your live webhook when events occur within JOFI.
You do not have to use webhook endpoints and events. If you prefer, your system can make a GET request any time you need to fetch the most up-to-date data for any resource. However, using webhook endpoints and events will allow your system to immediately react and take action when events occur within JOFI.
For example, if you would like to send an email notification to your user when a JOFI participant completes an assessment, or if you want to display the assessment statuses for your participants within your system. The webhook endpoints and events are a perfect use case for those scenarios, because JOFI will call your webhook endpoint when the participant completes an assessment and your webhook handler can decide what to do, such as send the email notification and update the assessment status in your database.