1

Requirements

  • Valid JSON content
  • API key (find this on your dashboard) sent in the headers
  • Content-Type header set as application/json
  • Either POST or PUT to https://api.logit.io/v2
2

Example

curl -i -H "ApiKey: your-api-key" -i -H "Content-Type: application/json" -H "LogType: SampleHttpLog" https://api.logit.io/v2 -d '{"test":"test","example": { "a": 1, "b": 2 } }'
3

Response

You should expect to receive a 202 Accepted response code for a successful message

HTTP/1.1 202 ACCEPTED
Server: nginx/1.6.0
Date: Mon, 04 May 2015 19:15:29 GMT
Content-Type: application/json
Content-Length: 25
{
  "message": "Thanks"
}