Click map: the email with each link marked with its real clicks
GET
/v1/campaigns/{campaign}/click-map
const url = 'https://api.replifier.com/v1/campaigns/cmp_01hx0000000000000000000000/click-map';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/click-map \ --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”Click map
Media typeapplication/json
object
campaignId
required
string
html
required
The email with each link marked (data-repf-clicks); null if the campaign has no design
string
totalClicksReal
required
number
links
required
Array<object>
object
urlId
required
string
url
required
string
clicksReal
required
number
clicksMachine
required
number
uniqueClicksReal
required
number
share
required
Share of the campaign’s real clicks (0 to 1)
number
occurrences
required
number
Example generated
{ "campaignId": "example", "html": "example", "totalClicksReal": 1, "links": [ { "urlId": "example", "url": "example", "clicksReal": 1, "clicksMachine": 1, "uniqueClicksReal": 1, "share": 1, "occurrences": 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" }}