collect

Enrich DataDome engine

Use this endpoint to send a custom event to DataDome without expecting an action recommendation.

post/v1/collect/custom

Request

  • Base URL
    https://account-api.datadome.co
  • URL
    https://account-api.datadome.co/v1/collect/custom
  • Auth
    API key in header x-api-key

Request body

OR

Example request

{
  "eventName": "myEventName",
  "module": {
    "requestTimeMicros": 1705314600000000,
    "name": "my-module",
    "version": "1.0.0"
  },
  "header": {
    "addr": "203.0.113.42",
    "contentType": "application/json",
    "host": "www.example.com",
    "port": 443,
    "xRealIp": "203.0.113.42",
    "xForwardedForIp": "203.0.113.42",
    "acceptEncoding": "gzip, deflate, br",
    "acceptLanguage": "en-US,en;q=0.9",
    "accept": "*/*",
    "method": "POST",
    "protocol": "HTTP",
    "serverHostname": "www.example.com",
    "referer": "https://www.example.com/login",
    "userAgent": "Mozilla/5.0",
    "from": "",
    "request": "/login",
    "origin": "https://www.example.com",
    "acceptCharset": "utf-8",
    "connection": "keep-alive",
    "clientID": "datadome_cookie_value"
  }
}

Response

Custom event has been collected

Changes

No recorded changes to this operation across all 1 revision of this API.