---
schema_version: "1"
id: 25ace66213b2bbfecd2664e06a79207770907cacf9d696fe7dbe433615d3ea63
title: Event Notification Service Activities
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-apis/ens-activities.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ens-activities.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 14bb6f5cedd8808b91a8156a15e040b1faf5604369dbf79ccb1d40926ddff6c4
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Event Notification Service Activities

For the Event Notification Service to establish an active subscription that receives and processes notification events involves a sequence of activities. You are responsible for creating a callback (setup), for providing a callback URL endpoint (callbackURL), and for processing posted notifications (customerSystem).

The diagram shows the sequence of events and the required components.

![Sequence Diagram of 4 Axes: setup, ENS, callbackURL and customerSystem, Showing Events from createCallback through Response.](https://developer.salesforce.com/docs/media/images/ens-activities.png)

1. To register your callback URL, your system calls the [Create Callback API](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/createCallback.md).
2. The ENS syntactically validates your callback URL and issues an HTTPS POST to that URL. The [response body](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/createCallback.md) contains a unique callback ID and verification key.
3. To [complete callback creation](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/verifyCallback.md), your callback captures the callback ID and verification key and returns an HTTP 200 status.
4. Your system [verifies the callback](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/verifyCallback.md). Ensure that your callback completes verification within four hours.
5. The ENS compares the verification key supplied and confirms that it is the same as the verification key provided during callback validation. Your callback prepares to receive event notification payloads for the [events you subscribe to](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ens-supported-events.md).
6. Your setup uses the [Create Subscription API](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/createSubscription.md) to register interest in event notifications and provides the callback ID returned during callback validation.
7. The ENS sends batches of event notifications to your callback via an HTTPS POST up to the maximum batch size you indicated when you created the callback.
8. Your callback receives a batch of notification events and has a maximum of three seconds to [process them and return](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ens-retries-suspensions.md) an HTTP 200, 201, 202, 203, or 204, indicating successful processing.
