storefront-site-api
Contact & Leads API
Submit a lead
Posts a contact-form inquiry. The tenant is resolved from the subdomain; the API key must authorize that tenant.
POST https://app.orbiocloud.com/api/public/leads?subdomain=your-subdomain
Headers: X-API-Key: your_api_key, Content-Type: application/jsonBody
first_name - required
last_name - required
email - required, validated
message - required
phone - optional, validated when present
company, subject, form_type - optional
utm_source, utm_medium, utm_campaign, referrer, source_page - optional tracking
curl -X POST 'https://app.orbiocloud.com/api/public/leads?subdomain=your-subdomain' \
-H 'X-API-Key: your_api_key' -H 'Content-Type: application/json' \
-d '{"first_name":"Jane","last_name":"Doe","email":"[email protected]","message":"Hi!"}'Responses
200 OK
{ "success": true, "data": { "id": "...", "message": "Your inquiry has been submitted successfully. We will contact you shortly." } }400 Bad Request
{ "error": "message is required" }Submissions land in the tenant's contacts/CRM and trigger a notification email to the tenant. View them in the Website hub under Contacts.