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

Workflow API

PreviousMetrics APINextProducts API

Last updated 9 months ago

Trigger a workflow for a user

post
Authorizations
Body
triggerIdstringOptionalExample: {apiTriggerId}
userIdstringOptionalExample: {userId}
variablesobjectOptionalExample: {"property1":"value","property2":123,"property3":true,"property4":["arrayValue1","arrayValue2"],"property5":{"nestedProperty1":"value"},"property6":null}
Responses
204
Successful Response
post
POST /workflow/trigger HTTP/1.1
Host: integration-api.userflux.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 132

{
  "triggerId": "eeb67b5f-5523-4671-bb75-bec5c2990c7d",
  "userId": "3f23931e-94cc-407a-936e-6b70b01cd62c",
  "variables": {
    "channel": "email"
  }
}
204

Successful Response

No content