---
title: "List your giveaways"
method: GET
path: "/v1/giveaways"
tags: ["Giveaways"]
---

# List your giveaways

`GET /v1/giveaways`

## Request

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

Your giveaways, newest first. `series_id` lists the occurrences of one
recurring series. Pass `next_cursor` back as `?cursor=`.

## Query parameters

- `status` 'draft' | 'awaiting_funding' | 'open' | 'closed' | 'drawn' | 'settling' | 'settled' | 'cancelled': `draft` → `awaiting_funding` (the first fund opened its funding order) → `open` (paid and public) → `closed` (entrant list frozen) → `drawn` (winners picked from a TON block beacon) → `settling` (prizes being delivered) → `settled`. `cancelled` only from `draft` or `awaiting_funding`: by you, an expired draft (a draft never funded is cancelled 72 hours after its creation), or a funding order that expired unpaid after its 2-hour window or was reversed (`giveaway.cancelled` reason `cancelled`, `draft_expired` or `funding_expired`). An `open` giveaway always runs on to `settled`; it ends with close, never cancel. Fund and cancel apply in `draft` and `awaiting_funding`, close in `open`, attestations in `draft`, `awaiting_funding` and `open`. Terminal: `settled`, `cancelled`.
- `series_id` string, uuid
- `limit` integer
- `cursor` string

## Response `200`

A page of giveaways.

- GiveawaysPage
  - `giveaways` Giveaway[], required
    - `id` string, uuid, required
    - `public_id` string, required
    - `status` 'draft' | 'awaiting_funding' | 'open' | 'closed' | 'drawn' | 'settling' | 'settled' | 'cancelled', required: `draft` → `awaiting_funding` (the first fund opened its funding order) → `open` (paid and public) → `closed` (entrant list frozen) → `drawn` (winners picked from a TON block beacon) → `settling` (prizes being delivered) → `settled`. `cancelled` only from `draft` or `awaiting_funding`: by you, an expired draft (a draft never funded is cancelled 72 hours after its creation), or a funding order that expired unpaid after its 2-hour window or was reversed (`giveaway.cancelled` reason `cancelled`, `draft_expired` or `funding_expired`). An `open` giveaway always runs on to `settled`; it ends with close, never cancel. Fund and cancel apply in `draft` and `awaiting_funding`, close in `open`, attestations in `draft`, `awaiting_funding` and `open`. Terminal: `settled`, `cancelled`.
    - `external_ref` string, nullable, required
    - `listed` boolean
    - `entries_events` boolean
    - `title` string, nullable
    - `prize_type` 'stars' | 'premium' | 'gift', required: `stars` (Stars per winner), `premium` (Premium months per winner) or `gift` (one star gift per winner).
    - `prize_quantity_per_winner` integer, required
    - `winner_count` integer, required
    - `channel_id` string, uuid, nullable
    - `series_id` string, uuid, nullable
    - `series_index` integer, nullable
    - `duration_sec` integer, nullable
    - `created_at` string, date-time, nullable
    - `opens_at` string, date-time, nullable
    - `closes_at` string, date-time, nullable
    - `closed_at` string, date-time, nullable
    - `commit_hash` string, nullable: The provably-fair commitment, set when the giveaway opens.
    - `entry_url` string, nullable, required: The link entrants open.
    - `proof_url` string, required: The public verification page.
    - `conditions_format` 'v1' | 'v2', required: `v2` when an attestation condition is part of the commitment.
    - `antibot` GiveawayAntibot, required
      - `mode` 'shadow' | 'enforce', required
      - `threshold` string, required: Decimal string, for example `"0.70"`.
      - `require_premium` boolean, required
      - `audience_language` string, nullable, required
    - `gift` object, nullable: The gift prize, `null` unless `prize_type` is `gift`.
      - `gift_id` string
      - `stars` integer: The gift's price in Stars when the giveaway was created — the price `409 gift_price_changed` compares the live one against.
      - `comment` string, nullable
  - `next_cursor` string, nullable, required

## Other responses

- `400`: Malformed request (`bad_request`): a missing or invalid field, header or query parameter (the `message` names it), a malformed `cursor`, a body that is not valid JSON, or a body nested deeper than 64 levels. Send integer query parameters as plain decimal digits: the pricing, order, giveaway and series routes refuse any other spelling (a sign, decimal point, exponent, hex prefix or surrounding spaces) with a `400` naming the parameter. Fix the request; retrying it unchanged gets the same answer.
- `401`: Missing or invalid `X-Api-Key`.
- `403`: The API key is valid, but the tenant is suspended (for example after `/api_revoke` — run `/api_rotate` in the bot to restore access) or banned, or the product (campaigns, giveaways) is not enabled for it. Products are enabled per tenant on request. A source address blocked at our edge gets `403 forbidden` with the message `source blocked`, whatever the key.
- `429`: A rate limit was reached (`rate_limited`). See **Rate limits** in the overview. Which `429`s carry headers: - **Per-minute buckets** — the general request budget, the order-lifecycle bucket, the pricing/recipient-check probe cap (60 req/min), the campaign bucket, and your giveaway read, write, quote and attestation buckets. Every answer metered by one carries `RateLimit-Policy`, `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds); a `429` adds `Retry-After` (seconds). - **Caps, no `Retry-After`** — the daily intake cap and the daily order cap on `POST /v1/orders` (UTC day), the per-recipient guard on unfinished orders to one `@username`, and the cap on live campaigns. These `429`s carry no `Retry-After`, but they do carry the `RateLimit-*` headers of the per-minute bucket the request passed (often with `RateLimit-Remaining` above zero): branch on `Retry-After`, never on `RateLimit-Remaining`. Back off; the daily intake and order caps clear at the next UTC midnight. - **The daily budget of ineligible-recipient refusals** on `POST /v1/orders` — its `429` carries `Retry-After` and `error.retry_after`, both the seconds until 00:00 UTC, when the budget resets, plus the `RateLimit-*` headers of the order bucket it passed. `error.retry_after` is what sets it apart from the other `429`s. While the budget's places are held only by your own checks still running, the create answers a short `429` instead: `Retry-After` of a few seconds and no `error.retry_after` — retry after `Retry-After`. - **The giveaway quote budget shared by all tenants** — its `429` carries `Retry-After` (seconds until the shared budget reopens) and the `RateLimit-*` headers of your own quote bucket, never figures for the shared budget. - **Edge throttle** — a coarse per-IP throttle in front of the API answers the same envelope with `Retry-After: 1` and no `RateLimit-*` headers.
- `503`: A required source was temporarily unavailable (`unavailable`): the price source, recipient eligibility that could not be verified right now, the payment check a cancel runs first, or (order create, rarely) no fulfilment capacity assigned to your tenant right now. The `message` is generic (`internal error`), so it does not say which: treat every `unavailable` as **retryable** — reuse the same `Idempotency-Key` and try again shortly. An app `503 unavailable` creates and cancels nothing and charges nothing. If `503 unavailable` on order create persists, contact support with the `X-Request-ID`. The edge's own `502`, `503` and `504` (the service restarting or timing out) answer the same envelope with `unavailable`, and may follow a request that did land: retry with the same `Idempotency-Key`, and an order create that landed is replayed, never duplicated. On the campaign, gift and giveaway routes a `503` may also be a gift catalog that cannot be read right now (`gift_catalog_unavailable` — retry later) or an option that is not enabled for your tenant yet (`prize_type_unavailable`, `partner_conditions_unavailable`, `antibot_enforce_unavailable`, `autopost_unavailable`, `series_unavailable` — do not retry, ask support); the `code` says which.

## Changes

- **2026-10-31** `9f589c4dd26b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api/changes/v1/giveaways/get.md)

---

[API](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api.md) - [All operations](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api/revisions/b6cdc8aff8c2?raw)
