Allmine API
Gifts

Tüm aktif gift type'ları getir

Aktif olan tüm gift type'ları kredi miktarına göre sıralı şekilde listeler.

GET
/api/v1/gifts/gift-types

Aktif olan tüm gift type'ları kredi miktarına göre sıralı şekilde listeler.

Authorization

JWT-auth
AuthorizationBearer <token>

Paste the JWT access token without the Bearer prefix.

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/gifts/gift-types"
{
  "isSuccess": true,
  "statusCode": 200,
  "data": [
    {
      "creditAmount": 9,
      "svgUrl": "https://example.com/gifts/gift_9.svg",
      "isActive": true,
      "createdAt": "2024-01-01T00:00:00.000Z",
      "updatedAt": "2024-01-01T00:00:00.000Z"
    }
  ],
  "errors": [],
  "timestamp": "2026-05-22T16:11:27.190Z"
}
{
  "isSuccess": false,
  "statusCode": 400,
  "data": null,
  "errors": [
    "Validation failed"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 401,
  "data": null,
  "errors": [
    "Authentication required"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 403,
  "data": null,
  "errors": [
    "Insufficient permissions"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}