Campaigns

Get campaign statistics

Changed on

Counts by verdict and by delivery status, each split by reason (skipped rows included), the amounts (expected, received, delivered value, the reversal owed and what was sent), and an ETA in seconds while the campaign is paid, running or paused (null otherwise). A star_gift campaign adds the gift block.

get/v1/campaigns/{id}/stats

Request

  • Base URL
    https://api.mystars.tg
  • Auth
    API key in header X-Api-Key

Path parameters

idstring uuid required

The campaign id (UUID, also the on-chain payment memo).

Response

The campaign statistics.

campaign_idstring uuid required
status'draft' | 'awaiting_payment' | 'paid' | 'running' | 'paused' | 'cancelling' | 'settling' | 'awaiting_approval' | 'completed' | 'cancelled' | 'expired' | 'failed' required

draft (recipients can be added and are validated) → awaiting_payment (list and price locked by confirm) → paid → running ⇄ paused → settling → completed. Cancelling after payment goes through cancelling → settling → cancelled. awaiting_approval means the settlement owes a reversal that is waiting for review. expired: an unpaid campaign whose payment window ended, or a draft not confirmed within 7 days of its creation (reason: draft_expired). failed: the payment funded no recipient (fully reversed). Terminal: completed, cancelled, expired, failed.

eta_secondsinteger nullable required

Estimated seconds to finish, while paid, running or paused.

Changes