Skip to main content
PATCH
/
api
/
v1
/
webhooks
/
{id}
Update a webhook endpoint
curl --request PATCH \
  --url https://app.autousers.ai/api/v1/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "description": "<string>",
  "enabled_events": [
    "<string>"
  ],
  "api_version": "<string>",
  "status": "enabled"
}
'
{
  "id": "<string>",
  "url": "<string>",
  "secret_prefix": "<string>",
  "enabled_events": [
    "<string>"
  ],
  "status": "enabled",
  "description": "<string>",
  "api_version": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "last_delivered_at": "2023-11-07T05:31:56Z",
  "last_failed_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.autousers.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Client-generated idempotency key (≤255 chars). Replays the cached response when the same (team, key) pair sees an identical request body within 24h; returns 409 idempotency_key_reused if the body differs. Recommended for every billable POST.

Maximum string length: 255
Autousers-Version
string

Date-pinned API version (e.g. 2026-05-04). Omit to receive the latest stable version. Behaves like Stripe's Stripe-Version — pinning a version freezes payload shapes against breaking changes during the 12-month sunset window.

Path Parameters

id
string
required

cuid of the resource

Body

application/json
url
string<uri>
description
string | null
Maximum string length: 500
enabled_events
string[]
Required array length: 1 - 50 elements
api_version
string | null
Maximum string length: 32
status
enum<string>
Available options:
enabled,
disabled

Response

OK

id
string
required
url
string<uri>
required
secret_prefix
string
required

whsec_ + 6 chars of entropy

enabled_events
string[]
required

Allowlisted event names or * to subscribe to all events

status
enum<string>
required
Available options:
enabled,
disabled
description
string | null
api_version
string | null
created_at
string<date-time>
updated_at
string<date-time>
last_delivered_at
string<date-time> | null
last_failed_at
string<date-time> | null
{key}
any