Opens, clicks (real and automated), unsubscribes and clicks per link, from the aggregates
GET
/v1/campaigns/{campaign}/stats
const url = 'https://api.replifier.com/v1/campaigns/cmp_01hx0000000000000000000000/stats';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/campaigns/cmp_01hx0000000000000000000000/stats \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”campaign
required
string
Example
cmp_01hx0000000000000000000000Responses
Section titled “Responses”Stats
Media typeapplication/json
object
campaignId
required
string
opens
required
object
real
required
number
machine
required
number
uniqueReal
required
number
clicks
required
object
real
required
number
machine
required
number
uniqueReal
required
number
unsubscribes
required
number
links
required
Array<object>
object
urlId
required
string
url
required
string
clicksReal
required
number
clicksMachine
required
number
uniqueClicksReal
required
number
updatedAt
required
Last update of the aggregates; null if there are no events yet
string
channels
Stats per messaging channel (keys: “sms”, “whatsapp”); absent if there is no data
object
key
additional properties
object
sent
required
number
delivered
required
number
read
required
number
failed
required
number
replied
required
number
clicked
required
number
Example generated
{ "campaignId": "example", "opens": { "real": 1, "machine": 1, "uniqueReal": 1 }, "clicks": { "real": 1, "machine": 1, "uniqueReal": 1 }, "unsubscribes": 1, "links": [ { "urlId": "example", "url": "example", "clicksReal": 1, "clicksMachine": 1, "uniqueClicksReal": 1 } ], "updatedAt": "example", "channels": { "additionalProperty": { "sent": 1, "delivered": 1, "read": 1, "failed": 1, "replied": 1, "clicked": 1 } }}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" }}