muro Webhooks API

Signed HTTP callbacks for new messages and conversation changes.

GitHub OpenAPI

Operations 6

GET /webhooks List webhook endpoints #
POST /webhooks Register a webhook endpoint #
GET /webhooks/{id} Retrieve a webhook endpoint #
PATCH /webhooks/{id} Update a webhook endpoint #
DELETE /webhooks/{id} Delete a webhook endpoint #
POST /webhooks/{id}/test Send a signed test event #

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-webhooks-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-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: muro REST Webhooks 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: Webhooks
  description: Signed HTTP callbacks for new messages and conversation changes.
paths:
  /webhooks:
    get:
      tags:
      - Webhooks
      summary: List webhook endpoints
      description: Secrets are never listed. A site-scoped key sees the endpoints scoped to its site.
      operationId: listWebhooks
      responses:
        '200':
          description: All endpoints, 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/WebhookEndpoint'
        '401':
          description: Missing/invalid key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      tags:
      - Webhooks
      summary: Register a webhook endpoint
      description: 'Events are POSTed as JSON, signed with `x-muro-signature: t=…,v1=hex(HMAC_SHA256(secret, rawBody))` (the raw body only; `t` is not signed). The response carries `secret` once, store it. Set `website_id` (or use a site-scoped key, which forces it) to receive only that site''s events. `headers` are sent on every delivery, stored encrypted and only read back masked. Needs the write scope.'
      operationId: createWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - url
              properties:
                url:
                  type: string
                  format: uri
                  description: Public https URL.
                events:
                  type: array
                  items:
                    type: string
                    enum:
                    - '*'
                    - message.created
                    - conversation.opened
                    - conversation.closed
                    - visitor.identified
                  default:
                  - '*'
                name:
                  type: string
                  maxLength: 120
                website_id:
                  type:
                  - string
                  - 'null'
                  example: web_…
                headers:
                  $ref: '#/components/schemas/WebhookHeadersInput'
      responses:
        '201':
          description: Created. Includes the signing secret, shown only here.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/WebhookEndpoint'
                - type: object
                  properties:
                    secret:
                      type: string
                      example: whsec_…
        '400':
          description: Invalid url/events/headers (reserved header name included), non-https or private host, or the workspace endpoint cap is reached.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Key lacks the write scope, or is restricted to another site.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: website_id is not a site of this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: An endpoint for this url (and site) already exists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /webhooks/{id}:
    parameters:
    - $ref: '#/components/parameters/id'
    get:
      tags:
      - Webhooks
      summary: Retrieve a webhook endpoint
      operationId: getWebhook
      responses:
        '200':
          description: The endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    patch:
      tags:
      - Webhooks
      summary: Update a webhook endpoint
      description: 'Any subset of the fields. `headers` is shallow-merged (names are case-insensitive): a string sets or replaces a header, null removes it, and `headers: null` removes them all. `website_id: null` makes the endpoint workspace-wide (workspace keys only). Needs the write scope.'
      operationId: updateWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  format: uri
                events:
                  type: array
                  items:
                    type: string
                    enum:
                    - '*'
                    - message.created
                    - conversation.opened
                    - conversation.closed
                    - visitor.identified
                name:
                  type: string
                  maxLength: 120
                enabled:
                  type: boolean
                website_id:
                  type:
                  - string
                  - 'null'
                headers:
                  type:
                  - object
                  - 'null'
                  additionalProperties:
                    type:
                    - string
                    - 'null'
                  maxProperties: 10
                  example:
                    Authorization: Bearer new-receiver-key
                    X-Old: null
      responses:
        '200':
          description: The updated endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
        '400':
          description: Invalid field, reserved header name, or nothing to update.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Key lacks the write scope, or is restricted to another site.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found (or website_id is not a site of this workspace).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Another endpoint already has this url (and site).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      tags:
      - Webhooks
      summary: Delete a webhook endpoint
      operationId: deleteWebhook
      responses:
        '200':
          description: '`{ object, id, deleted: true }`.'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /webhooks/{id}/test:
    parameters:
    - $ref: '#/components/parameters/id'
    post:
      tags:
      - Webhooks
      summary: Send a signed test event
      description: Sends one sample `message.created` with `data.test = true` (signed, with the custom headers) and reports the status your endpoint answered. 5 per minute per endpoint.
      operationId: testWebhook
      responses:
        '200':
          description: '`{ object: "webhook_test", endpoint_id, delivered, response_status }`.'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Too many test events.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
webhooks:
  message.created:
    post:
      summary: A visitor message or agent reply was created
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  example: evt_…
                type:
                  type: string
                organization_id:
                  type: string
                created_at:
                  type: string
                  format: date-time
                data:
                  type: object
                  properties:
                    message:
                      type: object
                      properties:
                        id:
                          type: string
                        conversation_id:
                          type: string
                        website_id:
                          type: string
                        sender_type:
                          type: string
                          enum:
                          - visitor
                          - agent
                        sender_id:
                          type:
                          - string
                          - 'null'
                        content:
                          type: string
                        created_at:
                          type: string
                          format: date-time
      responses:
        '200':
          description: 'Return 2xx within 10 s to acknowledge. Signature: header x-muro-signature: t=…,v1=hex(HMAC_SHA256(secret, rawBody)), over the raw body only (t is not signed). Custom endpoint headers are sent too.'
      tags:
      - Webhooks
  conversation.opened:
    post:
      summary: A new conversation was opened
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  example: evt_…
                type:
                  type: string
                organization_id:
                  type: string
                created_at:
                  type: string
                  format: date-time
                data:
                  type: object
                  properties:
                    conversation:
                      type: object
                      properties:
                        id:
                          type: string
                        website_id:
                          type: string
                        visitor_id:
                          type: string
                        created_at:
                          type: string
                          format: date-time
      responses:
        '200':
          description: 'Return 2xx within 10 s to acknowledge. Signature: header x-muro-signature: t=…,v1=hex(HMAC_SHA256(secret, rawBody)), over the raw body only (t is not signed). Custom endpoint headers are sent too.'
      tags:
      - Webhooks
  conversation.closed:
    post:
      summary: A conversation was resolved
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  example: evt_…
                type:
                  type: string
                organization_id:
                  type: string
                created_at:
                  type: string
                  format: date-time
                data:
                  type: object
                  properties:
                    conversation:
                      type: object
                      properties:
                        id:
                          type: string
                        status:
                          type: string
                          enum:
                          - open
                          - closed
                          - snoozed
                        tags:
                          type: array
                          items:
                            type: string
                        unread_count:
                          type: integer
                        assigned_user_id:
                          type:
                          - string
                          - 'null'
                        last_message_at:
                          type: string
                          format: date-time
                        website_id:
                          type: string
      responses:
        '200':
          description: 'Return 2xx within 10 s to acknowledge. Signature: header x-muro-signature: t=…,v1=hex(HMAC_SHA256(secret, rawBody)), over the raw body only (t is not signed). Custom endpoint headers are sent too.'
      tags:
      - Webhooks
  visitor.identified:
    post:
      summary: A visitor handed over an email
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  example: evt_…
                type:
                  type: string
                organization_id:
                  type: string
                created_at:
                  type: string
                  format: date-time
                data:
                  type: object
                  properties:
                    visitor:
                      type: object
                      properties:
                        id:
                          type: string
                        email:
                          type: string
                        name:
                          type:
                          - string
                          - 'null'
      responses:
        '200':
          description: 'Return 2xx within 10 s to acknowledge. Signature: header x-muro-signature: t=…,v1=hex(HMAC_SHA256(secret, rawBody)), over the raw body only (t is not signed). Custom endpoint headers are sent too.'
      tags:
      - Webhooks
components:
  schemas:
    WebhookHeadersInput:
      type: object
      description: Static headers sent on every delivery (up to 10; printable ASCII values up to 4096 chars). x-muro-*, Content-Type, User-Agent and transport headers (Host, Content-Length, Connection, Transfer-Encoding, ...) are reserved.
      additionalProperties:
        type: string
      maxProperties: 10
      example:
        Authorization: Bearer your-receiver-key
    WebhookEndpoint:
      type: object
      properties:
        object:
          type: string
          const: webhook_endpoint
        id:
          type: string
          example: whe_1a2b
        name:
          type: string
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            type: string
        enabled:
          type: boolean
        website_id:
          type:
          - string
          - 'null'
          description: Set when the endpoint only receives one site's events.
        headers:
          type: object
          additionalProperties:
            type: string
          description: Custom header names with masked values. The clear values are never returned.
          example:
            Authorization: '****9f2c'
        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
  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)