Skip to main content
GET
/
users
/
@me
/
gifts
List user gifts
curl --request GET \
  --url https://api.fluxer.app/v1/users/@me/gifts \
  --header 'Authorization: <api-key>'
[
  {
    "code": "<string>",
    "duration_months": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "created_by": {
      "id": "<string>",
      "username": "<string>",
      "discriminator": "<string>",
      "global_name": "<string>",
      "avatar": "<string>",
      "avatar_color": 1073741823,
      "flags": 1073741823,
      "bot": true,
      "system": true
    },
    "redeemed_at": "2023-11-07T05:31:56Z",
    "redeemed_by": {
      "id": "<string>",
      "username": "<string>",
      "discriminator": "<string>",
      "global_name": "<string>",
      "avatar": "<string>",
      "avatar_color": 1073741823,
      "flags": 1073741823,
      "bot": true,
      "system": true
    }
  }
]

Authorizations

Authorization
string
header
required

Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.

Response

Success

code
string
required

The unique gift code string

duration_months
integer<int53>
required

Duration of the subscription gift in months

created_at
string<date-time>
required

Timestamp when the gift code was created

created_by
object
required
redeemed_at
string<date-time> | null

Timestamp when the gift code was redeemed

redeemed_by
object

The user who redeemed the gift code