Webhooks Overview

Create, manage, and monitor webhook subscriptions

🚧

Early Access (EA)

This API is currently in Early Access and available only to approved EA participants. Do not rely on this version for production workloads unless explicitly authorized. If you have any feedback, please share with your designated Early Adoption program representative.

Introduction

Webhooks notify your application when supported employee and time data changes in Paylocity. Instead of polling Paylocity APIs for changes, you subscribe to the event types you care about, and Paylocity sends an HTTPS POST to your endpoint when one of those events occurs.

Using the Webhooks API, you can:

  • Subscribe to specific event types, such as employee personal information, assignment, status, pay rate, position, worked shift, and pay type transaction changes
  • Secure deliveries to your endpoint with HMAC-SHA256 request signing
  • Manage the full lifecycle of a subscription (create, read, update, delete)
  • Pause and resume event delivery for a subscription
  • Review the history of events sent to your subscriptions, including delivery status and individual delivery attempts

Key concept: a webhook is a signal, not a record

A webhook tells you that something changed and where to look. It is not a complete copy of the employee or time record.

Event payloads contain the identifiers you need to retrieve the current data, such as companyId and assignmentId. The assignmentId is the same value as the Paylocity Employee ID (employeeId). After you receive an event, call the related Paylocity API to retrieve the current state of the record.

ComponentRole
Webhook eventNotifies you that a supported change occurred and identifies the affected record
Related API (for example, Employee Demographics v2 or Punch Detail)The source of truth for the current data
📘

Additional Information

Do not use webhook payloads as your system of record. Always retrieve current data from the related API before updating downstream systems when accuracy matters.

How it works

  1. Get access. Create an application in the Paylocity External Developer Portal with access to the Webhooks API and to each event type you want to receive.
  2. Create a subscription. Send a POST request to /apiHub/webhooks/v1/subscriptions with a name, the eventTypes you want, the HTTPS url where Paylocity should deliver events, and an auth configuration that secures deliveries with HMAC.
  3. Store your HMAC secret. The secret is returned only once, in the response that creates the key.
  4. Receive events. When a subscribed event occurs, Paylocity sends an HTTP POST with a JSON payload to your url.
  5. Verify and acknowledge. Verify the HMAC signature and respond quickly with a 2xx status code.
  6. Retrieve current data. Use the identifiers in the payload to call the related API. For Employee Demographics events, use the assignmentId as the employeeId.
  7. Process the change. Update your system. Design processing so that receiving the same event more than once does not cause errors.

Endpoints at a glance

MethodPathDescription
POST/apiHub/webhooks/v1/subscriptionsCreate Subscription
GET/apiHub/webhooks/v1/subscriptionsGet Subscriptions [Batch]
GET/apiHub/webhooks/v1/subscriptions/{id}Get Subscription [Single]
PATCH/apiHub/webhooks/v1/subscriptions/{id}Update Subscription (JSON Patch)
DELETE/apiHub/webhooks/v1/subscriptions/{id}Delete Subscription
GET/apiHub/webhooks/v1/eventsGet Events [Batch]: webhook events that were sent, including delivery status
GET/apiHub/webhooks/v1/events/{id}Get Event [Single]: one event, optionally with delivery logs and subscription details

See Subscriptions for the subscription walkthrough and Events for delivery history.

Subscriptions vs. events

These are often confused, so keep the following distinction in mind:

You want to…Use
Choose which events you receive and where they are deliveredSubscriptions endpoints
Review the configuration of your subscriptionsGET /subscriptions or GET /subscriptions/{id}
Pause or resume deliveryPATCH /subscriptions/{id} with /status
Receive webhook payloadsYour callback url. Paylocity pushes events to you.
Audit what was delivered, what failed, and whyGET /events or GET /events/{id}
❗️

Important

The subscription GET endpoints return subscription configuration, not webhook payloads.

To review delivered events, use the Events endpoints.

Webhooks access

Access to webhooks is controlled in two ways:

  1. Webhooks API access allows your application to create subscriptions and see events.
  2. Event type access determines which event types your application can subscribe to. Access to one event type does not grant access to another.

Selecting event types in the External Developer Portal grants your application access to those events. It does not create a subscription. You must still call POST /apiHub/webhooks/v1/subscriptions to provide your callback URL and start receiving events.

Subscriptions are owned by the API credentials that create them. Each subscription record includes the clientId (the API credentials that own the subscription) and the applicationId (the application associated with those credentials).

Delivery behavior

  • Paylocity delivers events with a POST to your callback URL. The URL must be publicly reachable and use HTTPS.
  • Payloads follow a CloudEvents-style structure (id, type, time, data, and related fields). See Webhook Event Types.
  • A single business action can produce more than one event. For example, a rehire may produce both employee.assignment.v1 and employee.assignment.status.v1.
  • If a change affects a person with assignments in multiple companies, a separate event is delivered for each company that you application has access to.
  • Events are queued first in, first out. Failed deliveries are retried automatically. See Events for the retry policy.
  • Design your endpoint to handle duplicate deliveries safely, for example by tracking the event id.

Delivery statuses

StatusMeaning
PendingQueued or waiting for a retry
DeliveredYour endpoint returned a 2xx response
FailedDelivery stopped without success

Retry policy

When a delivery fails, Paylocity retries automatically for about 24 hours and then we stop retrying. If the retry is unsuccessful, we mark the subscription Unreachable, so the subscriber must update their subscriptions endpoint and re-verify before it receives events again.

Not retried

Paylocity does not retry when your endpoint rejects the request itself: HTTP 400, 404, 409, 422, or 500. Retrying the same request would get the same answer.

❗️

Important

Because 500 is not retried, return 503 (or another retryable code) if your endpoint has a temporary problem and you want Paylocity to retry.

Retried

  • Your endpoint looks unreachable or unavailable: timeouts, connection errors, redirects, and most other 4xx and 5xx codes
  • Paylocity's own service has an unexpected error

When retries stop (production)

SituationWhat happens
Your endpoint is unreachableAfter about 24 hours of failures, Paylocity stops retrying. Each wait before an attempted retry is about twice as long as the last, starting at 1 minute (1m, 2m, 4m, 8m and so on). The subscription is then marked UNREACHABLE.
Other failures (Paylocity errors)Paylocity retries for up to 72 hours, then stops retrying that delivery.

When a subscription is marked UNREACHABLE, it does not receive events again until you fix your endpoint and re-verify the subscription.

Ordering and duplicates

  • Events use best-effort ordering, which means that queues attempt to deliver and make available messages in the same general sequence they were sent, but strict order is not guaranteed. Retries are handled per event, so a retried event can arrive after later events.
  • At-Least-Once Delivery: Standard queues also deliver messages at least once, meaning duplicate messages can occasionally appear, Use the event id to identify duplicates.
  • When order matters, compare the event time or retrieve current data from the related API rather than relying on arrival order.

Recovering from missed deliveries

  1. Identify the issue on you end for why the events aren't reaching your subscription callback URLs.
  2. If the subscription is UNREACHABLE, use the Subscriptions endpoint to update your subscription(s) and set the correct status.
  3. Call GET /events filtered by subscriptionId, status in ('Failed'), and the outage time range (time ge ... and time le ...).
  4. For each event, retrieve current data from the related API and update your system.

Please note: Event log is kept for about 30 days. There’s no replay. Events do not get held for later delivery when a subscription isn’t active.

Best practices

  • Subscribe only to the event types your integration needs.
  • Respond with 2xx quickly, then process the event asynchronously.
  • Verify the HMAC signature on every delivery.
  • Treat the payload as a trigger and retrieve current data from the related API.
  • Make processing idempotent so duplicate deliveries do not cause errors.
  • Use the Events endpoints to find and reconcile missed deliveries after an outage.
  • Consider a periodic reconciliation job (for example, daily) using the related read APIs as a safety net.

Getting support

When contacting support about a webhook issue, include:

  • Environment (sandbox or production)
  • Application ID or client ID
  • Subscription ID
  • Event ID and correlationId, if available
  • Event type
  • Company ID
  • Approximate time of the change, with time zone
  • The change made in Paylocity
  • The HTTP status code your endpoint returned (lastStatusCode)
  • The errorId from any 500 response returned by the Webhooks API