---
# System prepended metadata

title: bugsnag

---

curl https://notify.bugsnag.com -i -X POST \
  -H "Content-Type: application/json" \
  --data '{
    "apiKey": "556a9c32e3473388f4c3013ba249466b",
    "notifier": {
      "name": "test-notifier",
      "version": "1.0",
      "url": "https://example.com"
    },
    "events": [{
      "exceptions": [{
        "errorClass": "TestError",
        "message": "This is a test error",
        "stacktrace": [{
          "file": "TestFile.java",
          "lineNumber": 42,
          "method": "testMethod"
        }]
      }],
      "severity": "error",
      "unhandled": true,
      "app": {
        "version": "1.0"
      },
      "device": {
        "osVersion": "10.0"
      }
    }]
  }'
  
