Campaigns

List your campaigns

Changed on

Your campaigns, newest first, keyset-paginated. Pass next_cursor back as ?cursor=; a null next_cursor is the last page.

get/v1/campaigns

Request

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

Query parameters

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

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.

limitinteger
cursorstring

Opaque cursor from a previous page's next_cursor.

Response

A page of campaigns.

next_cursorstring nullable required

Example response

{
  "campaigns": [
    {
      "payment": {
        "chain": "ton"
      }
    }
  ]
}

Changes