Create Omnichannel Custom Field

Prev Next
Post
/api/v1/livechat/custom-fields.save

Create a new Omnichannel custom field or update an existing on. You can refer to the Omnichannel Custom Fields user guide for details.

Permission required: view-livechat-manager

Changelog

Version Description
7.11.0 Added
Header parameters
X-Auth-Token
stringRequired

The authToken of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The userId of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ
Body parameters
Example 1
{
  "customFieldData": {
    "field": "new1",
    "label": "new11",
    "visibility": true,
    "scope": "visitor",
    "type": "select",
    "searchable": true,
    "regexp": "",
    "required": false,
    "defaultValue": "",
    "options": "optionA, optionB",
    "public": true
  }
}
Expand All
object
customFieldId
string

If you want to update an existing custom field, enter the field value.

Exampleaddress
customFieldData
object Required

In this object, provide the custom field data.

field
string

Enter a value for the field.

Exampleaddress
label
string

Enter a label for the field.

Exampleaddress-line
visibility
boolean

Enter whether the custom field is displayed in a contact’s details.

scope
string

Set the scope of the custom field. The options are: visitor and room. Refer to the user guide for details.

Examplevisitor
type
string

Set the input type of this field. The options are: input and select.

Exampleinput
searchable
boolean

Set whether or not searching in the Omnichannel Contact Center can be done with the custom field.

regexp
string

Validate the values entered for the custom field using regular expressions. For example, [a-z]. This means that the custom field only accepts lowercase letters. Any other characters will display an error message.

Example[a-z]
required
boolean

Set whether or not this field should be mandatory.

defaultValue
string

Enter a default value for the field.

Exampledefault
options
string

If the field type is select, enter the options that users can select. The values must be comma-separated.

ExampleoptionA, optionB
public
boolean

If enabled, the custom field will be displayed in external applications, such as Livechat.

Responses
200

OK

Example 1
{
  "customField": {
    "label": "address11",
    "scope": "visitor",
    "visibility": true,
    "type": "input",
    "searchable": true,
    "regexp": "",
    "required": false,
    "defaultValue": "",
    "options": "",
    "public": true,
    "_updatedAt": "2025-10-06T06:52:40.102Z"
  },
  "success": true
}
Expand All
object
customField
object
label
string
scope
string
visibility
boolean
type
string
searchable
boolean
regexp
string
required
boolean
defaultValue
string
options
string
public
boolean
_updatedAt
string
success
boolean
401

Unauthorized

Authorization Error
{
  "status": "error",
  "message": "You must be logged in to do this."
}
object
status
string
message
string
403

Forbidden

Example 1
{
  "success": false,
  "error": "User does not have the permissions required for this action [error-unauthorized]"
}
object
success
boolean
error
string