GET api/hooks/history/{eventName}

DEPRECATED - use GET api/v2/hooks/history/{eventName} instead. That version returns each event in the shape our webhooks actually send, and accepts a count parameter. Two differences to expect when you switch: it returns at most 25 items unless you pass a larger count, and it omits any event it cannot render in webhook shape (EmailUnsubscribed is stored as a bare email address, so v2 returns nothing for it). This version returns the raw log shape and applies no record limit, so a busy event can produce a very large response. History is kept for about seven days.

Request Information

URI Parameters

Query String:

NameDescriptionTypeAdditional information
eventName

Required

string

None.

Body Parameters

None.

Response Information

Resource Description

[HTTP Status 200 - OK] A set of history items.

Type: HookHistorySet

NameDescriptionTypeAdditional information
HistoryItems

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
{
  "HistoryItems": [
    {},
    {}
  ]
}

application/xml, text/xml

Sample:
<HookHistorySet xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <HistoryItems xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </HistoryItems>
</HookHistorySet>