GET
/
v1
/
events
/
{event_id}
curl --request GET \
  --url https://api.sequin.io/v1/events/{event_id} \
  --header 'Authorization: Bearer <token>'
  {
    "sync_id": "b11f1bf9-4a45-406e-ba77-e06d199e25db",
    "collection_id" : "stripe:subscription",
    "upstream_id": "sub_tognkns00nj",
    "upstream_updated_at": "2024-11-10T18:38:00.070453Z",
    "data": {
      "id": "sub_tognkns00nj",
      "object": "subscription",
      "billing": "charge_automatically",
      // …
    },
    "event": "created",
    "event_id": "cdbf6ba1-97dd-45ee-991d-6c79464cb8a2",
    "event_inserted_at": "2024-11-10T18:38:00.070453Z"
  }

Request parameters

event_id
string

The event_id of the event.

Response fields

The response is an event. Events have the following fields:

sync_id
string

ID of the sync this event belongs to.

collection_id
string

ID of the collection this event belongs to (e.g. Stripe’s stripe:subscription or Salesforce’s salesforce:contact).

upstream_id
string

The ID of the event in the API.

upstream_updated_at
datetime

The time the event was last updated in the API, in ISO 8601 format.

data
object

All the fields of the API object.

event
string

The type of event. Possible values are created, updated, and deleted.

event_id
string

A Sequin-generated ID for this event. This ID is universally unique.

event_inserted_at
datetime

The time the event was created (and inserted into the event stream), in ISO 8601 format.

Note that this isn’t necessarily when the event happened in the API. It’s when Sequin picked the event up.

Was this page helpful?