Easyteam Embedded
GuidesAPIWhite-Label UIs
GuidesAPIWhite-Label UIs
  1. Development
  • Getting Started
    • Introduction
    • Why Choose Easyteam Embedded
  • Development
    • Overview
    • Authentication
    • Web Integration
    • Mobile SDK Integration
    • Passing Data
    • Using Identifiers
    • Events
    • Error Handling
  • Going Live
    • Data Security
    • Support
  • Embedded Workforce Management
    • Organizations & Locations
    • Employees
    • Permissions
    • Compliance
  • Embedded Time Tracking
    • Overview
    • Time Clock
    • Timesheets
    • Breaks
    • Geofencing
    • Timezones
  • Embedded Scheduling
    • Overview
    • Availability & Open Shifts
    • Multi-Location Scheduling
    • Publishing Schedules
    • Working with Time Off in Schedules
    • Notifications on Schedule Actions
    • Calendar Sync (Google / Apple Calendar)
  • Embedded Time Off Management
    • Overview
    • Time Off Policies
    • Requests & Approvals
    • Balance Tracking & Accruals
    • Carryover Rules
    • Time Off and Payroll Sync
  • Embedded Notifications
    • Overview
  • Payroll Integrations
    • Embedded Payroll with Salsa
      • What is Embedded Payroll?
      • Time & Attendance in Payroll
      • Money Movement and Compliance
    • External Providers
      • Embedded Payroll Integrations
  • AI-Native Integrations
    • Integrating an MCP Server with Easyteam
  1. Development

Events

Subscribe to real-time updates through both client-side events and server-side webhooks.

Events and Webhooks Guide#

This guide introduces the key concepts and common use cases for both approaches.
For technical details, refer to our Webhook Reference and UI Component Reference

Overview#

Easyteam provides two ways to receive updates:
1.
Client-Side Events: Receive real-time updates in your frontend through component callbacks.
2.
Server Webhooks: Get server-to-server notifications for critical state changes.

Client-Side Events#

Every Easyteam component accepts an onEvent callback to notify you of user actions and state changes in real-time:
Common client events include:
Clock in/out actions
Break starts and ends
Timesheet modifications

Common Client-Side Events Use Cases#

Use these events to display custom information and success messages, implement your own screen transitions and gather client-side usage metrics.
For a complete list of events and their payloads, see our UI Components Reference.

Supported Events#

Respond to component-specific events by passing a callback function to the onEvent parameter and filter the event by event.event_type.
EventComponentDescription
onClockInClockTriggered when an employee clocks in
onClockOutClockTriggered when an employee clocks out
onBreakStartedClockTriggered when an employee starts a break
onTimesheetsAddTimesheetsTriggered when a new time card is added
onTimesheetsEditTimesheetsTriggered when timesheet data is modified
onTimesheetsExportTimesheets, EmployeeListTriggered when clicking the 'Export' or 'Send to Email' button
onDateRangeChangeTimesheets, EmployeeListTriggered when using the date selector on timesheet screens
onSettingsSaveSettingsTriggered when saving on the settings screen

Example event reference#

Each event contins relevant data based on the action performed. See the example below:

Server-Side Webhooks#

Webhooks provide server-to-server notifications for critical updates. They're essential for keeping your systems synchronized with Easyteam's data.
đź”’
Webhooks are authenticated using Convoy's Webhook Delivery system to ensure security and reliability.

Common Webhook Use Cases#

Syncing timesheet data with payroll systems
Updating attendance records
Clocking employees in or out based on external logic
Processing export requests

Basic Webhook Handler Example#

Please reach out to our team to set up your sandbox webhook destination, along with the required authentication and signature info.

Best Practices#

For Client Events#

Handle events asynchronously to maintain app responsiveness.
Use debouncing for frequent events to avoid performance bottlenecks.
Log important events for debugging and analytics.

For Webhooks#

Verify webhook signatures.
Process webhooks asynchronously.
Store incoming webhook data before further processing for reliability.

Next Steps#

1.
Set up Authentication
2.
Render the components and respond to events
Modified at 2025-03-22 23:15:04
Previous
Using Identifiers
Next
Error Handling