Skip to main content
PATCH
/
chatbots
/
{id}
Update a chatbot
curl --request PATCH \
  --url https://api.awardee.dev/v1/chatbots/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "logo_url": "https://cdn.example.com/acme-logo.png",
  "welcome_message": "<string>",
  "welcome_subtitle": "<string>",
  "system_prompt": "<string>",
  "model": "<string>",
  "primary_color": "<string>",
  "suggestions": [
    "<string>"
  ],
  "human_support_enabled": true,
  "page_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "article_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "category_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "password": "<string>",
  "location": {
    "enabled": true,
    "address": "<string>",
    "lat": 0,
    "lng": 0,
    "place_id": "<string>"
  },
  "web_search_enabled": true
}
'
{
  "object": "<string>",
  "id": "8f3a9d2e-1b4c-4f5d-9e8a-7c3b2a1d0f9e",
  "name": "Support Bot",
  "slug": "support-bot",
  "public_slug": "k7Hq3M2",
  "url": "https://chatbot.awardee.dev/k7Hq3M2",
  "description": "Public-facing support assistant for Acme Inc.",
  "welcome_message": "Hi! How can I help?",
  "welcome_subtitle": "<string>",
  "system_prompt": "You are a helpful support agent for Acme Inc.",
  "model": "gpt-4.1-mini",
  "primary_color": "#007495",
  "logo_url": "https://cdn.awardee.dev/logos/acme.png",
  "tone": "friendly",
  "suggestions": [
    "Reset my password",
    "Pricing",
    "Contact a human"
  ],
  "human_support_enabled": true,
  "password_protected": true,
  "page_ids": [
    "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
  ],
  "article_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "category_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "location": {
    "enabled": true,
    "address": "<string>",
    "lat": 123,
    "lng": 123,
    "place_id": "<string>"
  },
  "web_search_enabled": true,
  "conversation_count": 123,
  "last_active_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer aw_live_…. Manage keys in the dashboard under Settings → API Keys.

Path Parameters

id
string<uuid>
required

Body

application/json
name
string
Minimum string length: 1
description
string | null
logo_url
string<uri> | null

Public image URL for the chatbot logo, or null to clear it. Server fetches the bytes (SSRF-checked), stores them in your organization's asset library, links the asset to this chatbot, and returns the resolved storage URL on the response. Bytes are content-addressed and de-duplicated within the organization.

Example:

"https://cdn.example.com/acme-logo.png"

welcome_message
string | null
welcome_subtitle
string | null
system_prompt
string | null
model
string | null
primary_color
string | null
Pattern: ^#[0-9a-fA-F]{6}$
tone
enum<string> | null
Available options:
professional,
friendly,
casual,
formal,
empathetic
suggestions
string[] | null
human_support_enabled
boolean
page_ids
string<uuid>[]
article_ids
string<uuid>[]
category_ids
string<uuid>[]
password
string | null
status
enum<string>
Available options:
draft,
active,
paused,
archived
location
object
web_search_enabled
boolean

Response

Updated chatbot

object
string
required
Allowed value: "chatbot"
id
string<uuid>
required
Example:

"8f3a9d2e-1b4c-4f5d-9e8a-7c3b2a1d0f9e"

name
string
required
Example:

"Support Bot"

slug
string
required
Example:

"support-bot"

public_slug
string
required
Example:

"k7Hq3M2"

url
string<uri>
required
Example:

"https://chatbot.awardee.dev/k7Hq3M2"

status
enum<string>
required
Available options:
draft,
active,
paused,
archived
description
string | null
required
Example:

"Public-facing support assistant for Acme Inc."

welcome_message
string | null
required
Example:

"Hi! How can I help?"

welcome_subtitle
string | null
required
system_prompt
string | null
required
Example:

"You are a helpful support agent for Acme Inc."

model
string | null
required
Example:

"gpt-4.1-mini"

primary_color
string | null
required
Example:

"#007495"

logo_url
string | null
required

Resolved public URL of the chatbot logo. Derived server-side from the chatbot's underlying asset reference — the chatbot row itself does not store a URL. On POST/PATCH, pass logo_url as a CONVENIENCE: the server fetches the bytes (SSRF-checked), stores them in the org's asset library (with content-hash dedup), and links the new asset to the chatbot. Send null to clear the logo.

Example:

"https://cdn.awardee.dev/logos/acme.png"

tone
string | null
required
Example:

"friendly"

suggestions
string[] | null
required
Example:
[
"Reset my password",
"Pricing",
"Contact a human"
]
human_support_enabled
boolean
required
password_protected
boolean
required
page_ids
string<uuid>[]
required
Example:
["a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"]
article_ids
string<uuid>[]
required
category_ids
string<uuid>[]
required
location
object
required
web_search_enabled
boolean
required
conversation_count
number | null
required
last_active_at
string<date-time> | null
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
created_at
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
updated_at
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$