Webhooks (legacy)

Events replace webhooksThis page describes legacy webhooks. They keep working, but they get no new features. For new integrations, use Events: more event types, signed requests and a delivery log. See simbase.com/docs/events.

A legacy webhook posts an event to an HTTPS URL you register, as a JSON POST, and your endpoint replies with any 2xx status code. Timestamps in the payload are YYYY-MM-DD HH:MM:SS in UTC. Legacy webhooks get no new features. For anything new, use Events. The Events page also explains how to switch.

The four events

SMS from a device

Sent when a device sends an SMS to +55555. In Events this is simcard.sms.mo.

{
"event": "sms",
"iccid": "8900000000001234567",
"timestamp": "2026-08-06 12:00:00",
"message": "test SMS message",
"deviceName": "Demo device"
}

IMEI change

Sent when the network reports the SIM in a device with a different IMEI. oldIMEI is the previous IMEI, or empty if the SIM had none. action is disabled when theft protection disabled the SIM, and None when nothing was done. In Events this is simcard.security.imei_changed. See Theft protection to block a change instead of only reporting it.

{
"event": "imei",
"timestamp": "2026-08-06 12:00:00",
"iccid": "8900000000001234567",
"oldIMEI": "None",
"newIMEI": "355234090012345",
"action": "disabled",
"deviceName": "Demo device"
}

SIM state change

Sent whenever a SIM is enabled or disabled, whatever caused it. old_state and new_state are enabled or disabled. In Events these are simcard.state.enabled and simcard.state.disabled.

{
"event": "sim_state",
"timestamp": "2026-08-06 12:00:00",
"iccid": "8900000000001234567",
"old_state": "enabled",
"new_state": "disabled",
"deviceName": "Demo device"
}

Usage limit reached

Sent when a SIM passes its monthly data or SMS cap and is disabled. Usage is reported when sessions close, so a SIM can finish slightly over its cap. In Events this is simcard.usage.threshold_exceeded. See Usage limits.

{
"event": "usage_limits",
"timestamp": "2026-08-06 12:00:00",
"iccid": "8900000000001234567",
"usage_mb": 102,
"threshold_mb": 100,
"usage_sms": 0,
"threshold_sms": null
}

Set up a legacy webhook

  1. Create an HTTPS endpoint that accepts POST requests and returns a 2xx status code. Only the status code matters, not the response body.

  2. Register the URL in the dashboard under Integrations → Webhooks. Each event type has one URL.

  3. Simbase sends a test event. If your endpoint replies with a 2xx status code, the webhook is saved and starts receiving events.

Delivery and security

  • Retries: if your endpoint doesn't return a 2xx status code, Simbase tries again after 15 minutes, and once more if that fails. After three attempts in total the event is dropped and you get an email.

  • Not signed: legacy webhook requests carry no signature. Each request has an x-simbase-requesttoken header, a request ID that stays the same on retries. It is not a secret, so it doesn't prove the request came from Simbase. To verify requests, use Events.

  • No IP allowlists: Simbase sends from addresses that change over time, so an allowlist will break.

Common questions

Yes, for anything new. Events cover the same four situations and more, can send many event types to one URL, sign every request and keep a delivery log. Run both side by side while you switch.

Not with legacy webhooks: each event type has one URL. Events can send to several destinations.

Yes. The API has endpoints to list, create and delete webhooks. See the API documentation.

  • Events: the replacement for legacy webhooks

  • SMS: sending and receiving SMS

  • SIM state: what Enabled and Disabled mean and what changes them

  • Usage limits: set the cap behind the usage event

  • API keys: create a key for your integration