{
"name": "propertyName",
"label": "Property Label",
"description": "Describes this property",
"objectType": "CONTACT",
"createTime": "2024-08-22T00:00:00.000Z",
"properties": [
{
"name": "propertyName",
"label": "Property Label",
"description": "Describes this property",
"createTime": "2024-08-22T00:00:00.000Z",
"type": "STRING"
}
]
}{
"error": {
"status": 404,
"code": "NOT_FOUND",
"message": "The requested resource does not exist.",
"target": "",
"docUrl": "",
"requestId": "req_1KjtKI80IKoaJNa6n6p",
"whatsappApiError": {
"message": "HSM Template creation failed",
"code": 200002,
"type": "OAuthException",
"is_transient": false,
"error_subcode": 2388109,
"error_user_msg": "This message template cannot be created.",
"error_user_title": "Message Cannot Be Submitted",
"fbtrace_id": "AVGjJ7ia2zJkrHG",
"error_data": "<string>"
},
"metaBusinessAgentApiError": {
"title": "<string>",
"detail": "<string>",
"type": "<string>",
"status": 123,
"requestId": "<string>"
}
}
}Custom Events
Retrieve an event definition
Retrieves a custom event definition you previously created.
GET
https://api.ycloud.com/v2
/
event
/
definitions
/
{name}
{
"name": "propertyName",
"label": "Property Label",
"description": "Describes this property",
"objectType": "CONTACT",
"createTime": "2024-08-22T00:00:00.000Z",
"properties": [
{
"name": "propertyName",
"label": "Property Label",
"description": "Describes this property",
"createTime": "2024-08-22T00:00:00.000Z",
"type": "STRING"
}
]
}{
"error": {
"status": 404,
"code": "NOT_FOUND",
"message": "The requested resource does not exist.",
"target": "",
"docUrl": "",
"requestId": "req_1KjtKI80IKoaJNa6n6p",
"whatsappApiError": {
"message": "HSM Template creation failed",
"code": 200002,
"type": "OAuthException",
"is_transient": false,
"error_subcode": 2388109,
"error_user_msg": "This message template cannot be created.",
"error_user_title": "Message Cannot Be Submitted",
"fbtrace_id": "AVGjJ7ia2zJkrHG",
"error_data": "<string>"
},
"metaBusinessAgentApiError": {
"title": "<string>",
"detail": "<string>",
"type": "<string>",
"status": 123,
"requestId": "<string>"
}
}
}Authorizations
Path Parameters
Name of the custom event.
Pattern:
[a-z0-9_]{1,50}Example:
"unique_event_name"
Response
Successfully retrieved the event definition.
Represents a custom event definition.
The name of the custom event definition.
Example:
"propertyName"
The label of the event definition, used for display purposes.
Maximum string length:
50Example:
"Property Label"
The description of the event definition.
Example:
"Describes this property"
Type of the object that the event will be associated with.
CONTACT: Indicates that the object is acontact.
Available options:
CONTACT Example:
"CONTACT"
The list of property definitions for the event definition.
Show child attributes
Show child attributes

