---
title: "Test Imessage Webhook Setup"
method: POST
path: "/api/test/imessage-webhook-setup"
---

# Test Imessage Webhook Setup

`POST /api/test/imessage-webhook-setup`

## Request

- Base URL: `https://api.yourbeckett.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.yourbeckett.com/api/test/imessage-webhook-setup`
- Auth: none declared

Register Beckett's inbound webhook with Sendblue (idempotent). Admin-only.

Body: {"base_url": "https://beckett-api.up.railway.app"}

Uses PUT to replace Sendblue's webhook config rather than POST-to-add,
so running this twice leaves exactly one canonical receive webhook —
never stale duplicates.

Preserves any non-receive webhook types that are already registered
(call_log, contact_created, etc.) by reading current state first and
merging in the new `receive` entry.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/yourbeckett/apis/beckett-platform.md) · [All operations](https://skmtc.dev/yourbeckett/apis/beckett-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/yourbeckett/apis/beckett-platform/revisions/a1cb8f2c8961?raw)
