Get a post's click map
GET
/api/v1/newsletter/posts/{id}/click-map
const url = 'https://digize.com/api/v1/newsletter/posts/example/click-map';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
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://digize.com/api/v1/newsletter/posts/example/click-map \ --header 'x-api-key: <x-api-key>'A post’s email as a paid reader got it, each tracked link outlined and marked with its clicks and share of the post’s clicks, and the links’ numbers. The HTML runs nothing; show it in a sandboxed frame. Null HTML for a plain text post.
Needs the newsletter:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
html
required
string | null
clicks
required
number
links
required
Array<object>
object
index
required
number
url
required
string
clicks
required
number
people
required
number
share
required
Its share of the post’s clicks, 0 to 1.
number
Example generated
{ "html": "example", "clicks": 1, "links": [ { "index": 1, "url": "example", "clicks": 1, "people": 1, "share": 1 } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}