Triggers enrichment and routing workflows from external systems.
The Workflow Trigger API provides a generic interface for initiating enrichment and routing workflows from various external systems like Eloqua, Customer Data Platforms (CDP), Data Lakes, and other marketing automation platforms.
Requires either an API key or OAuth2 bearer token in the Authorization header.
Designed to support bursty event traffic, capable of handling hundreds of requests per minute.
record_data: Generic record payload containing fields for Lead, Contact, Opportunity, or other custom objectssource_system: Optional source system identifier (e.g., 'eloqua', 'cdp', 'data_lake')enrichment_preferences: Optional enrichment preferences and configuration
success: Boolean indicating request successstatus: Workflow status (triggered, queued, failed)request_id: Unique request ID for trackingworkflow_id: ID of the triggered workflowprocessing_time_ms: Processing time in millisecondsenrichment_job_id: ID of enrichment job created (if applicable)credits_consumed: Number of credits usedcredits_remaining(approximate balance; use GET /v1/credits/remaining for precise value)cached: Whether result was from cache
- Generic Payload: Accepts any record type (Lead, Contact, Opportunity, custom objects)
- Audit Logging: All requests and responses are logged for compliance
- Retry Logic: Automatic retries on failure with exponential backoff
- High Throughput: Optimized for bursty event traffic
- Credit Tracking: Transparent credit consumption tracking
Workflow triggers consume credits based on complexity:
- Basic Trigger: 1 credit per record
- With Enrichment: +2 credits for enrichment processing
- With Routing: +1 credit for routing logic
Generic record payload containing fields for Lead, Contact, Opportunity, or other custom objects
Source system identifier (e.g., 'eloqua', 'cdp', 'data_lake')
- Lantern API serverhttps://api-gateway.agenthq.withlantern.com/v1/workflows/{workflow_id}/trigger
- Local API serverhttp://localhost:8000/v1/workflows/{workflow_id}/trigger
curl -i -X POST \
'https://api-gateway.agenthq.withlantern.com/v1/workflows/{workflow_id}/trigger' \
-H 'Authorization: Bearer <YOUR_ApiToken_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"record_data": {},
"source_system": "string",
"enrichment_preferences": {}
}'Success Response
Time taken to process the request in milliseconds
ID of the enrichment job created (if applicable)
Approximate remaining credit balance. Use GET /v1/credits/remaining for precise balance.
{ "success": true, "status": "triggered", "request_id": "req_1234567890abcdef", "workflow_id": "wf_workflow_123", "processing_time_ms": 150, "enrichment_job_id": "job_9876543210fedcba", "credits_consumed": 3, "credits_remaining": 950, "cached": false }