Overview
Sending events to PingPilot is simple: make a POST request to the events endpoint with your API key and event data. PingPilot will process the event and send notifications to all your configured channels (Discord, Telegram, Email).API Endpoint
Authentication
All requests must include your API key in theAuthorization header as a Bearer token:
Don’t have an API key yet? Find it in your dashboard settings.
Request Format
Headers
Body Parameters
The name of the event category. Must match an existing category in your account.Validation: Must be lowercase and contain only letters, numbers, or hyphens.
A description of the event. If not provided, a default description will be generated.Default:
"A new {category} event has occurred!"Additional data to include with the event. Keys must be strings, values can be strings, numbers, or booleans.Example:
{ "user_id": "12345", "amount": 99.99, "verified": true }Basic Example
Advanced Example with Fields
Response Format
Success Response
200 OK
The eventId can be used to track the event in your dashboard.
Error Responses
401 Unauthorized - Missing Authorization
401 Unauthorized - Missing Authorization
401 Unauthorized - Invalid Format
401 Unauthorized - Invalid Format
401 Unauthorized - Invalid API Key
401 Unauthorized - Invalid API Key
400 Bad Request - Invalid JSON
400 Bad Request - Invalid JSON
403 Forbidden - Discord ID Not Set
403 Forbidden - Discord ID Not Set
403 Forbidden - Telegram Username Not Set
403 Forbidden - Telegram Username Not Set
404 Not Found - Category Doesn't Exist
404 Not Found - Category Doesn't Exist
422 Unprocessable Entity - Validation Error
422 Unprocessable Entity - Validation Error
categorycontains only letters, numbers, or hyphensfieldsvalues are strings, numbers, or booleans- All required fields are present
429 Too Many Requests - Quota Exceeded
429 Too Many Requests - Quota Exceeded
500 Internal Server Error - Processing Failed
500 Internal Server Error - Processing Failed
What Happens When You Send an Event?
When PingPilot receives an event:Notification Delivery
Notifications are sent to:
- Discord: As an embedded message
- Telegram: As a formatted text message
- Email: As an HTML email
Event Formatting
PingPilot formats your event data for each notification channel:Discord Embed
Telegram Message
- Category title with emoji
- Description
- Color-coded visual elements
- Timestamp
- All custom fields in a table
Best Practices
Use Environment Variables
Use Environment Variables
Never hardcode your API key. Use environment variables:
Handle Errors Gracefully
Handle Errors Gracefully
Always handle API errors to prevent your application from crashing:
Use Descriptive Event Data
Use Descriptive Event Data
Provide meaningful descriptions and fields:✅ Good:❌ Bad:
Don't Send Sensitive Data
Don't Send Sensitive Data
Avoid sending passwords, credit card numbers, or other sensitive information in event data.
Implement Retry Logic
Implement Retry Logic
For critical events, implement retry logic with exponential backoff:
Rate Limits & Quotas
PingPilot enforces monthly quotas based on your plan:- Free: 100 events/month
- Pro: 1,000 events/month
- Enterprise: Custom limits
Testing Your Integration
Create a test category and send a test event:Next Steps
Managing Notifications
Configure your notification preferences
API Reference
View the complete API reference