Skip to main content
Here, you can view information about existing endpoints and how to make requests for them.

API URL

URL for POST requests: /events

POST events

This request is needed to record an event in the database.

Body

The request body may contain an array rather than a single event. The main thing is that all events in the array satisfy the scheme below.

Required

Optional

Request body example:

Headers

Instead of YOUR_TOKEN, you need to specify the token received using the managing integration. (TO DO link)

Responses

HTTP201

  • Description: The event has been successfully recorded
  • Content:

HTTP400

  • Description: The event was not recorded due to server issues
  • Content:

HTTP400

  • Description: The token was entered incorrectly or in the wrong format
  • Content:

HTTP400

  • Description: The entered token is invalid (was not created through a Data Chief bot)
  • Content:

HTTP400

  • Description: The request body contains the application name that does not match the token
  • Content:

HTTP400

  • Description: the body specified in the request was not validated (for example, the type of one of the fields does not match)
  • Content:

HTTP403

  • Description: an attempt to use the API on a domain name that does not match the token
  • Content:

HTTP429

  • Description: too many requests from the client in a certain amount of time
  • Content: