Accepts form submissions and immediately enriches and dispositions the data.
The Form Submit API is designed to accept form submissions directly from marketing automation platforms or websites. It provides immediate enrichment and disposition of submitted data with two possible outcomes:
- Return enriched lead data in the response
- Push the enriched lead to Salesforce or Marketing Automation (MA) tool
Requires an API key configured per site or system.
Designed for near-real-time processing (less than 5 seconds end-to-end) and supports high-volume campaign bursts.
name: Contact nameemail: Contact email address (validated)company: Company namephone: Phone number (validated)title: Job titleadditional_fields: Additional form fields as key-value pairsform_source: Source of form submissionenrichment_preferences: Enrichment preferences and configurationoutput_preferences: Output preferences (return data vs push to external system)
success: Boolean indicating request successstatus: Processing status (enriched, pushed, failed)request_id: Unique request ID for trackingprocessing_time_ms: Processing time in millisecondsenriched_lead: Enriched lead data (if requested)push_status: Status of push to external system (if applicable)credits_consumed: Number of credits usedgdpr_safe: Whether enrichment was GDPR compliantcached: Whether result was from cache
- Input Validation: Email and phone number validation
- GDPR Compliance: Safe enrichment practices
- Real-time Processing: Sub-5 second end-to-end processing
- High Volume Support: Optimized for campaign bursts
- Flexible Output: Return enriched data or push to external systems
- Audit Trail: Complete logging for compliance
Form submissions consume credits based on processing:
- Basic Submission: 2 credits per form
- With Enrichment: +3 credits for enrichment processing
- With Push: +1 credit for external system push
Security
BearerAuth
- Lantern API serverhttps://api-gateway.agenthq.withlantern.com/v1/forms/submit
- Local API serverhttp://localhost:8000/v1/forms/submit
curl -i -X POST \
https://api-gateway.agenthq.withlantern.com/v1/forms/submit \
-H 'Authorization: Bearer <YOUR_ApiToken_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"form_name": "string",
"form_payload": {}
}'Success Response
Response
{ "tenant_id": 1, "submission_id": "123e4567-e89b-12d3-a456-426614174000", "submission_timestamp": "2024-01-15T10:30:00Z", "form_name": "Lead Generation Form", "form_payload": { "name": "John Doe", "email": "john.doe@example.com", "company": "Acme Corp", "phone": "+1-555-123-4567", "title": "VP Sales" } }