Esenda
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

ScenarioEvent Type
An organisation is connected to your accountonboarding.updated
An organisation revokes your partner accessonboarding.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

FieldDescriptionExample
idUnique webhook identifier (UUID)UUID
created_atWhen the webhook was created, in UTC2026-11-10T09:02:00Z
event_typeWebhook event typeonboarding.updated
shortcodeThe organisation's newly assigned shortcodetest-school
dataObject containing the application ID and statusSee below
data.organisation_application_idThe organisation application this relates toUUID
data.statusThe organisation's connection statusactive, revoked

Statuses

StatusMeaning
activeThe organisation is connected and has authorised your partner access.
revokedThe organisation has revoked your partner access.

On this page