Adobe I/O Events Provider API

Our Adobe I/O Events Management API contains endpoints allowing you to manage your Events Providers and their associated Event Metadata:

Prerequisites

Test Drive

Once the above are defined (and stuffed as environment variables), you are ready to use the API, refer to its swagger/OpenApi documentation.

To help you further, here are a few sample curl commands.

The one below will GET the list of all the Events Providers you are entitled to use.

curl -i -v --request GET \
--url https://api.adobe.io/events/${consumerId}/providers \
--header "x-api-key: $api_key" \
--header "Authorization: Bearer $oauth_s2s_token" \
--header "Accept: application/hal+json"

Now you have the Events Providers IDs, you can list their Event Metadata:

curl -i -v --request GET \
  --url https://api.adobe.io/events/providers/${providerId}?eventmetadata=true \
  --header "x-api-key: $api_key" \
  --header "Authorization: Bearer $oauth_s2s_token" \
  --header "Accept: application/hal+json"

To create your own Custom Events Provider :

curl -i -v --request POST \
  --url https://api.adobe.io/events/${consumerId}/${projectId}/${workspaceId}/providers \
  --header "x-api-key: $api_key" \
  --header "Authorization: Bearer $oauth_s2s_token" \
  --header 'content-type: application/json' \
  --header 'Accept: application/hal+json' \
  --data '{
      "label": "a label of your choice for you Custom Events Provider",
      "description": "a description of your Custom Events Provider",
      "docs_url": "https://yourdocumentation.url.if.any"
    }'

To associate Event Metadata with the above:

curl -i -v --request POST \
  --url  https://api.adobe.io/events/${consumerId}/${projectId}/${workspaceId}/providers/${providerId}/eventmetadata \
  --header "x-api-key: $api_key" \
  --header "Authorization: Bearer $oauth_s2s_token" \
  --header 'content-type: application/json' \
  --header 'Accept: application/hal+json' \
    --data '{
      "event_code": "your.reverse.dns.event_code",
      "label": "a label for your event type",
      "description": "a description for your event type"
    }'

With the 2 commands above, your Custom Events Provider is ready to be used, you can register webhooks against it; to start emitting events on its behalf use our Events Publishing API.

To delete your Custom Events Provider:

curl -i -v --request DELETE \
  --url https://api.adobe.io/events/${consumerId}/${projectId}/${workspaceId}/providers/${providerId} \
  --header "x-api-key: $api_key" \
  --header "Authorization: Bearer $oauth_s2s_token" \
  --header "Accept: application/hal+json"

The environment variables used in this curl commands are computed from the prerequisites documented above: