Pricing

List available products

Changed on

The product catalog — the two product types you can sell and the buyable shape of each. Static, price-free metadata (call GET /v1/pricing for a price): use it to build your own catalog/UI and to learn the bounds the order endpoints enforce.

Each entry's parameter names the request field to send to /v1/pricing and /v1/orders (quantity for stars, months for premium). A null values means a continuous integer range [min, max] (stars — any quantity in range, no fixed denominations); a non-null values is the exact allowed set (premium — [3, 6, 12]).

get/v1/products

Request

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

Response

The product catalog.

Example response

{
  "products": [
    {
      "name": "Telegram Stars",
      "min": 50,
      "max": 1000000
    }
  ]
}

Changes

    • warning

      added the new antibot_enforce_unavailable enum value to the error/code response property for the response status

    • warning

      added the new antibot_enforce_unavailable enum value to the error/code response property for the response status

    • warning

      added the new attestation_limit_reached enum value to the error/code response property for the response status

    82 more changes in this revision