Connect to the Server-Sent Events (SSE) Channel

Listen to platform events in real time by connecting to the Server-Sent Events (SSE) channel with an integration token.

1 min read

DataGalaxy Portfolio provides a Server-Sent Events (SSE) channel that enables external systems to listen to real-time events occurring within the platform.

This channel can be consumed using a valid integration token.

Connect to the SSE channel

  1. Replace {integrationToken} with a valid integration token.
  1. Replace {tenant} with the DataGalaxy Portfolio tenant name.
  1. Run the following command. The HTTP connection remains open and continuously streams events as they occur.

    The SSE stream can be accessed using a standard HTTP client such as curl:

    curl.exe -v -H "Authorization: Bearer {integrationToken}"
    -X GET https://{tenant}.yooi.io/api/store/events/object

Check authentication and permissions

Access to the SSE channel requires a valid integration token.

Permission Model

If the token does not have view rights on a given concept, the event will still be received, but its detailed content will not be visible.

It is therefore important to ensure that the integration token has the appropriate permissions for the concepts that need to be monitored.

Understand the event structure

Each event type has its own structure.

For specific listening requirements or clarification regarding event formats, contact DataGalaxy Portfolio Support.

Find related objects by event ID

Each SSE message includes an event ID.

This event ID can be searched in the DataGalaxy Explorer, which allows simple identification of associated object IDs.

Searching for an event ID in the Explorer.
Object IDs related to the event.

Read more

Related articles

Was this page helpful?