Skip to the page

Retrieve event

One event by its id or its name, with the latest times it was sent and what each one set off.

GET/v1/events/{id}
Needs the scopeevents:read

Path parameters

  • idstringRequired

    The id or the name of the event. Up to 120 characters.

Returns

  • object"event"

    Always event.

  • idstring

    The id of the event.

  • namestring

    The name of the event, such as order.paid.

  • schemaRecord<string, string> | null

    The type of each value its data has to carry: string, number, boolean or date. null takes any data.

  • receivedinteger

    How many times it has been sent.

  • lastReceivedAtstring | null

    When it was last sent, or null.

  • createdAtstring

    When the event was first defined or sent.

  • recentobject[]

    The latest times it was sent, newest first, with what each one set off.

  • recent[].object"event_receipt"

    Always event_receipt.

  • recent[].idstring

    The id of this one event that was sent.

  • recent[].namestring

    The name of the event.

  • recent[].emailstring

    The address of the person it was about.

  • recent[].contactIdstring | null

    The id of their contact, or null.

  • recent[].dataRecord<string, unknown>

    The data that came with it.

  • recent[].startedinteger

    How many runs it started.

  • recent[].resumedinteger

    How many waiting runs it let go on.

  • recent[].exitedinteger

    How many runs it ended.

  • recent[].createdAtstring

    When it was received.