---
title: "Create or update website chat"
method: POST
path: "/chats"
tags: ["Website Chat"]
---

# Create or update website chat

`POST /chats`

REQUIRED SCOPES <code>['website-chat:write']</code><br>Create or update website chat

## Request body

- object
  - `header` string — Header
  - `phone` string — Phone
  - `team_id` string — Team ID
  - `button` string — Button
  - `color` string — Color
  - `message` string — Message
  - `status` boolean — Activate
  - `domains` string[] — Domains
  - `tags` integer[] — Array of Tag IDs

## Response `200`

OK

- WebsiteChatResource
  - `id` integer
  - `button` string
  - `color` string
  - `position` string
  - `header` string
  - `organization_name` string
  - `status` string
  - `team_number` string
  - `uuid` string
  - `domains` object[]
    - `website_chat_id` integer
    - `domain` string
  - `tags` object[]
    - `id` integer
    - `name` string
  - `created_at` string
  - `updated_at` string

## Other responses

- `500` — Error

---

[API](https://skmtc.net/salesmessage/apis/salesmessage-public-api.md) · [All operations](https://skmtc.net/salesmessage/apis/salesmessage-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesmessage/salesmessage-public-api/revisions/e96b3e58b041/schema)
