To use EventLogCentral's API, you'll need an access_token. Generate this from your dashboard under the 'API Keys' section. Ensure the token is active and associated with the correct project environment.
Use the following endpoint to log events:
POST https://api.eventlogcentral.com/api/logEvent
The request body should include the following fields:
EventLogCentral supports the following event types:
curl -X POST https://api.eventlogcentral.com/api/logEvent -H "Content-Type: application/json" -d '{
"access_token": "your_access_token",
"type": "INFO",
"title": "User Login",
"description": "User logged in successfully.",
"author": "john_doe",
"category": "Authentication"
}'