• This feature is only available for Enterprise plans. If you want to know more about these plans, please* contact us.

Connecting Classic Classic Projects using Webhook Integration

In case you are using your own enterprise software and you want to get your screenshots delivered there, please use our Webhook API.

We are sending the report as MIME multipart file-upload to your URL.

Here's how it works:

Go to your Usersnap project’s 3rd Party Integration tab and select Webhook from the grid.

To deliver your reports please enter a URL that accepts any script or webpage that allows multi-part file-upload.

The Security-Token parameter can be used to improve your security. We will send this parameter along with the upload request. That way you can assure that only Usersnap servers can upload information via this API.

How does the request look like

Parameters your script can expect

  • token - your specified security token
  • file - the screenshot
  • reportid - a unique id identifying this report
  • ticketurl - link to the screen in the Usersnap dashboard
  • ticketnr - screen number
  • subject - the report subject
  • browser - the used browser version
  • ipaddress - the IP address of the user
  • referer - the HTTP referer of the report
  • senderemail - the user's email (if specified)
  • sendercomment - the user's comment (if specified)
  • additionalinfo - additional information (if specified)
  • notelist[] - the notes of the user (if any)

Example PHP script
You can use this sample PHP script which saves the report image and data into a newly-created directory.

//perform a security check
//that only usersnap can access this page
if ($_POST['token'] != "MySecurityToken") {
    $_SERVER['SERVER_PROTOCOL'].'500 Internal Server Error',
  echo "no access";
} else {
  //All data will be sent with a multipart form upload
  $path = "./output/".time();
  //create new directory
  //copy screenshot to the directory
  //dump all screenshot information
  $req_dump = print_r($_POST, TRUE);
  //...and save it to a file
  $fp = fopen($path."/information.txt", 'w');
  fwrite($fp, $req_dump);
  echo "ok";

Our servers are checking the response header. If your script returns an HTTP status that is different from 200, we will retry the delivery process several times.

Did this page help you?