---
title: "Set the first webhook endpoint of an inbox address (legacy)"
method: PUT
path: "/inbox/webhook/addresses/{addressId}"
tags: ["inbox"]
---

# Set the first webhook endpoint of an inbox address (legacy)

`PUT /inbox/webhook/addresses/{addressId}`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/inbox/webhook/addresses/{addressId}`
- Auth: HTTP bearer

Legacy single-subscription API: creates or updates the oldest endpoint of the address. Use /inbox/webhook/endpoints to manage multiple endpoints. The signing secret is returned only on creation or rotateSecret.

## Path parameters

- `addressId` string, required: Inbox address ID

## Request body

- object
  - `url` string
  - `active` boolean
  - `bodyFormat` string: text / html / markdown
  - `stripQuotes` boolean
  - `signingSecret` string
  - `rotateSecret` boolean

## Response `200`

Updated

- object
  - `success` boolean, required
  - `subscription` object, required
  - `signingSecret` string

## Other responses

- `201`: Created
- `400`: Invalid configuration
- `401`: Missing or invalid API key
- `404`: Resource not found
- `409`: Duplicate url for this address
- `500`: Server error

---

[API](https://skmtc.dev/mailly/apis/mailly-api.md) · [All operations](https://skmtc.dev/mailly/apis/mailly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mailly/apis/mailly-api/revisions/1ceb29637301?raw)
