Endpoints
Hits
Track search hits and user interaction events
POST
Endpoint
POST /rest/hits/
Request Body Parameters
string
required
Organization UUID associated with the event.
timestamp
required
ISO 8601 event timestamp.
string
required
Event classification (for example,
search).string
HTTP method of the request (for example,
GET, POST).string
Request path (for example,
/search).string
Full URL of the request including query parameters.
string
User agent string from the request header.
string
IP address of the client making the request.
number
Bot detection score between 0 and 1. Higher values indicate greater likelihood of bot traffic.
boolean
Whether the request is from a verified bot (for example, search engine crawlers).
object
Request headers object.
object
Cloudflare-specific metadata object.
Response
Returns the created hit record withid, createdAt, and updatedAt fields.