Skip to main content
PATCH
/
api
/
v1
/
widget-keys
/
{id}
Update or revoke a widget key
curl --request PATCH \
  --url https://api.kataven.ai/v1/api/v1/widget-keys/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "agent_01HZ2N7G3K8M0Q5R7T9V2X4Y6Z",
  "disabled": false,
  "domain_allowlist": [
    "https://acme.com",
    "https://www.acme.com",
    "https://app.acme.com"
  ],
  "name": "acme.com production (renamed)"
}
'
"<string>"

Documentation Index

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

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

Authorizations

Authorization
string
header
required

Headers

X-Account-ID
string

Tenant database. Required when using a Zitadel JWT.

Path Parameters

id
string
required

Widget key id (uuid)

Body

application/json

Fields to update

Fields to update

agent_id
string
Example:

"agent_01HZ2N7G3K8M0Q5R7T9V2X4Y6Z"

disabled
boolean
Example:

false

domain_allowlist
string[]
Example:
[
"https://acme.com",
"https://www.acme.com",
"https://app.acme.com"
]
name
string
Example:

"acme.com production (renamed)"

Response

Updated