muro Sites API

The sites a workspace runs, their chat widget settings and install snippets.

GitHub OpenAPI

Operations 4

GET /sites List sites #
POST /sites Add one site, or up to 50 at once #
GET /sites/{id} Retrieve a site, its snippet and install steps #
PATCH /sites/{id} Configure a site's chat widget #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/muro-chat:muro-chat-sites-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

muro-chat-sites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: muro REST Sites API
  version: 1.0.0
  description: Set up sites and their chat widgets, read conversations, send replies, triage threads, and sync contacts. JSON in, JSON out, one Bearer key. Stable DTOs, keyset pagination, predictable errors, and HMAC-signed webhooks.
  contact:
    name: muro support
    email: contact@muro.chat
    url: https://muro.chat/docs/api
servers:
- url: https://muro.chat/api/v1
  description: Production
security:
- bearerAuth: []
tags:
- name: Sites
  description: The sites a workspace runs, their chat widget settings and install snippets.
paths:
  /sites:
    get:
      tags:
      - Sites
      summary: List sites
      description: Every site in the workspace with its widget config and install snippet. A site-scoped key sees its one site.
      operationId: listSites
      responses:
        '200':
          description: All sites, newest first (not paginated).
          headers:
            X-RateLimit-Limit:
              schema:
                type: integer
              description: Requests allowed per window.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: Requests left in the window.
            X-RateLimit-Reset:
              schema:
                type: integer
              description: Unix seconds when the window resets.
            X-Request-Id:
              schema:
                type: string
              description: Correlation id — quote it to support.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/List'
                - type: object
                  properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/Site'
        '401':
          description: Missing/invalid key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      tags:
      - Sites
      summary: Add one site, or up to 50 at once
      description: 'Send one site (`{ domain, name?, color?, language? }`) or a batch (`{ sites: [...] }`). A domain the workspace already has is returned as is with `existed: true`, so retries never duplicate a site. A batch is processed in order and answers 200 with one result per domain: a bad domain or the plan''s site limit fails that entry only. Needs the write scope and a workspace-wide key.'
      operationId: createSites
      parameters:
      - $ref: '#/components/parameters/idempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/SiteInput'
              - type: object
                required:
                - sites
                properties:
                  sites:
                    type: array
                    minItems: 1
                    maxItems: 50
                    items:
                      $ref: '#/components/schemas/SiteInput'
      responses:
        '200':
          description: 'A batch result, or the single site when it already existed (`existed: true`).'
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/SiteBatchResult'
                - $ref: '#/components/schemas/SiteCreated'
        '201':
          description: Created (single site). Carries a Location header.
          headers:
            X-RateLimit-Limit:
              schema:
                type: integer
              description: Requests allowed per window.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: Requests left in the window.
            X-RateLimit-Reset:
              schema:
                type: integer
              description: Unix seconds when the window resets.
            X-Request-Id:
              schema:
                type: string
              description: Correlation id — quote it to support.
            Location:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiteCreated'
        '400':
          description: Invalid body, or (single site) a domain that is not a hostname.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: 'Single site: the plan''s site limit is reached (`code: plan_limit_reached`, with `plan` and `limit`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Key lacks the write scope, or is restricted to one site.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Idempotency-Key reused with a different body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Content-Type must be application/json.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /sites/{id}:
    parameters:
    - $ref: '#/components/parameters/id'
    get:
      tags:
      - Sites
      summary: Retrieve a site, its snippet and install steps
      operationId: getSite
      responses:
        '200':
          description: The site, plus per-platform install steps.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Site'
                - type: object
                  properties:
                    install_hints:
                      type: array
                      items:
                        $ref: '#/components/schemas/InstallHint'
        '404':
          description: Not found in your workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    patch:
      tags:
      - Sites
      summary: Configure a site's chat widget
      description: Change any subset of the widget settings, launcher included. Unknown fields are rejected. Visitors see the change on their next page load, no reinstall needed.
      operationId: updateSite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SiteSettingsInput'
      responses:
        '200':
          description: The updated site.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Site'
        '400':
          description: Invalid or unknown field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Key lacks the write scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Content-Type must be application/json.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SiteInput:
      type: object
      required:
      - domain
      properties:
        domain:
          type: string
          example: shop.example.com
          description: Hostname. A full URL is accepted and reduced to its hostname.
        name:
          type: string
          maxLength: 80
          description: Display name in the widget header. Defaults to the domain.
        color:
          type: string
          pattern: ^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
          description: Accent color as a hex value, for example "#4323ec".
        language:
          type: string
          description: Widget language code such as "en" or "fr", or "auto" to follow each visitor's browser.
    SiteCreated:
      allOf:
      - $ref: '#/components/schemas/Site'
      - type: object
        properties:
          existed:
            type: boolean
            description: true when the workspace already had this domain.
    SiteConfig:
      type: object
      description: The widget settings, as PATCH /sites/{id} accepts them. Unset text fields are null.
      properties:
        color:
          type: string
          pattern: ^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
          description: Accent color as a hex value, for example "#4323ec".
        position:
          type: string
          enum:
          - bottom-right
          - bottom-left
          description: Corner the launcher sits in.
        welcome_message:
          type:
          - string
          - 'null'
          maxLength: 500
          description: First message a visitor sees when they open the chat.
        agent_name:
          type:
          - string
          - 'null'
          maxLength: 40
          description: Agent display name in the widget header, for example "Sarah". Empty string removes it.
        reply_time:
          type:
          - string
          - 'null'
          maxLength: 80
          description: Status line under the name, for example "Replies within an hour". Empty string uses the localised default.
        language:
          type: string
          description: Widget language code such as "en" or "fr", or "auto" to follow each visitor's browser.
        widget_size:
          type: string
          enum:
          - standard
          - large
          - xlarge
          description: Overall widget scale, for sites with large type.
        require_email:
          type: boolean
          description: 'true (default): visitors give their email before the first message. false: they can start chatting at once.'
        proactive_message:
          type:
          - string
          - 'null'
          maxLength: 140
          description: Short line that pops up beside the launcher after proactive_delay seconds, for example "Questions about pricing?". Shown once a week per visitor at most. Empty string turns it off (the default).
        proactive_delay:
          type: number
          minimum: 3
          maximum: 300
          description: Seconds on the page before the proactive message shows. Default 15.
        launcher_icon:
          type: string
          enum:
          - chat
          - message
          - help
          - sparkle
          - headset
          - wave
          - custom
          description: Icon on the launcher button. "chat" (default) is the filled chat bubble; message, help, sparkle, headset and wave are outline icons; "custom" shows launcher_image_url.
        launcher_style:
          type: string
          enum:
          - circle
          - pill
          - square
          - minimal
          description: 'Launcher shape. "circle" (default): round button. "pill": icon plus launcher_label, always visible. "square": rounded square. "minimal": smaller white button with the icon in the accent color.'
        launcher_label:
          type:
          - string
          - 'null'
          maxLength: 24
          description: Launcher text, shown on the pill and when a visitor hovers the button. One line, at most 24 characters. Empty string uses "Start the chat" in each visitor's language.
        launcher_image_url:
          type:
          - string
          - 'null'
          description: https URL of a square image (PNG, SVG or WebP, ideally 64 x 64 or larger) used as the launcher icon when launcher_icon is "custom". Empty string clears it.
    InstallHint:
      type: object
      properties:
        framework:
          type: string
          enum:
          - html
          - nextjs
          - wordpress
          - shopify
          - webflow
        label:
          type: string
          example: Next.js
        hint:
          type: string
        code:
          type: string
          description: Platform-specific code, when the plain snippet is not pasted as is.
    SiteBatchResult:
      type: object
      properties:
        object:
          type: string
          const: site_batch
        created:
          type: integer
        existed:
          type: integer
        failed:
          type: integer
        results:
          type: array
          items:
            type: object
            properties:
              domain:
                type: string
              status:
                type: string
                enum:
                - created
                - existed
                - failed
              site:
                oneOf:
                - $ref: '#/components/schemas/Site'
                - type: 'null'
              error:
                type:
                - object
                - 'null'
                properties:
                  code:
                    type: string
                    enum:
                    - invalid_domain
                    - plan_limit_reached
                  message:
                    type: string
    SiteSettingsInput:
      type: object
      additionalProperties: false
      properties:
        name:
          type: string
          maxLength: 80
          description: Display name shown in the widget header.
        color:
          type: string
          pattern: ^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
          description: Accent color as a hex value, for example "#4323ec".
        position:
          type: string
          enum:
          - bottom-right
          - bottom-left
          description: Corner the launcher sits in.
        welcome_message:
          type: string
          maxLength: 500
          description: First message a visitor sees when they open the chat.
        agent_name:
          type: string
          maxLength: 40
          description: Agent display name in the widget header, for example "Sarah". Empty string removes it.
        reply_time:
          type: string
          maxLength: 80
          description: Status line under the name, for example "Replies within an hour". Empty string uses the localised default.
        language:
          type: string
          description: Widget language code such as "en" or "fr", or "auto" to follow each visitor's browser.
        widget_size:
          type: string
          enum:
          - standard
          - large
          - xlarge
          description: Overall widget scale, for sites with large type.
        require_email:
          type: boolean
          description: 'true (default): visitors give their email before the first message. false: they can start chatting at once.'
        proactive_message:
          type: string
          maxLength: 140
          description: Short line that pops up beside the launcher after proactive_delay seconds, for example "Questions about pricing?". Shown once a week per visitor at most. Empty string turns it off (the default).
        proactive_delay:
          type: number
          minimum: 3
          maximum: 300
          description: Seconds on the page before the proactive message shows. Default 15.
        launcher_icon:
          type: string
          enum:
          - chat
          - message
          - help
          - sparkle
          - headset
          - wave
          - custom
          description: Icon on the launcher button. "chat" (default) is the filled chat bubble; message, help, sparkle, headset and wave are outline icons; "custom" shows launcher_image_url.
        launcher_style:
          type: string
          enum:
          - circle
          - pill
          - square
          - minimal
          description: 'Launcher shape. "circle" (default): round button. "pill": icon plus launcher_label, always visible. "square": rounded square. "minimal": smaller white button with the icon in the accent color.'
        launcher_label:
          type: string
          maxLength: 24
          description: Launcher text, shown on the pill and when a visitor hovers the button. One line, at most 24 characters. Empty string uses "Start the chat" in each visitor's language.
        launcher_image_url:
          type: string
          description: https URL of a square image (PNG, SVG or WebP, ideally 64 x 64 or larger) used as the launcher icon when launcher_icon is "custom". Empty string clears it.
    Site:
      type: object
      properties:
        object:
          type: string
          const: site
        id:
          type: string
          example: web_1a2b3c
        domain:
          type: string
          example: shop.example.com
        name:
          type: string
          example: Example Shop
        widget_id:
          type: string
          example: wgt_shopexamplecom_k2j9x1
        config:
          $ref: '#/components/schemas/SiteConfig'
        snippet:
          type: string
          description: HTML that installs the widget. Paste it once per site, just before </body>.
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - type
          - message
          properties:
            type:
              type: string
              enum:
              - authentication_error
              - permission_error
              - rate_limit_error
              - invalid_request_error
              - subscription_required
              - not_found
              - api_error
            message:
              type: string
            code:
              type: string
              description: Machine-readable reason when the type alone is not enough, for example `plan_limit_reached`.
            request_id:
              type: string
    List:
      type: object
      required:
      - object
      - data
      - has_more
      - next_cursor
      properties:
        object:
          type: string
          const: list
        data:
          type: array
          items: {}
        has_more:
          type: boolean
        next_cursor:
          type:
          - string
          - 'null'
  parameters:
    id:
      name: id
      in: path
      required: true
      schema:
        type: string
    idempotencyKey:
      name: Idempotency-Key
      in: header
      schema:
        type: string
      description: Safe-retry key; an identical retry replays the first response. Durable (survives deploys/instances), retained ~24h.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'A workspace API key, `Authorization: Bearer mr_live_…`. Scopes: read, write.'
x-id-prefixes:
  conversation: cnv_
  message: msg_
  contact: vis_
  website: web_
  widget: wgt_
  user: usr_
  event: evt_
  saved_reply: srp_
  api_key: mr_live_
x-rate-limit:
  requests: 120
  window_seconds: 60
  scope: per API key (per process)