Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
62 lines (50 loc) · 1.66 KB

File metadata and controls

62 lines (50 loc) · 1.66 KB
description
Get a Livechat Trigger by id.

Get Livechat Trigger

Get the details about a specific trigger.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/triggers/:_idyes

{% hint style="info" %} Permission required: view-livechat-manager {% endhint %}

Path Variables

KeyExample ValueDescription
_id*Lk52shJFYyb55trw8The trigger ID.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     http://localhost:3000/api/v1/livechat/triggers/Lk52shJFYyb55trw8

Example Response

{
    "trigger": {
        "_id": "Lk52shJFYyb55trw8",
        "name": "test",
        "description": "test",
        "enabled": true,
        "runOnce": true,
        "conditions": [
            {
                "name": "page-url",
                "value": ""
            }
        ],
        "actions": [
            {
                "name": "send-message",
                "params": {
                    "sender": "",
                    "msg": ""
                }
            }
        ],
        "_updatedAt": "2019-10-04T15:36:29.695Z"
    },
    "success": true
}

Change Log

Version Description
2.2.0 Added