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.

Embed
Preview of the card
<a href="https://lucidace.com/help/hermetica"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/61095a5d-6e2c-42de-82da-e43e13784868/social-card.svg?v=3e7ae33eec8b" alt="Hermetica: email lists and triggers" width="600" height="315"></a>

Hermetica is an email platform. Lucida's destination for it is named Hermeticor in the connector catalogue (catalog id hermeticor).

Five-line setup

  1. In Hermeticor, mint an app-bound key from the preset product-server (GET /v1/api-keys/presets; or events:write plus profiles:write, adding profiles:read and lists:write for cohort sync), bound to your product's app so events are stamped with that app and app-filtered webhooks work.

  2. In Lucida, add the Hermeticor destination (Connectors, Destinations) with that key as the credential api_key. base_url defaults to https://hermeticor.com.

  3. List the event names to forward in the destination's events setting (for example ["signed_up","plan_upgraded"]). Without it, every non-$ event of an identified person is forwarded.

  4. Optional: set app (your Hermeticor app slug) so journeys can require it, and list_id plus consent_category (default marketing) for cohort sync.

  5. 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 events list, and your product never calls Hermeticor's POST /v1/events for it.

  • Your product sends it: your server calls Hermeticor directly, and the name is left out of the destination's events list.

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/batch as {name, occurredAt, properties, dedupeKey, profile}. dedupeKey is the event's own dedupe_key property when it has one (send the same key you use when calling Hermeticor yourself), else lucida-<event uuid>. A retry, a replay or the same key from your product is stored once by Hermeticor (it answers duplicates), never a second trigger.

  • Identity: person ids always go inside profile (Hermeticor answers 400 to a top-level externalId): profile.externalId is the Lucida distinct_id; profile.email is added when the event or the person has an email (lowercased and trimmed; it is taken out of properties).

  • 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/batch as subscribed members; leaves look the people up by externalId and remove them from the list.

  • Errors: 429 (with Retry-After) and 5xx retry with backoff. Items Hermeticor rejects in a 200 answer (rejected[] for events, errors[] for members) are logged on the destination and not retried; any other 4xx is 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.

  1. In Lucida, create a webhook source with preset hermeticor and the mode hermetica:

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>"}}'
  1. In Hermeticor, create a webhook endpoint (POST /v1/webhooks/endpoints) with the URL https://<capture-host><path> from the answer and the topics message.status and message.activity. Hermeticor shows the signing secret once; use it as the secret above (or rotate it and update Lucida).

  2. 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 (the status field) and message.activity (the kind: open, click, reply, unsubscribe). Opens and clicks Hermeticor marks isMachine (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 no email property.

  • The person is the Lucida id: data.externalId when Hermeticor includes it, else the message metadata (lc_distinct_id, distinct_id, externalId or external_id, first present). Without either, the event is kept as a personless event under hermeticor:<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).

Updated