Documentation

Mistake on this page? Email us

Campaign metrics with the APIs

When a campaign is in the active, stopped, or archived phase, you can do the following to view campaign metrics:

curl -H "Authorization: Bearer <API-KEY>" \
<host>/v3/update-campaigns/<campaign-ID>/metrics

You get the following information:

{
     "created_at":"<timestamp>",
     "success_count":0,
     "failed_count":0,
     "pending_count":1,
     "total_count":1
}

This tells you how many devices updated successfully, how many failed to update, how many are still pending, and how many total devices are or were in your campaign.