Skip to main content
POST
/
create_event
Log event
curl --request POST \
  --url https://yourdomain.com/create_event \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_ip": "203.0.113.45",
  "target": "a7k2m9",
  "event_type": "CLICK",
  "event_data": "User-Agent: Mozilla/5.0..."
}
'
"Event created"

Authorizations

Admin cookie authentication (configurable in config.json)

Body

application/json
event_ip
string
required

Source IP address

Example:

"203.0.113.45"

target
string
required

Target ID

Example:

"a7k2m9"

event_type
enum<string>
required

Event type

Available options:
CLICK,
POST_DATA,
COOKIE_DATA,
EMAIL_SENT,
ERROR
Example:

"CLICK"

event_data
string
required

Event-specific data

Example:

"User-Agent: Mozilla/5.0..."

Response

Event created successfully

The response is of type string.

Example:

"Event created"