Analytics

Log analytics events

Ingest one or more analytics events for a project. Events are forwarded to Tinybird in NDJSON format and stored in the blink_events data source.

Accepts up to 10 events per request (50 KB max). String fields are truncated to 256 characters. The server auto-enriches missing browser, os, and deviceType fields from the User-Agent header. Non-standard event fields are stored in the data column. Authentication is optional unless analytics.require_auth is enabled for the project — except pageview-only batches from *.blinkpowered.com or *.sites.blink.new (see Origin/Referer), needed for hosted sendBeacon.

post/api/analytics/{project_id}/log

Request

  • Base URL
    https://core.blink.new
  • URL
    https://core.blink.new/api/analytics/{project_id}/log
  • Auth
    HTTP bearer

Path parameters

project_idstring required
Example:my-project-123

Unique identifier for the project

Request body

Example request

{
  "events": [
    {
      "type": "page_view",
      "timestamp": "2024-01-15T10:30:00.000Z",
      "user_id": "usr_abc123",
      "pathname": "/pricing",
      "referrer": "https://google.com",
      "screen_width": 1440
    }
  ]
}

Response

Events accepted and forwarded to the analytics pipeline

successboolean

Example response

{
  "success": true
}

Changes

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