DeepFuse

Connect

Events API

Any website, form or system can send events to your workspace. Each event goes through your rules, and the decision appears in Rules → Activity.

1. Get your key

In the panel, open Connect and click Make a key. The key starts with dfk_ and is shown once: copy it somewhere safe. DeepFuse keeps only a fingerprint of it, so nobody can read it back. If it leaks, make a new one; the old key stops working at once. Only the owner or an admin can make a key.

2. Send an event

curl -X POST https://deepfuse.ai/api/kernel/events \
  -H "Authorization: Bearer YOUR_DEEPFUSE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source":"site","type":"lead.received","customer_ref":"+201000000000","payload":{"name":"Ahmed","service":"repair"},"dedupe_key":"form:1001"}'
FieldRequiredMeaning
sourceYesWhere it came from: site, app, pos…
typeYesLowercase noun.verb: lead.received, order.created, order.paid, booking.created, message.in…
payloadNoEvery useful detail: name, phone, product, amount, city… Rules read it as payload.<field>.
customer_refNoThe customer's phone or email.
subjectNoThe record it is about: { "kind": "order", "id": "1234" }.
occurred_atNoWhen it happened (ISO 8601). Defaults to now.
dedupe_keyRecommendedA unique, stable id. The same key twice is processed once, so retries are safe.

To send several at once: { "events": [ ... ] } (up to 50).

3. Tools that can't set headers

Form plugins and no-code tools can put the key in the URL instead. Any body format works (JSON or a normal form post): every field is kept as the payload.

https://deepfuse.ai/api/kernel/events?key=YOUR_DEEPFUSE_KEY&type=lead.received&source=wordpress

If you leave out type, the event is form.submitted. WooCommerce webhooks are understood as they are: the webhook topic (order.created, order.updated…) becomes the event type. See WordPress & WooCommerce.

Responses

CodeMeaning
200{ ok: true, results: [{ duplicate, eventId, decisions }] }
400The event is not valid (for example a type that isn't noun.verb).
401Missing or wrong key.

Good practice

  • Send from your server. Never put the key in browser JavaScript or a public repository.
  • Don't make your visitor wait: send after saving, with a short timeout, and retry in the background.
  • Always send a dedupe_key.

Building with an AI coding agent? Use the ready prompt.