Skip to main content
POST
Create greeting
Required scopes: greetings:rw

Authorizations

Authorization
string
header
required

Use your account ID as the username and your personal access token (PAT) as the password, or pass a Base64-encoded value directly in the Authorization header. For more information, see the personal access tokens guide.

Body

application/json
type
enum<string>
default:normal
required

The greeting type.

  • normal — displayed on every visit.
  • announcement — displayed once per visitor.
Available options:
normal,
announcement
active
boolean
required

The greeting status. If set to true: the greeting is active.

name
string
required

The greeting name.

group
integer | null
required

The group ID the greeting belongs to.

rules
object[]
required

An array of action rules that define when the greeting should be triggered rules.

Maximum array length: 10
active_from
string<date-time>

The RFC 3339 date-time format indicating when the greeting becomes active.

active_until
string<date-time>

The RFC 3339 date-time format indicating when the greeting stops being active.

properties
object

The additional properties for the greeting as key-value pairs. Possible keys:

  • addon — the addon-related property.
  • is_exit_intent — the exit intent detection flag.
  • greeting-message_text — the plain text message content.
  • greeting-message_json_key — the JSON key for message content.
  • greeting-message_phrase_key — the phrase key for message content.
rich_message
object

The rich message content of the greeting.

Response

200 - application/json

Greeting created successfully.

id
integer

The ID of the newly created greeting.