Skip to content
Fluxer API

Gift inventory

The gift inventory has the premium gift codes the current account bought.

A new code sets has_unread_gift_inventory on the user object and adds one to unread_gift_inventory_count. To clear both, send has_unread_gift_inventory: false to Modify current user. Listing gifts doesn't clear them.

One gift code the current account bought. Any account with an unredeemed code can redeem it.

FieldTypeDescription
codestringThe gift code
duration_typestringThe duration unit of duration_quantity
duration_quantityintegerThe number of duration_type units the code grants
created_atISO8601 timestampWhen the code was created
created_bypartial user objectThe account that bought the code
redeemed_at??ISO8601 timestampWhen the code was redeemed, or null if it is unredeemed
redeemed_by??partial user objectThe account that redeemed the code, or null if it is unredeemed
GET/v1/users/@me/gifts

Returns the gift codes the current account bought, newest first, with no pagination. The list leaves out revoked codes and codes redeemed more than seven days ago.

StatusBodyCondition
200array[gift inventory object]The gift codes were returned
404error responseNOT_FOUND when the instance premium mode isn't mirror

The rate limit is 40 requests per 10 seconds, on the gifts:list bucket.