Webhook API
ErrLog.IO supports manual submission of errors via a Webhook. This can be used from a variety of languages, with example usage below.
Overview
To use this API, simply create a JSON object and send it via a POST to our our Webhook endpoint.
All objects (apart from your apikey) are dynamically typed, meaning you can include objects of any type, and from any language or platform, without having to specifically provide a strongly typed value.
 Webhook Endpoint
Webhook Endpoint:
https://relay.errlog.io/api/v1/log
Examples
 Webhook Parameters
Variable Type Required Description
apikey string required This is your ErrLog.IO apikey.
message dynamic required This is the error message that you want logged.
type dynamic recommended This is the type of event you're logging. In C# it could be "NullReferenceException", "ArgumentException" or just "Exception".
applicationname dynamic recommended This is the name of the application that caused the event. Helpful for distinguishing different applications.
errordate dynamic optional The datetime the event occurred. Should be in the format yyyy-mm-dd hh:mm:ss where specified.
querystring dynamic optional The querystring of the request which caused the event.
trace dynamic optional This is the stacktrace of the exception.
page dynamic optional This is the page in which the event occurred
method dynamic optional This is the method in which the event occurred
lineno int optional The line number of the code which caused the event.
colno int optional The column number of the code which caused the event.
filename dynamic optional The filename of the code which caused the event.
useragent dynamic optional This is the useragent string for the client's browser
browsername dynamic optional This is the browser the client was using when the event occurred.
servername dynamic optional This is an identifier for the server/device on which the event occurred.
browser_capabilities dynamic optional This is identifies the capabilities of the client's browser
ipaddress dynamic optional This is the IP address of the client device.
custom dynamic optional This can be used to store any additional data you want.
language dynamic optional This is the programming language the code was written in.
session_data dynamic optional Represents a HttpSessionState object.
assemblyversion dynamic optional You can use this to represent the version of your application/library.
application_data dynamic optional Used to store name/value data from your Application state.
request_header dynamic optional This is used to store the HTTP Request Headers as name/value pairs.
request_formdata dynamic optional This is used to store the HTTP Request Form Data as name/value pairs.
request_cookies dynamic optional This is used to store the HTTP Cookies as name/value pairs.
environment dynamic optional This is used to store general environment metrics as name/value pairs.
 Common Errors & Troubleshooting
The Webhook API will return a plain-english error message describing any issues it encounters when you POST an error to it.
Missing API Key The API key is a mandatory field and required for the API to correctly function.
Incorrect usage of Webhook A HTTP POST is the method used to send data to the Webhook. GET and other HTTP methods are not supported.

 

Discuss this article