Last 10 contacts with an event in the campaign (opens, clicks, not opened, unsubscribes, bounces or complaints)
GET
/v1/campaigns/{campaign}/events/{type}
const url = 'https://api.replifier.com/v1/campaigns/cmp_01hx0000000000000000000000/events/opens';const options = {method: 'GET'};
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/campaigns/cmp_01hx0000000000000000000000/events/opensParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”campaign
required
string
Example
cmp_01hx0000000000000000000000type
required
string
Responses
Section titled “Responses”Contacts
Media typeapplication/json
Array<object>
object
contactId
required
string
email
required
string
firstName
required
string
lastName
required
string
occurredAt
required
string
country
required
string
Example generated
[ { "contactId": "example", "email": "example", "firstName": "example", "lastName": "example", "occurredAt": "example", "country": "example" }]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" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
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" }}