# Webhooks (legacy)

> **Does Simbase still support webhooks?** Yes, for existing integrations. Legacy webhooks keep working but get no new features; new integrations should use Events, which add more event types, signed requests and a delivery log. A legacy webhook posts JSON to an HTTPS URL you register under Integrations → Webhooks, for four events: SMS from a device, IMEI change, SIM state change and usage limit reached. There is no event for public IP assignment; read `public_ip` from `GET /v2/simcards/{iccid}`.

Source: https://simbase.com/docs/webhooks (updated 2026-11-26)

> **Events replace webhooks** This 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](/docs/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`.

```json
{
  "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](/docs/theft-protection) to block a change instead of only reporting it.

```json
{
  "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`.

```json
{
  "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](/docs/usage-limits).

```json
{
  "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](https://dashboard.simbase.com/dashboard/integrations) 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

**Should I move to Events?**

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.

**Can I send the same event type to more than one URL?**

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

**Can I manage legacy webhooks through the API?**

Yes. The API has endpoints to list, create and delete webhooks. See the [API documentation](https://developer.simbase.com/).

## Related

- [Events](/docs/events): the replacement for legacy webhooks
- [SMS](/docs/sms): sending and receiving SMS
- [SIM state](/docs/sim-state): what Enabled and Disabled mean and what changes them
- [Usage limits](/docs/usage-limits): set the cap behind the usage event
- [API keys](/docs/api-keys): create a key for your integration
