Overview
Category endpoints allow you to manage event categories programmatically. Categories organize your events and define their visual appearance (color, emoji) in notifications.These endpoints use Hono.js server procedures and require authentication via session cookies (not Bearer tokens). They are primarily used by the PingPilot web dashboard.
Get Event Categories
Retrieve all event categories for the authenticated user.Response
Array of category objects with event statistics.
Unique category identifier.
Category name (lowercase, alphanumeric with hyphens).
Emoji icon for the category.
Integer color code (e.g.,
16711680 for red).Number of unique field keys used in events this month.
Total events in this category for current month.
ISO timestamp of most recent event, or
null if no events.ISO timestamp when category was created.
ISO timestamp when category was last updated.
Example Response
Create Event Category
Create a new event category.Request Body
Category name. Must be unique for your account.Validation:
- Required field
- Must contain only letters, numbers, or hyphens
- Automatically converted to lowercase
/^[a-zA-Z0-9-]+$/Hex color code for the category.Validation:
- Required field
- Must be valid hex format:
#RRGGBB - Case insensitive
/^#[0-9A-F]{6}$/iExample: "#FF0000", "#00ff00"Emoji icon for the category.Validation:
- Must be a valid emoji character
- Single emoji only
"🐛", "💰", "🤔"Request Example
Response
Success or error message.
Whether the operation succeeded.
Created category object (on success).
Success Response
Error Response
Delete Category
Delete an event category and all its events.Request Body
Name of the category to delete.
Request Example
Response
Success or error message.
Whether the operation succeeded.
Success Response
Error Response
Poll Category
Check if a category has received any events.Query Parameters
Category name to check.
Response
Whether the category has received any events.
Success Response
Error Response
Status Code:404 Not Found
Insert Quickstart Categories
Create default starter categories for new users.Response
Whether the operation succeeded.
Number of categories created.
Success Response
Creates three default categories:bug(🐛, red:#ff6b6b)sale(💰, yellow:#ffeb3b)question(🤔, purple:#6c5ce7)
Category Name Validation
Category names must follow these rules:Valid characters: Letters (a-z, A-Z), numbers (0-9), hyphens (-)
Case: Automatically converted to lowercase
Length: At least 1 character
Uniqueness: Must be unique per user account
Valid Examples
bugsaleuser-signuppayment-failedapi-error-500
Invalid Examples
user signup(contains space)payment_failed(contains underscore)critical!(contains special character)- “ (empty string)
Plan Limits
The number of categories you can create is limited by your plan:- Free: 3 categories
- Pro: 10 categories
- Enterprise: 100 categories