Hermetica: email lists and triggers
Forward Lucida events to Hermeticor in real time and sync cohorts to Hermeticor lists with the Hermeticor destination: no fan-out code in your app.
Hermetica is an email platform. Lucida's destination for it is named Hermeticor in the connector catalogue (catalog id hermeticor).
Five-line setup
In Hermeticor, mint an app-bound key from the preset
product-server(GET /v1/api-keys/presets; orevents:writeplusprofiles:write, addingprofiles:readandlists:writefor cohort sync), bound to your product's app so events are stamped with that app and app-filtered webhooks work.In Lucida, add the Hermeticor destination (Connectors, Destinations) with that key as the credential
api_key.base_urldefaults tohttps://hermeticor.com.List the event names to forward in the destination's
eventssetting (for example["signed_up","plan_upgraded"]). Without it, every non-$event of an identified person is forwarded.Optional: set
app(your Hermeticor app slug) so journeys can require it, andlist_idplusconsent_category(defaultmarketing) for cohort sync.Remove the forwarding call for those event names from your app code.
One path per event name
If you use Hermeticor's Lucida connector (Webhook destination), don't also turn this on: each event would be recorded twice. Hermeticor recommends the connector.
For each event name, pick one path and only one:
Lucida forwards it: the name is in the destination's
eventslist, and your product never calls Hermeticor'sPOST /v1/eventsfor it.Your product sends it: your server calls Hermeticor directly, and the name is left out of the destination's
eventslist.
If a few events must go both ways during a migration, give them the same dedupeKey on both sides (see below), and Hermeticor keeps one.
What it does
Events in real time: each event is sent to
POST /v1/events/batchas{name, occurredAt, properties, dedupeKey, profile}.dedupeKeyis the event's owndedupe_keyproperty when it has one (send the same key you use when calling Hermeticor yourself), elselucida-<event uuid>. A retry, a replay or the same key from your product is stored once by Hermeticor (it answersduplicates), never a second trigger.Identity: person ids always go inside
profile(Hermeticor answers400to a top-levelexternalId):profile.externalIdis the Lucidadistinct_id;profile.emailis added when the event or the person has anemail(lowercased and trimmed; it is taken out ofproperties).Consent: nothing is forwarded for a person who denied analytics. A cohort join is only sent with the person's recorded consent for
consent_category, and it carries a consent assertion.Cohorts to lists: joins go to
POST /v1/lists/{id}/members/batchas subscribed members; leaves look the people up byexternalIdand remove them from the list.Errors:
429(withRetry-After) and5xxretry with backoff. Items Hermeticor rejects in a200answer (rejected[]for events,errors[]for members) are logged on the destination and not retried; any other4xxis permanent.Health: the destination's page shows the last successful delivery, the error rate and the delivery log, like every other destination.
Engagement back: see the next section.
Field names follow Hermeticor's published API (events, lists and profile lookup). The full settings list is in the developer guide.
Engagement back
Delivery and engagement come back as hermeticor_message_<status or kind> events: hermeticor_message_delivered, _bounced, _open, _click, _reply, _unsubscribe and so on.
In Lucida, create a webhook source with preset
hermeticorand the modehermetica:
curl -X POST https://<your-lucida>/v1/projects/<project-id>/webhook-sources \
-H "Authorization: Bearer <token>" -H "Content-Type: application/json" \
-d '{"name":"Hermeticor","mapping":{"preset":"hermeticor"},"auth":{"mode":"hermetica","secret":"<signing secret>"}}'In Hermeticor, create a webhook endpoint (
POST /v1/webhooks/endpoints) with the URLhttps://<capture-host><path>from the answer and the topicsmessage.statusandmessage.activity. Hermeticor shows the signing secret once; use it as thesecretabove (or rotate it and update Lucida).Deliveries are verified with Hermeticor's
Hermetica-Signature: t=<unix>,v1=<hex>header (HMAC-SHA256 of<t>.<body>, five minutes of skew). The secret is stored envelope-encrypted.
What appears:
message.status(thestatusfield) andmessage.activity(thekind: open, click, reply, unsubscribe). Opens and clicks Hermeticor marksisMachine(scanners, prefetch) are skipped. Other topics are acknowledged and ignored.Properties:
hermeticor_job_id,hermeticor_profile_id,channel,reason,source_kind,source_id,variant_key,connection_id,tags. The address is never copied; there is noemailproperty.The person is the Lucida id:
data.externalIdwhen Hermeticor includes it, else the message metadata (lc_distinct_id,distinct_id,externalIdorexternal_id, first present). Without either, the event is kept as a personless event underhermeticor:<profileId>(no person is created), so it will not join the person's funnels.Redelivery and retries keep the same event uuid. A status counts once per message; each open or click is its own event (its time is part of the identity).