Organisation Applications
Webhooks
Receive notifications when an organisation's connection to your partner account changes
Esenda sends a webhook when an organisation application is approved and the organisation is connected to your account, and again if the organisation later revokes your partner access, so you don't need to poll get an application.
Onboarding webhooks are sent to your partner webhook URL.
Events
| Scenario | Event Type |
|---|---|
| An organisation is connected to your account | onboarding.updated |
| An organisation revokes your partner access | onboarding.updated |
All onboarding webhooks use the onboarding.updated event type. Use data.status to see what the organisation's connection status is now.
HMAC Signature Verification
All webhooks include an X-Hmac-Signature header. Use the webhook HMAC shared secret provided by Esenda with SHA-512 to verify authenticity.
Webhook Headers
Content-Type: application/json
X-Hmac-Signature: <hmac_signature>Webhook Payload
{
"id": "9c2e4f1a-7b3d-4e8a-a5c6-1f0d2b3e4a5c",
"created_at": "2026-11-10T09:02:00Z",
"event_type": "onboarding.updated",
"shortcode": "test-school",
"data": {
"organisation_application_id": "be8cc391-0344-4da9-89ec-e82777bd8bb3",
"status": "active"
}
}Payload Fields
| Field | Description | Example |
|---|---|---|
id | Unique webhook identifier (UUID) | UUID |
created_at | When the webhook was created, in UTC | 2026-11-10T09:02:00Z |
event_type | Webhook event type | onboarding.updated |
shortcode | The organisation's newly assigned shortcode | test-school |
data | Object containing the application ID and status | See below |
data.organisation_application_id | The organisation application this relates to | UUID |
data.status | The organisation's connection status | active, revoked |
Statuses
| Status | Meaning |
|---|---|
active | The organisation is connected and has authorised your partner access. |
revoked | The organisation has revoked your partner access. |