LogoLogo
  • Set up UserFlux
    • What is UserFlux?
  • Create an account
  • Start collecting data
  • View your data in UserFlux
  • Plan remaining implementation
  • Integration
    • Identify users
    • Send events
  • Enrich your data
  • Feature Guides
    • Insights
      • Series
      • Funnel
      • User Composition
      • Custom SQL
  • Reports
  • Segments & Computed Properties
  • Workflows
  • Destinations
  • Metrics API
  • Security
    • API Authentication
    • Trust Center
  • SDKs
    • Browser SDK
    • React SDK
    • Backend JS SDK
  • APIs
    • Profiles API
    • Events API
    • Metrics API
    • Workflow API
    • Products API
Powered by GitBook
On this page
  1. APIs

Events API

PreviousProfiles APINextMetrics API

Last updated 9 months ago

Ingest a new user event

post
Authorizations
Query parameters
locationEnrichmentbooleanOptional
Body
userIdstringOptionalExample: {userId} or null
anonymousIdstringOptionalExample: {anonymousId} or null
namestringOptionalExample: name_of_the_event
timestampnumberOptionalExample: 1690111645853
propertiesobjectOptional
Responses
204
Successful Response
post
POST /event/ingest HTTP/1.1
Host: integration-api.userflux.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 238

{
  "userId": "{userId} or null",
  "anonymousId": "{anonymousId} or null",
  "timestamp": 1690111645853,
  "name": "event_name",
  "properties": {
    "property1": "value",
    "property2": 123,
    "property3": true,
    "property4": null,
    "property5": {
      "nestedProperty1": "value"
    }
  }
}
204

Successful Response

No content