Custom Endpoints

This API endpoint works much like a webhook for discord, but sends data in separate fields.

Here’s an example implementation in NodeJS that you can use as a baseline:

app.post('/bug-report-endpoint', upload.single('file'), (req, res) => {

      console.log("content:", req.body.content);
      console.log("headline:", req.body.headline);
      console.log("userComment:", req.body.userComment);
      console.log("fileInfo:", req.file);

      // everything worked
      res.status(200).send({ message: "Successfully received data!" });
  });

✍️ Input in Unity

After setting up your API Endpoint URL you need to:

  • In Unity, open your Debug System settings (Window > Sparrow > Debug System).
  • Go to the “Where to send reports?” section
  • Select “Own API Endpoint”
  • In the Inspector window, you will see a field for your own API Endpoint URL.
  • Enter your Endpoint URL into the respective fields.
  • Create a Test Report
Was this page helpful?