---
updatedAt: 2026-05-20T09:44:11.000Z
agentTools:
  projectIndex: https://developer.bitlabs.ai/llms.txt
---

# Get user's welcome bonus, if eligible

Get user's welcome bonus, if eligible.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "2.0.160",
    "title": "BitLabs Client API",
    "description": "BitLabs' public API to be integrated by our own products as well as publishers who desire maximum customization.\n",
    "contact": {
      "name": "BitLabs",
      "email": "contact@bitlabs.ai",
      "url": "https://bitlabs.ai"
    }
  },
  "servers": [
    {
      "url": "https://api.bitlabs.ai"
    }
  ],
  "security": [
    {
      "HeaderApiToken": [],
      "HeaderUserId": []
    },
    {
      "QueryApiToken": [],
      "QueryUserId": []
    },
    {
      "HeaderBearerToken": []
    }
  ],
  "tags": [
    {
      "name": "User",
      "description": "Various endpoints to retrieve data about the current user.\n"
    }
  ],
  "paths": {
    "/v1/client/promotions/welcome-bonus": {
      "get": {
        "summary": "Get user's welcome bonus, if eligible",
        "operationId": "getWelcomeBonus",
        "tags": [
          "User"
        ],
        "description": "Get user's welcome bonus, if eligible.\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PromotionsWelcomeBonus"
                    }
                  }
                },
                "examples": {
                  "NoWelcomeBonus": {
                    "value": {
                      "data": {},
                      "status": "success",
                      "trace_id": "2050914de1c94427"
                    }
                  },
                  "PromotionsWelcomeBonusFlatAmount": {
                    "value": {
                      "data": {
                        "bonus_type": "FLAT_AMOUNT",
                        "user_reward_currency": 0.43
                      },
                      "status": "success",
                      "trace_id": "2050914de1c94427"
                    }
                  },
                  "PromotionsWelcomeBonusPercentage": {
                    "value": {
                      "data": {
                        "bonus_type": "PERCENTAGE",
                        "value": 4,
                        "duration_seconds": 36000,
                        "allowed_demands": [
                          "SURVEYS",
                          "OFFERS"
                        ],
                        "expires_at": "2021-12-31T23:59:59Z"
                      },
                      "status": "success",
                      "trace_id": "2050914de1c94427"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "HeaderApiToken": {
        "type": "apiKey",
        "name": "X-Api-Token",
        "in": "header",
        "description": "ApiToken of your BitLabs app."
      },
      "HeaderUserId": {
        "type": "apiKey",
        "name": "X-User-Id",
        "in": "header",
        "description": "Unique identifier of the user you are sending to BitLabs. These are passed back to you in callbacks to allow\nyou to identify your users. If possible, use UUIDs, numerical IDs or ASCII strings to avoid formatting issues.\nDo NOT use JWT or other sensitive tokens to identify your users. We only support up to 65 character long ids.\n"
      },
      "QueryApiToken": {
        "type": "apiKey",
        "name": "token",
        "in": "query",
        "description": "ApiToken of your BitLabs app."
      },
      "QueryUserId": {
        "type": "apiKey",
        "name": "uid",
        "in": "query",
        "description": "Unique identifier of the user you are sending to BitLabs. These are passed back to you in callbacks to allow\nyou to identify your users. If possible, use UUIDs, numerical IDs or ASCII strings to avoid formatting issues.\nDo NOT use JWT or other sensitive tokens to identify your users. We only support up to 65 character long ids.\n"
      },
      "HeaderBearerToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Enter the token with the `Bearer ` prefix, e.g. \"Bearer abcde12345\".\n"
      }
    },
    "schemas": {
      "PromotionsWelcomeBonus": {
        "type": "object",
        "properties": {
          "spin_details": {
            "$ref": "#/components/schemas/WelcomeBonusSpinDetails"
          },
          "user_reward_currency": {
            "type": "number",
            "format": "float",
            "description": "The once off user reward currency a user will receive upon claiming the welcome bonus",
            "example": 0.42
          },
          "bonus_type": {
            "type": "string",
            "enum": [
              "FLAT_AMOUNT",
              "PERCENTAGE"
            ]
          },
          "value": {
            "type": "number",
            "format": "float",
            "description": "The percentage value which will be used to calculate the user reward upon the completed survey, offer, etc. reward",
            "example": 0.3
          },
          "duration_seconds": {
            "type": "integer",
            "format": "int32",
            "description": "The amount of seconds that the welcome bonus is active since the time it was claimed by the user."
          },
          "allowed_demands": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "SURVEYS",
                "OFFERS",
                "MAGIC_RECEIPTS"
              ]
            }
          },
          "claimed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the user has claimed the welcome bonus eligibility.",
            "example": "2021-12-31T23:59:59Z"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "Welcome bonus expiration timestamp, calculated as duration_seconds after the time the welcome bonus was claimed.",
            "example": "2021-12-31T23:59:59Z"
          }
        }
      },
      "WelcomeBonusSpinDetails": {
        "type": "object",
        "description": "Details about the spin wheel for the user",
        "required": [
          "percentage_period_seconds",
          "prize_pool",
          "is_available"
        ],
        "properties": {
          "is_available": {
            "type": "boolean",
            "example": true
          },
          "percentage_period_seconds": {
            "type": "integer",
            "format": "int32",
            "example": 3600
          },
          "prize_pool": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WelcomeBonusWheelPrize"
            },
            "description": "Available rewards"
          }
        }
      },
      "WelcomeBonusWheelPrize": {
        "type": "object",
        "description": "A reward available in the spin wheel",
        "required": [
          "type",
          "weight",
          "prize_data"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FLAT_AMOUNT",
              "PERCENTAGE"
            ],
            "description": "The type of reward",
            "example": "PERCENTAGE"
          },
          "weight": {
            "type": "number",
            "format": "float",
            "description": "The weight of the reward; between 0 and 1",
            "example": 0.3
          },
          "prize_data": {
            "type": "number",
            "format": "float",
            "example": 44
          }
        }
      }
    }
  }
}
```