Get click
Returns the next action to take for the given click. It returns the user's current progress and either a redirect target or a question to answer.
Path parameters
-
click id
GET /v2/client/clicks/{clickId}
curl \
-X GET https://api.bitlabs.ai/v2/client/clicks/{clickId}
Response examples (200)
{
"data": {
"answer_question": {
"question": {
"id": "e9bdff4e7d",
"language": "en",
"type": "TEXT",
"localized_text": "What is your favorite color?",
"answers": [
{
"code": "1",
"localized_text": "Red"
}
],
"can_skip": true,
"is_duplicate": false,
"example": "string",
"validation_info": {
"min": 1,
"max": 1,
"regex": "^.{1,30}$"
}
}
},
"redirect": {
"url": "https://web.bitlabs.ai",
"type": "termination"
},
"answered_questions": 42,
"required_questions": 42,
"click_type": "survey",
"question_mode": "default",
"survey_details": {
"id": "string",
"cpi": "1.2",
"value": "120",
"loi": 5.3,
"country": "US",
"language": "en",
"rating": 4,
"category": {
"name": "Automotive",
"icon_name": "string",
"icon_url": "string",
"name_internal": "automotive"
}
}
}
}