User
Offers
Surveys
Magic-Receipts

Get user history

Changed on

Get User History returns a sorted list of events where the first element is the most recent. It contains up to four different types of events: OPEN, LEAVE, SCREENOUT, COMPLETE.

Events in this response are unique per survey so if a survey was completed, only the complete event is returned and not the corresponding opening. Only non open events contain a duration property. Only screenout and complete events contain a user value property.

get/v1/client/user/history

Request

  • Base URL
    https://api.bitlabs.ai
  • URL
    https://api.bitlabs.ai/v1/client/user/history
  • Auth
    • API key in header X-Api-Token and API key in header X-User-Id
    • or API key in query parameter token and API key in query parameter uid
    • or HTTP bearer

Query parameters

filterstring[]

optionally filter by type

Response

OK

Example response

{
  "data": [
    {
      "user_value": "1.23",
      "support_form_url": "support.bitlabs.link/bitburst/survey/contact?user_id={encodedUserId}&tx_id={encodedTxId}"
    }
  ]
}

Changes

    • breaking

      added to the / response property oneOf list for the response status

    • info

      added the optional property ////// to the response with the status

    • info

      removed from the / response property oneOf list for the response status