Contact activity: permanent summary and event detail
GET
/v1/contacts/{contact}/activity
const url = 'https://api.replifier.com/v1/contacts/con_01hx0000000000000000000000/activity';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.replifier.com/v1/contacts/con_01hx0000000000000000000000/activity \ --header 'Authorization: Bearer <token>'Range from (inclusive) to to (exclusive), of at most 366 days; by default, the last 90. On paid plans the detail is permanent (the oldest part is read from the archive); on Free only the last 30 days are visible (detailFrom). If there are more events than limit, or if the archive read cap was reached (a page may be empty), nextAfter continues the list.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”contact
required
string
Example
con_01hx0000000000000000000000Query Parameters
Section titled “Query Parameters”from
From (inclusive), ISO 8601
string format: date-time
From (inclusive), ISO 8601
to
To (exclusive), ISO 8601
string format: date-time
To (exclusive), ISO 8601
limit
integer
after
nextAfter from the previous page
string
nextAfter from the previous page
Responses
Section titled “Responses”Activity
Media typeapplication/json
object
summary
required
object
firstOpenAt
required
string
lastOpenAt
required
string
firstClickAt
required
string
lastClickAt
required
string
countries
required
Array<string>
campaigns
required
Array<object>
object
campaignId
required
string
firstOpenAt
required
string
firstClickAt
required
string
events
required
Array<object>
object
id
required
string
type
required
string
campaignId
required
string
sendId
required
string
machine
required
boolean
machineReason
required
string
urlId
required
string
country
required
string
device
required
string
mailClient
required
string
occurredAt
required
string
nextAfter
required
string
detailFrom
required
string
Example generated
{ "summary": { "firstOpenAt": "example", "lastOpenAt": "example", "firstClickAt": "example", "lastClickAt": "example", "countries": [ "example" ], "campaigns": [ { "campaignId": "example", "firstOpenAt": "example", "firstClickAt": "example" } ] }, "events": [ { "id": "example", "type": "example", "campaignId": "example", "sendId": "example", "machine": true, "machineReason": "example", "urlId": "example", "country": "example", "device": "example", "mailClient": "example", "occurredAt": "example" } ], "nextAfter": "example", "detailFrom": "example"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}