Reset user history
const url = 'https://user.userguiding.com/public/user/example/reset-history';const options = {method: 'POST', headers: {'UG-API-KEY': '<UG-API-KEY>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://user.userguiding.com/public/user/example/reset-history \ --header 'UG-API-KEY: <UG-API-KEY>'Clears what the user has done with your UserGuiding content, so content that already showed to them can show again. Their attributes, company and identity stay as they are.
The reset clears guide, hotspot, checklist, banner and survey history, survey answers, Resource Center tabs and interactions, Product Updates post views, feature request votes and the custom event summary. Goals reached and Knowledge Base article views are kept.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Your own ID for the user, the same one you pass to identify in the SDK.
Responses
Section titled “Responses”The user after the reset.
object
Your UserGuiding account ID.
Your own ID for the user.
When the user was created in UserGuiding.
Whether the user is anonymous, such as a Knowledge Base or Product Updates visitor you never identified.
Number of sessions the user has started in your app.
Custom attributes you sent through the SDK, this API or an integration.
object
IDs of the guides the user started.
IDs of the guides the user completed.
IDs of the hotspots the user interacted with.
IDs of the checklist items whose link the user clicked.
IDs of the hotspots the user dismissed.
IDs of the checklists the user completed.
IDs of the guides the user closed before finishing.
IDs of the checklists the user dismissed.
IDs of the banners the user saw.
IDs of the banners the user dismissed.
IDs of the user groups the user belongs to.
When the user last saw each survey.
object
ID of the guide, hotspot, banner or survey.
When it last happened.
When the user last started each guide.
object
ID of the guide, hotspot, banner or survey.
When it last happened.
When the user last saw each banner.
object
ID of the guide, hotspot, banner or survey.
When it last happened.
When the user last interacted with each hotspot.
object
ID of the guide, hotspot, banner or survey.
When it last happened.
How many times the user started each guide.
object
ID of the guide, banner or survey.
How many times it showed to the user.
How many times the user saw each survey.
object
ID of the guide, banner or survey.
How many times it showed to the user.
How many times the user saw each banner.
object
ID of the guide, banner or survey.
How many times it showed to the user.
The user’s survey answers, one item per question.
object
ID of the survey.
ID of the question.
When the user answered.
Count and first and last time of each custom event the user triggered.
object
When the user last triggered the event.
When the user first triggered the event.
How many times the user triggered the event.
Event name.
Goals the user reached, and when.
object
ID of the goal.
When the user reached the goal.
Whether your project had reached its AI Assistant message limit when the SDK last identified the user.
IDs of the hotspot buttons the user clicked.
IDs of the guide buttons the user clicked.
IDs of the banner buttons the user clicked.
Whether the user has started a conversation with the AI Assistant.
IDs of the Resource Centers the user interacted with.
Resource Center tabs the user opened.
object
The tab the user opened.
ID of the Resource Center.
IDs of the Resource Center content items the user opened.
IDs of the Product Updates posts the user viewed.
IDs of the Knowledge Base articles the user viewed.
IDs of the feature requests the user voted for on your roadmap.
object
Your own ID for the company.
Your UserGuiding account ID.
Custom attributes of the company.
object
When the company was created in UserGuiding.
Example
{ "account_id": "4821", "user_id": "10931", "project_id": "4821", "company_id": "acme-inc", "created": "2026-06-02T09:14:03Z", "first_seen": "2026-06-02T09:14:03Z", "last_seen": "2026-09-09T18:27:21Z", "last_product_updates_interacted": "2026-08-21T11:02:44Z", "is_anonymous": false, "web_session": 37, "country": "TR", "source": "sdk", "browser_language": "en-US", "browser_name": "Chrome", "browser_version": "141.0.0", "device_type": "desktop", "device_model": "", "device_vendor": "", "os_name": "Mac OS", "os_version": "15.5", "attributes": { "name": "Jamie Rivera", "plan": "growth", "signed_up_at": "2026-06-02" }, "ab_test_attributes": {}, "group_ids": [ "beta-testers" ], "preview_start": [], "preview_complete": [], "preview_dismiss": [], "guide_button_click": [], "checklist_complete": [], "checklist_dismiss": [], "checklist_url_click": [], "hotspot_interact": [], "hotspot_dismiss": [], "hotspot_button_click": [], "banner_seen": [], "banner_dismiss": [], "banner_button_click": [], "guide_interaction_times": [], "survey_interaction_times": [], "banner_interaction_times": [], "hotspot_interaction_times": [], "guide_triggers_count": [], "survey_triggers_count": [], "banner_triggers_count": [], "survey_score": 9, "survey_feedback": "Onboarding was clear.", "survey_responses": [], "events_summary": [], "goal_reached_times": [ { "goal_id": 74, "goal_reached_at": "2026-07-03T16:05:00Z" } ], "interacted_resource_centers": [], "rc_viewed_tabs": [], "rc_viewed_rich_contents": [], "pu_viewed_posts": [], "kb_viewed_articles": [ "9921" ], "voted_feature_requests": [], "ai_assistant_conversation_started": false, "ai_message_limit_exceeded": false, "company": { "company_id": "acme-inc", "account_id": "4821", "project_id": "4821", "company_name": "Acme Inc", "company_attributes": { "plan": "growth", "seats": 40 }, "company_ab_test_attributes": {}, "source": "sdk", "created": "2026-06-02T09:14:03Z", "first_seen": "2026-06-02T09:14:03Z", "last_seen": "2026-09-09T18:27:21Z", "members_ids": [] }}No user has this ID.
Example
{ "detail": "A user with provided id does not exist."}The request is invalid. detail lists each problem.
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}Your project used up its rate limit: bursts of up to 2,000 requests, refilled at 20 requests per second.
Headers
Section titled “Headers”Seconds to wait before sending another request.