Actions
The Actions endpoint allows you to request Bugpilot reports from your end users.
Last updated
Was this helpful?
The Actions endpoint allows you to request Bugpilot reports from your end users.
Last updated
Was this helpful?
To successfully execute a Bugpilot action:
You need to .
You need to and send either a user ID or an email to Bugpilot.
In , make sure the Always connect Action WebSockets, is selected. It is not selected by default.
The end-user needs to be online on one of your pages at the time you call the API. If the user is not online, the requests will fail with an USER_NOT_CONNECTED
error.
This table lists the operations that can be performed using this API endpoint.
show-recording-ui
Shows a UI to the user that can be used to submit up to 60 seconds of screen recording. The user will see a recording frame and a button to stop the recording earlier.
upload-screenshot
Requests a Bugpilot report with a screenshot of the page the user is currently seeing. No UI will be shown to the user when performing this action.
upload-session
Requests a Bugpilot report with a recording of the last 5-10 minutes of user activity. No UI will be shown to the user when performing this action.
POST
https://widget-api.bugpilot.io/api/v1/action
See for the list of actions you can perform with this endpoint.
user-agent*
string
Bugpilot API Client/1.0
x-bugpilot-api-key*
string
content-type*
string
application/json
workspaceId*
string
userId*
string
The ID (or email) of the end-user which Bugpilot will perform the specified action on.
The user ID must match the user ID you pass to the Bugpilot.identify()
method on the client.
action*
string
userProvidedDescription
String
An optional string containing a description text. It will be saved in the report object and shown on the report page under the Notes section.
The response contains ok: true if it is successful. In any case, a sessionInfoUrl property is included. Refer to the Session Info API reference for further information.
The Workspace API Key that you can find in your .
The ID of your workspace. You can find it in your .
Action you want Bugpilot to perform on the end-user. Must be one of the listed above.
Make sure Always connect Action WebSockets is selected in . Once you change this option, it will become effective the next time users will load a page.