---
title: "Set or clear a webhook URL."
method: PATCH
path: "/api/keys/{id}"
tags: ["Agents and API Keys"]
---

# Set or clear a webhook URL.

`PATCH /api/keys/{id}`

## Request

- Base URL: `https://rentahuman.ai`
- URL: `https://rentahuman.ai/api/keys/{id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Returns the webhook secret when configured.

## Path parameters

- `id` string, required

## Request body

- object
  - `webhookUrl` string, nullable, required

## Response `2XX`

Successful response.

- object

## Other responses

- `4XX`: Error response.

---

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