Skip to main content
POST
Create Event Definition

Authorizations

Authorization
string
header
default:App
required

This is the most secure authorization type and the one with the most flexibility.

API keys can be generated by calling the dedicated API method. Furthermore, API keys can have a limited scope and cover only some API methods. Lastly, they can be revoked at any time. This range of possibilities makes API keys well suited for separating the API access rights across multiple applications or use cases. Finally, the loss of an API key is easily manageable.

You can manage your API keys from GUI, or programmatically with dedicated API.

API key Authorization header example:

Body

templateId
string | null

Template identifier. Used when the client wants to create a definition from a template. Must contain only alphanumeric characters (a–z, A–Z, 0–9). Maximum length: 36 characters. Must be null if definitionId is provided.

Pattern: ^[a-zA-Z0-9]{0,36}$
definitionId
string | null

Event definition identifier. Must contain only alphanumeric characters (a–z, A–Z, 0–9). Maximum length: 36 characters. Must be null if templateId is provided. Cannot have a value from the list of predefined (standard) definitions.

Pattern: ^[a-zA-Z0-9]{0,36}$
title
string | null

Event definition title. Required if templateId is null. Maximum length: 100 characters. Must be null if templateId is provided.

description
string | null

Event definition description. Maximum length: 2000 characters if templateId is null. Must be null if templateId is provided.

fields
EventFieldResource · object[] | null

Event definition fields. The total number of fields cannot exceed 120. Field names must be unique (case-insensitive). The number of fields of type List cannot exceed 1.

Maximum array length: 120

Response

Successfully created

isInternalDefinition
boolean

Indicates whether this is a standard (internal) event definition provided by the system, or a custom (external) definition created by the user.

category
enum<string> | null

Event definition category.

Available options:
external,
person,
channel,
product,
template
subcategory
enum<string> | null

Event definition subcategory.

Available options:
sms,
email,
push,
whatsapp,
viber,
facebook,
moments,
forms,
conversations,
mobileapp,
voice,
line,
appleBC,
rcs,
mms,
viberBot,
inapp,
answers,
blocklist
definitionId
string | null

Event definition identifier.

title
string | null

Event definition title.

description
string | null

Event definition description.

fields
EventFieldResource · object[] | null

Event definition fields describing the structure and data types of the event properties.