JSON API Payload Patterns/Event-style message payload

A message with event type, timestamp, and nested data.

Section: Errors, events, and partial updates

Event-style message payload

json
json
{
  "event": "user.created",
  "occurred_at": "2026-03-27T17:00:00Z",
  "data": {
    "id": "usr_123",
    "email": "ada@example.com"
  }
}
Explanation

A common pattern for webhooks, queues, and audit logs.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Errors, events, and partial updates
Structured error payload
Return a machine-readable error code and human-readable message.
OpenIn sheetjsonsame section
Partial update payload
Send only the fields that should change.
OpenIn sheetjsonsame section
Single resource response
A simple object response with nested data.
OpenIn sheetjson1 tag match
Paginated list response
A list payload with page metadata.
OpenIn sheetjson1 tag match
Cursor-based response
Include a cursor token for the next page.
OpenIn sheetjson1 tag match