Publish events

Event publishers can publish events to the event receiver using the Adobe I/O Events SDK.

For information on installing and using the SDK, please begin by reading the getting started guide.

data-slots=title, text
Data Residency:
Please note that all custom events are stored in the United States (US) region.

Method

publishEvent(cloudEvent) ⇒ Promise.<string>
Parameter
Type
Description
cloudEvent
object
Object to be published to event receiver in cloud event format.

CloudEvents Sample

The events should follow CloudEvents 1.0 Image result for CloudEvents specification.

As of now, only application/json is accepted as the content-type for the "data" field of the CloudEvent.

If retries are set, publish events are retried on network issues, 5xx and 429 error response codes.

The following shows a sample cloud event accepted by the event receiver:

{
    "id": "<id>",
    "eventid": "<event-id>",
    "specversion": "1.0",
    "type": "<event-code>",
    "source": "urn:uuid:<provider-id>",
    "time": "2020-03-06T05:40:34Z",
    "datacontenttype": "application/json",
    "data": { "hello": "world" } // any json payload
}

Response

The API returns: