campaignId you put on your links when you create or update them.Authorization: Bearer <token>. Get it with the sign-in call (POST /api/customer-users/partner-login).campaignIds. The answer is a list with one entry for each campaign that has data, in the order you asked for them. A campaign without data is left out and is not an error, and an id you send twice comes back once. An empty campaignIds list gives an empty list.campaignImpressions, or once one of its links was clicked.ctr is uniqueClicks divided by impressions, as a number from 0 to 1.Authorization: Bearer ********************curl --location 'https://link-shortener-api.veloconnect.me/api/analytics/campaigns/query' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"campaignIds": [
"b7d4e2a1-93c6-4f08-8a5e-1d2c3b4a5f60",
"0c6f3d9b-2e81-4a57-b3c4-6d7e8f9a0b1c"
]
}'[
{
"campaignId": "b7d4e2a1-93c6-4f08-8a5e-1d2c3b4a5f60",
"impressions": 12000,
"clicks": 1284,
"uniqueClicks": 1017,
"ctr": 0.08475
},
{
"campaignId": "0c6f3d9b-2e81-4a57-b3c4-6d7e8f9a0b1c",
"impressions": 8000,
"clicks": 402,
"uniqueClicks": 355,
"ctr": 0.044375
}
]