Webhook Events
Complete reference of all webhook event types and their payloads.
Webhook Events Reference
This page lists all webhook event types available on the stemp platform. For setup instructions and signature verification, see the Webhooks guide.
Event Envelope
Every webhook delivery uses the same envelope format:
{
"type": "user.created",
"createdAt": "2026-11-01T10:30:00.512381Z",
"data": {
// Event-specific payload
},
"installation": {
"id": "appi_abc123",
"organizationId": "org_abc123",
"organizationName": "Acme Coffee",
"organizationSlug": "acme-coffee"
}
}| Field | Description |
|---|---|
type | The event type |
createdAt | When the event occurred (UTC) |
data | Event-specific payload |
installation | App webhooks only: the app installation the event belongs to |
The envelope has no id field. Use the X-Webhook-ID header to identify an event. Optional fields are sent as null.
Timestamps
Timestamps are in UTC and end in Z, except for three fields that are in UTC but have no zone suffix. Parse these as UTC:
| Event | Field |
|---|---|
user.created | data.createdAt |
user.updated | data.updatedAt |
pass.created | data.createdAt |
"createdAt": "2026-11-01T10:30:00.498112"IDs
IDs carry a type prefix: usr_ (user), pass_ (wallet pass), temp_ (template), org_ (organization), app_ (app), appi_ (app installation), and crmi_ (CRM import). The organizationId and rewardId fields of the stamp events are plain UUIDs without a prefix.
User Events
user.created
Triggered when a new user is created in your organization.
{
"type": "user.created",
"createdAt": "2026-11-01T10:30:00.512381Z",
"data": {
"id": "usr_xyz789",
"email": "jane@example.com",
"name": "Jane Doe",
"phone": "+491701234567",
"externalId": "cust_123",
"organizationId": "org_abc123",
"metadata": {
"private": {},
"public": {},
"unsafe": {}
},
"createdAt": "2026-11-01T10:30:00.498112"
}
}| Field | Description |
|---|---|
id | The user |
email, name, phone, externalId | The user's data; all but email can be null |
organizationId | The organization the user belongs to |
metadata | The user's private, public and unsafe metadata |
createdAt | When the user was created, UTC without zone (see Timestamps) |
user.updated
Triggered when user data is modified (name, email, phone, metadata). The payload is the same as for user.created, with updatedAt (UTC without zone) instead of createdAt.
{
"type": "user.updated",
"createdAt": "2026-11-01T11:00:00.104377Z",
"data": {
"id": "usr_xyz789",
"email": "jane.doe@example.com",
"name": "Jane Doe",
"phone": "+491701234567",
"externalId": "cust_123",
"organizationId": "org_abc123",
"metadata": {
"private": {},
"public": {},
"unsafe": {}
},
"updatedAt": "2026-11-01T11:00:00.087215"
}
}Wallet Pass Events
pass.created
Triggered when a new wallet pass is created for a user.
{
"type": "pass.created",
"createdAt": "2026-11-01T10:35:00.230817Z",
"data": {
"id": "pass_abc456",
"userId": "usr_xyz789",
"organizationId": "org_abc123",
"googleObjectId": null,
"applePassId": "pass_abc456",
"templateId": "temp_abc123",
"qrCodeValue": "ste.mp/Ab1x",
"createdAt": "2026-11-01T10:35:00.219904"
}
}| Field | Description |
|---|---|
id | The wallet pass |
userId | The user the pass belongs to |
organizationId | The organization |
googleObjectId | The Google Wallet object, or null while there is none |
applePassId | The pass ID used for Apple Wallet; the same as id |
templateId | The template the pass was created from |
qrCodeValue | The value encoded in the pass's QR code |
createdAt | When the pass was created, UTC without zone (see Timestamps) |
pass.installed
Triggered when a user adds the pass to their Apple Wallet or Google Wallet.
{
"type": "pass.installed",
"createdAt": "2026-11-01T10:40:00.771093Z",
"data": {
"id": "6f1d2c9a-3e4b-4a7f-9c10-8d5e2b7a1f43",
"passId": "pass_abc456",
"userId": "usr_xyz789",
"organizationId": "org_abc123",
"provider": "APPLE",
"installedAt": "2026-11-01T10:40:00.770412Z"
}
}| Field | Description |
|---|---|
id | A random ID for this event |
passId | The wallet pass |
userId | The user the pass belongs to |
organizationId | The organization |
provider | APPLE or GOOGLE |
installedAt | When the pass was added |
Stamp Card Events
stamp.added
Triggered when a stamp is added to a user's stamp card.
{
"type": "stamp.added",
"createdAt": "2026-11-01T14:00:00.318264Z",
"data": {
"id": "0c7a51e2-9f84-4b1d-a6e3-52d9c0b8f716",
"passId": "pass_abc456",
"userId": "usr_xyz789",
"organizationId": "1f0c8a52-7b3e-4d29-9e61-3a5b7c9d2e40",
"stampsBefore": 4,
"stampsAfter": 5,
"note": "Purchase at Main St. location",
"addedAt": "2026-11-01T14:00:00.317502Z"
}
}| Field | Description |
|---|---|
id | A random ID for this event |
passId | The wallet pass that got the stamp |
userId | The user the pass belongs to |
organizationId | The organization, as a plain UUID |
stampsBefore, stampsAfter | The stamp count before and after. When the stamp starts a new card, they are 0 and 1 |
note | The note sent with the stamp, or null |
addedAt | When the stamp was added |
stamp.reward_triggered
Triggered when a user reaches the stamp threshold and earns a reward.
{
"type": "stamp.reward_triggered",
"createdAt": "2026-11-01T14:30:00.902158Z",
"data": {
"id": "a83e0f6b-2c71-4d95-b4a8-6e1f9d3c5072",
"passId": "pass_abc456",
"userId": "usr_xyz789",
"organizationId": "1f0c8a52-7b3e-4d29-9e61-3a5b7c9d2e40",
"rewardId": "5d2b8e14-0a6c-4f3e-8b97-c41e7a9f6d28",
"rewardName": "Free coffee",
"totalStamps": 10,
"triggeredAt": "2026-11-01T14:30:00.901377Z"
}
}| Field | Description |
|---|---|
id | A random ID for this event |
passId | The wallet pass |
userId | The user the pass belongs to |
organizationId | The organization, as a plain UUID |
rewardId | The reward the user earned, as a plain UUID |
rewardName | The reward's name, or null |
totalStamps | The stamp count when the reward was reached |
triggeredAt | When the reward was reached |
User Tag Events
user_tag.assigned
Triggered when a tag is assigned to a user, either via the API or through the console UI.
{
"type": "user_tag.assigned",
"createdAt": "2026-11-01T12:00:00.146920Z",
"data": {
"id": "d4f7a2c8-61e3-4b0a-9d25-7c8e3f1b6a94",
"userId": "usr_xyz789",
"tagSlug": "vip",
"tagName": "VIP",
"organizationId": "org_abc123",
"assignedAt": "2026-11-01T12:00:00.146102Z"
}
}| Field | Description |
|---|---|
id | A random ID for this event |
userId | The user who was tagged |
tagSlug | Slug identifier of the tag |
tagName | Display name of the tag at the time of assignment |
organizationId | Organization the tag belongs to |
assignedAt | Timestamp of the assignment |
user_tag.unassigned
Triggered when a tag is removed from a user. Deleting a tag does not trigger this event.
{
"type": "user_tag.unassigned",
"createdAt": "2026-11-02T08:00:00.583371Z",
"data": {
"id": "7b9e1d3f-48a2-4c6e-a0f5-2d8c6b4e9a17",
"userId": "usr_xyz789",
"tagSlug": "vip",
"tagName": "VIP",
"organizationId": "org_abc123",
"unassignedAt": "2026-11-02T08:00:00.582540Z"
}
}| Field | Description |
|---|---|
id | A random ID for this event |
userId | The user who was untagged |
tagSlug | Slug identifier of the tag |
tagName | Display name of the tag at the time of removal |
organizationId | Organization the tag belongs to |
unassignedAt | Timestamp of the removal |
Organization Events
organization.updated
Triggered when organization details are changed (name, logo, etc.).
{
"type": "organization.updated",
"createdAt": "2026-11-01T10:00:00.665019Z",
"data": {
"id": "org_abc123",
"name": "Acme Coffee Co.",
"slug": "acme-coffee",
"updatedAt": "2026-11-01T10:00:00.664280Z"
}
}CRM Import Events
crm_import.started
Triggered when an import of contacts from a connected CRM starts. The event is delivered when the import attempt ends. A failed attempt is retried and sends crm_import.started again; crm_import.completed follows only the final result.
{
"type": "crm_import.started",
"createdAt": "2026-11-01T09:00:00.120554Z",
"data": {
"importJobId": "crmi_abc123",
"provider": "MAILCHIMP",
"providerDisplayName": "Mailchimp",
"sourceListName": "Newsletter",
"importTag": "import-newsletter"
}
}crm_import.completed
Triggered when the import has finished or failed. The payload adds the outcome to the fields of crm_import.started; status is COMPLETED or FAILED.
{
"type": "crm_import.completed",
"createdAt": "2026-11-01T09:02:14.877403Z",
"data": {
"importJobId": "crmi_abc123",
"provider": "MAILCHIMP",
"providerDisplayName": "Mailchimp",
"sourceListName": "Newsletter",
"importTag": "import-newsletter",
"status": "COMPLETED",
"totalRecords": 120,
"successCount": 117,
"failureCount": 1,
"skippedCount": 2,
"durationMs": 134512
}
}App Events
Your app receives these only for its own installations.
app.installed
Triggered when an app is installed by an organization.
{
"type": "app.installed",
"createdAt": "2026-11-01T10:00:00.402875Z",
"data": {
"id": "3a6d9f12-7c4e-4b8a-9e05-d1f2b8c6a473",
"installationId": "appi_abc123",
"appId": "app_xyz789",
"appName": "POS Connector",
"appSlug": "pos-connector",
"organizationId": "org_abc123",
"scopesGranted": ["pass:read", "pass:create", "loyalty:manage"],
"installedAt": "2026-11-01T10:00:00.385116Z",
"accessToken": null,
"refreshToken": null
}
}accessToken and refreshToken are only set when stemp installs the app for an organization itself, without the OAuth consent flow. Otherwise they are null, and your app gets its tokens through the OAuth2 flow.
app.uninstalled
Triggered when an app is uninstalled.
{
"type": "app.uninstalled",
"createdAt": "2026-11-02T08:00:00.219734Z",
"data": {
"id": "c2e8b4f6-91a3-4d7c-8f52-6b0e3a9d1c85",
"installationId": "appi_abc123",
"appId": "app_xyz789",
"appName": "POS Connector",
"appSlug": "pos-connector",
"organizationId": "org_abc123",
"uninstalledAt": "2026-11-02T08:00:00.218893Z"
}
}app.scopes_updated
Triggered when an installed app's permissions are changed.
{
"type": "app.scopes_updated",
"createdAt": "2026-11-03T10:00:00.548126Z",
"data": {
"id": "f1b7d3a9-26c8-4e5f-b0a4-8d3e7c1f9b62",
"installationId": "appi_abc123",
"appId": "app_xyz789",
"appName": "POS Connector",
"appSlug": "pos-connector",
"organizationId": "org_abc123",
"previousScopes": ["pass:read", "pass:create"],
"newScopes": ["pass:read", "pass:create", "loyalty:manage"],
"scopesAdded": ["loyalty:manage"],
"scopesRemoved": [],
"updatedAt": "2026-11-03T10:00:00.547301Z"
}
}Event Type Summary
| Event | Category | Description |
|---|---|---|
user.created | User Management | New user created |
user.updated | User Management | User data modified |
pass.created | Wallet Pass | New pass created |
pass.installed | Wallet Pass | Pass added to wallet |
stamp.added | Stamp Card | Stamp added |
stamp.reward_triggered | Stamp Card | Reward threshold reached |
user_tag.assigned | User Management | Tag assigned to user |
user_tag.unassigned | User Management | Tag removed from user |
organization.updated | Organization | Organization updated |
crm_import.started | CRM Import | Contact import started |
crm_import.completed | CRM Import | Contact import finished or failed |
app.installed | Apps | App installed |
app.uninstalled | Apps | App uninstalled |
app.scopes_updated | Apps | App permissions changed |
user.deleted can be selected when you subscribe, but stemp does not send it yet.