curl -X POST "https://config.gms.ensync.cloud/v1/event" \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "order/created",
"payload": {
"orderId": "string",
"amount": "number",
"customerId": "string",
"items": "array"
}
}'
{
"message": "Event definition created successfully"
}
Event Definitions
Create Event Definition
Creates a new event definition
POST
/
event
curl -X POST "https://config.gms.ensync.cloud/v1/event" \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "order/created",
"payload": {
"orderId": "string",
"amount": "number",
"customerId": "string",
"items": "array"
}
}'
{
"message": "Event definition created successfully"
}
Body Parameters
string
required
Event name (e.g.,
order/created, payment/completed)object
required
Event payload schema defining expected fields and types
curl -X POST "https://config.gms.ensync.cloud/v1/event" \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "order/created",
"payload": {
"orderId": "string",
"amount": "number",
"customerId": "string",
"items": "array"
}
}'
{
"message": "Event definition created successfully"
}