Skip to content

Trigger Groups

Groups let you organize your triggers into logical categories.

  • Organization: group triggers by project, team, or environment
  • Visibility: filter the dashboard by group
  • Overview: statistics and geographic breakdown aggregated across the whole group

A group has no access of its own: sharing is done trigger by trigger (see Triggers & Events).

A group can also belong to an organization (see Organizations (Tenants)): pick the Workspace when you create it, or send "owner": "tenant:<id>" through the API. Each group has an Overview tab where you pin saved charts (see Panes).

  1. In the group selector, choose Create new group...
  2. Give it a name, a color and an icon
  3. Confirm with Create Group, then add triggers from the group settings

A group has a name, a color (hex, e.g. #3B82F6) and an icon (icon name), all three required. There is no description field.

Terminal window
curl -X POST https://ostrakon.example.com/api/v1/groups \
-H "Authorization: Bearer VOTRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Production",
"color": "#3B82F6",
"icon": "server"
}'

The response contains the group id, with trigger_count and total_events. With an API key, creating requires the group:manage scope and reading requires group:read (see API Keys).

To add a trigger to a group, edit the trigger settings and select the group from the dropdown.

Terminal window
curl -X PATCH https://ostrakon.example.com/api/v1/triggers/{triggerId} \
-H "Authorization: Bearer VOTRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"group_id": "group-uuid"
}'

GET /groups/{id}/triggers lists the group's triggers, GET /groups/{id}/stats their aggregated statistics and GET /groups/{id}/geo their geographic breakdown.

In the dashboard, use the group selector at the top left to filter the triggers shown.

  • A trigger belongs to only one group at a time
  • Create groups per environment (dev, staging, production)
  • Use short, descriptive names