---
title: "Set the account-default capture webhook"
method: PATCH
path: "/api/me"
tags: ["Account"]
---

# Set the account-default capture webhook

`PATCH /api/me`

## Request

- Base URL: `https://snaplab.dev`
- URL: `https://snaplab.dev/api/me`
- Auth: HTTP bearer

Either field may be sent on its own; `null` or `""` clears it. Used by any capture that does not carry its own `webhookUrl`.

## Request body

- object
  - `webhookUrl` string, uri, nullable: `https://` only; private, loopback and metadata addresses are refused.
  - `webhookSecret` string, nullable: Signs every callback that uses this URL.

## Response `200`

The stored values, secret masked.

- object
  - `ok` boolean
  - `webhookUrl` string, nullable
  - `webhookSecret` string, nullable: Masked to the last four characters.

## Other responses

- `400`: Nothing to update, or a webhook field that failed validation.
- `401`: Not authenticated.

---

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