Skip to main content
PATCH
/
api
/
v1
/
agents
/
{id}
/
widget-settings
Update per-agent widget policy
curl --request PATCH \
  --url https://api.kataven.ai/v1/api/v1/agents/{id}/widget-settings \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "agent_01HZ2N7G3K8M0Q5R7T9V2X4Y6Z",
  "auth_mode": "both",
  "widget_enabled": true
}
'
{
  "agent_id": "agent_01HZ2N7G3K8M0Q5R7T9V2X4Y6Z",
  "auth_mode": "both",
  "widget_enabled": true
}

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

Agent id (uuid)

Body

application/json

Per-agent fields

Per-agent fields

agent_id
string
Example:

"agent_01HZ2N7G3K8M0Q5R7T9V2X4Y6Z"

auth_mode
enum<string>
Available options:
guest,
user,
both
Example:

"both"

widget_enabled
boolean
Example:

true

Response

OK

agent_id
string
Example:

"agent_01HZ2N7G3K8M0Q5R7T9V2X4Y6Z"

auth_mode
enum<string>
Available options:
guest,
user,
both
Example:

"both"

widget_enabled
boolean
Example:

true