Giveaway series

One series. Another tenant's id (or an unknown id) is 404.

get/v1/giveaways/series/{seriesId}

Request

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

Path parameters

seriesIdstring uuid required

The series id (UUID).

Response

The series.

idstring uuid required
status'active' | 'paused' | 'cancelled' | 'completed' required

active ⇄ paused — paused by you (paused_reason: requested) or automatically (spawn_failures, lost_admin, unfunded), active again only by a resume. From either: cancelled (by you) or completed (the last slot passed, also when a resume finds no slot left). Pause applies to active, resume to paused, cancel to both; asking for the status a series already has returns it unchanged, anything else is 409 invalid_state with status. Terminal: cancelled, completed.

paused_reason'requested' | 'spawn_failures' | 'lost_admin' | 'unfunded' | 'null' nullable
interval'day' | 'week' | 'month' required
everyinteger required
starts_atstring date-time required
countinteger nullable
untilstring date-time nullable
last_indexinteger

The slot the series ends with.

on_unfunded'skip' | 'pause'
currency'ton' | 'usdt_ton'

The asset the order is paid in. ton = the native coin GRAM (ex TON), sent as a plain transfer — it is not USDT on TON. usdt_ton = USDT (TON), sent as a jetton transfer. Required on every create and pricing request: a request without it is rejected with 400 bad_request.

next_indexinteger nullable
next_occurrence_atstring date-time nullable
occurrences_createdinteger
consecutive_failuresinteger
consecutive_missesinteger
created_atstring date-time required
updated_atstring date-time nullable
paused_atstring date-time nullable
ended_atstring date-time nullable

Changes