Browse Docs

Submit Event

POST /event

Submit an event notification to your workspace.

Request

curl -X POST https://api.apialerts.com/event \
  -H "Authorization: Bearer YOUR-API-KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "New user signed up",
    "channel": "signups",
    "link": "https://dashboard.example.com/users/123",
    "tags": ["signup", "organic"]
  }'

Request Body

FieldTypeRequiredDescription
messagestringYesThe notification message
channelstringNoTarget channel slug. Defaults to the workspace’s default channel.
linkstringNoURL to attach to the notification. Opens when tapping the push notification.
tagsstring[]NoArray of tags for categorization and filtering

Response

200 OK

{
  "workspace": "My Workspace",
  "channel": "signups",
  "uuid": "550e8400-e29b-41d4-a716-446655440000",
  "remainingQuota": 4832
}
FieldTypeDescription
workspacestringName of the workspace the event was sent to
channelstringChannel the event was routed to
uuidstringUnique identifier for the event
remainingQuotanumberRemaining monthly event quota

Errors

StatusDescription
400Invalid request body — missing message or validation error
401Invalid or missing API key
429Monthly event quota exceeded