Send a Livechat custom field
URL
Requires Auth
HTTP Method
/api/v1/livechat/custom.field
no
POST
{
"token" : "iNKE8a6k6cjbqWhWd" ,
"key" : "address" ,
"value" : "Rocket.Chat Avenue" ,
"overwrite" : true
}
curl -X POST \
-H " Content-type:application/json" \
http://localhost:3000/api/v1/livechat/custom.field \
-d ' {"token": "iNKE8a6k6cjbqWhWd", "key": "address", "value": "Rocket.Chat Avenue", "overwrite": true}'
{
"field" : {
"key" : "address" ,
"value" : "Rocket.Chat Avenue" ,
"overwrite" : true
} ,
"success" : true
}
Version
Description
0.70.0
Added
Send an array of Livechat custom fields
URL
Requires Auth
HTTP Method
/api/v1/livechat/custom.fields
no
POST
{
"token" : "iNKE8a6k6cjbqWhWd" ,
"customFields" : [ {
"key" : "address" ,
"value" : "Rocket.Chat Avenue" ,
"overwrite" : true
} ]
}
curl -X POST \
-H " Content-type:application/json" \
http://localhost:3000/api/v1/livechat/custom.fields \
-d ' {"token": "iNKE8a6k6cjbqWhWd", "customFields": [{"key": "address", "value": "Rocket.Chat Avenue", "overwrite": true}]}'
{
"fields" : [
{
"Key" : "address" ,
"value" : "Rocket.Chat Avenue" ,
"overwrite" : true
}
] ,
"success" : true
}
Version
Description
0.70.0
Added
List livechat custom fields
Get a list of Livechat custom fields. It supports the Offset, Count, and Sort Query Parameters .
URL
Requires Auth
HTTP Method
/api/v1/livechat/custom-fields
yes
GET
curl -H " X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H " X-User-Id: aobEdbYhXfu5hkeqG" \
http://localhost:3000/api/v1/livechat/custom-fields
{
"customFields" : [
{
"_id" : "address" ,
"label" : "address" ,
"scope" : "visitor" ,
"visibility" : "visible" ,
"_updatedAt" : "2019-10-03T14:12:47.595Z"
}
] ,
"count" : 1 ,
"offset" : 0 ,
"total" : 1 ,
"success" : true
}
Version
Description
2.2.0
Added
Get info about a custom field
Get info about a custom field.
URL
Requires Auth
HTTP Method
/api/v1/livechat/custom-fields/:_id
yes
GET
curl -H " X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H " X-User-Id: aobEdbYhXfu5hkeqG" \
http://localhost:3000/api/v1/livechat/custom-fields/address
{
"customField" : {
"_id" : "address" ,
"label" : "address" ,
"scope" : "visitor" ,
"visibility" : "visible" ,
"_updatedAt" : "2019-10-03T14:12:47.595Z"
} ,
"success" : true
}
Version
Description
2.4.0
Added