Get top clicked links
GET
/campaigns/{campaignId}/links
Code sample: Shell / cURL
curl --request GET \ --url 'https://rocketem.fotone.io/api/v2/campaigns/example/links?limit=20' \ --header 'Authorization: Bearer <token>'Required scope: recipients:read
Returns the campaign’s most-clicked links (aggregated, no PII),
ordered by total clicks. The same URL at two spots in the newsletter
aggregates separately per link_index; legacy click rows without a
link index collapse into one bucket per URL (link_index: null).
Test sends are excluded.
Requires recipients:read scope.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Path Parameters
Abschnitt betitelt „Path Parameters“campaignId
required
string
Campaign public_id
Query Parameters
Abschnitt betitelt „Query Parameters“limit
integer
Maximum number of links (1-100, default 20)
language
string
Only clicks from sends in this language
Responses
Abschnitt betitelt „Responses“Top links by click count
Media typeapplication/json
object
data
Array<object>
object
url
string
link_index
Position of the link in the newsletter (null for legacy clicks)
integer
total_clicks
integer
unique_clicks
Distinct recipients who clicked
integer
Example generated
{ "data": [ { "url": "example", "link_index": 1, "total_clicks": 1, "unique_clicks": 1 } ]}Resource not found
Media typeapplication/json
object
error
object
code
string
message
string
status
integer
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}