---
title: "Preview Zapier Payload"
method: POST
path: "/api/v2/webhooks/zapier/previewPayload"
tags: ["api-v2-webhooks"]
---

# Preview Zapier Payload

`POST /api/v2/webhooks/zapier/previewPayload`

Preview the ZapierResourcePayload that would be sent for a given DBNotificationMessage.
This endpoint does NOT send any webhooks - it only returns the converted payload.

Request body should contain:
- record_id: int
- operation: str (INSERT, UPDATE, DELETE)
- table_name: str
- old_data: dict
- new_data: dict
- diff_data: dict
- context: dict

## Request body

- ZapierPreviewPayloadRequest
  - `record_id` integer, required
  - `operation` string, required
  - `table_name` string, required
  - `old_data` object
  - `new_data` object
  - `diff_data` object
  - `context` object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/lev/apis/lev-api.md) · [All operations](https://skmtc.net/lev/apis/lev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lev/lev-api/revisions/e1915e1423cf/schema)
