Docs

Integrations

Send every lead of your Magnetly tools where you work: Klaviyo, Brevo, Mailchimp, Mailjet, Omnisend, Google Sheets, a webhook, Zapier, n8n, or your own code with the public API.

On this page
  1. Where leads go
  2. Email marketing tools
  3. Consent and subscription
  4. Answers and the result
  5. Google Sheets
  6. Webhook
  7. Zapier, Make and n8n
  8. API keys and the public API
  9. Follow your deliveries

Where leads go

Each time a visitor completes one of your tools, Magnetly records a lead: their contact details, their answers and the result they got. Every lead stays in the tool's Analytics, where you can open it or export it as CSV. Integrations also send it, within seconds, to the tools you already use.

  1. Open Settings > Integrations in your workspace.
  2. Under Add an integration, pick a card in Email marketing, Spreadsheets or Automation, or search by name.
  3. Connect it, then choose Leads from: All tools, including those you create later, or a single tool.
  4. Save. The destination appears under Connected, with where it sends, which tools, and its status.

From a tool, Settings > Integrations lists the destinations that receive its leads, and Add for this tool connects a new one for this tool only. Integrations are available on every plan; a card that says Coming soon cannot be connected yet.

Settings > Integrations: a connected webhook under Connected, then the cards to add, by category.
Settings > Integrations.

Email marketing tools

ToolHow you connectWhere contacts go
KlaviyoConnect with Klaviyo (sign in), or Use an API key insteadA list
BrevoAn API keyA list
MailchimpSign in to MailchimpAn audience
MailjetYour API key and secret keyA list
OmnisendYour API key, or Sign in with Omnisend insteadA tag, magnetly by default (Omnisend has no lists)

The form of each tool shows its own steps. Signing in opens the tool's window, where you allow access. With a key, the form tells you where to create it and which access to give:

  • Klaviyo: Create Private API Key, with Read Access to Accounts and Read/Write Access to Events, Lists, Profiles and Subscriptions. The form's link opens Klaviyo with this access already selected.
  • Brevo: Settings > SMTP & API > API keys, a Restricted key with Contacts on All, Events on Read/write and Account on Read.
  • Mailjet: Account settings > API key management, your API key and your secret key.
  • Omnisend: Store settings > API keys, a key that allows Contacts and Events.

Your key goes from your browser to the secure service that holds Magnetly's connections, where it is stored encrypted. Magnetly checks it right away: a refused key is never saved.

Once connected, the same form sets the list (or Omnisend's tag), the Contact fields (Brevo, Mailchimp and Mailjet: where first name, last name, phone and LinkedIn go in your account, detected for you and changeable), Leads from, the subscription and the answers sent.

The Klaviyo window with its API key field and the steps to create the key.
Connecting Klaviyo with an API key.

Answers and the result

Answers chooses what goes with each contact: Send all answers, Pick answers (for a single tool: choose them and rename them) or Don't send answers. Each tool keeps them its own way:

  • Klaviyo: each lead also sends a Magnetly submitted event with the answers and the result. Your emails can show it, for instance with {{ event.products }}.
  • Brevo: keeps only attributes that already exist in your account, like SKIN_TYPE. Each lead also sends a magnetly_submitted event with the result, for your automations.
  • Mailchimp: the answers and the result appear in each contact's activity, and the answers you pick also become audience fields. To email the recommendation, start an automation on the magnetly_submitted event and write *|EVENT:product_1_name|*.
  • Mailjet: keeps only contact properties that already exist in your account. Add a text property named magnetly_result to receive the result.
  • Omnisend: each lead also sends a magnetly_submitted custom event with the result, for your automations.

The result is sent as the visitor got it: every field and every recommended product, with its link.

Google Sheets

  1. Open the Google Sheets card. Copy the address it shows.
  2. In Google Sheets, share your sheet with that address, as Editor.
  3. Paste the Sheet link in the form and select Check.
  4. Choose the Tab, Leads from and a Name, then save.

Each lead becomes a new row: the date, email, first name, last name, phone, consent, tool and lead id, then the answers, one column per field of the result, the recommended products, the cart link, the result as text, and where the visitor came from. Magnetly writes the header row at the first lead, and again when the columns change.

If the sheet is no longer shared, or its tab was deleted, the destination pauses. Fix the sheet, then save the destination again to resume it.

Webhook

  1. Open the Webhook card: give a Name, your URL (https, a public address, no user name or password in it), Leads from, and the parts to send: Contact, Answers, Result, Recommended products, Source and UTM.
  2. Select Create webhook. Copy the Signing secret: Reveal shows it again later, and Rotate replaces it.
  3. Select Send test: a sample lead is posted to your URL, and the form shows the answer.

Each lead is a POST of JSON, signed after Standard Webhooks:

A delivery
POST /your/endpoint HTTP/1.1
Content-Type: application/json
webhook-id: dlv_…
webhook-timestamp: 1796113924
webhook-signature: v1,…

{"type":"lead.created","timestamp":"2026-12-01T10:12:05.120Z","data":{ … }}
  • data is the lead, with the parts you ticked.
  • Verify webhook-signature on the raw body with your signing secret, and refuse a timestamp more than 5 minutes away. The standardwebhooks libraries do it for you.
  • webhook-id stays the same at every retry: use it to ignore a delivery you already handled.
  • Answer with any 2xx within 10 seconds. Redirects are not followed.
  • A timeout, a network error, 408, 429 or 5xx is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h (8 attempts in all), later if Retry-After asks for it, up to 24 h. Then the delivery is marked failed.
  • 401 or 403 pauses the webhook until you turn it back on. Any other 4xx fails that delivery without retry.

The payload and the signature are described in full in the public API reference.

The webhook window after creation: name, URL, Leads from, the parts sent, the hidden signing secret with Reveal and Rotate, and Send test.
A webhook, once created.

Zapier, Make and n8n

Zapier

Open the Zapier card and add Magnetly in Zapier. When Zapier asks, sign in to Magnetly, pick the workspace and select Allow: no API key needed. Each Zap you turn on appears under Connected as Zapier hook, which you can turn off or delete there (you edit the Zap in Zapier), and Disconnect ends the connection with its hooks.

Make

Magnetly's card for Make says Coming soon for now.

n8n

  1. Install the community node n8n-nodes-magnetly in n8n.
  2. On the n8n card, select Create key, then copy the key: it is shown only once.
  3. In n8n, create a Magnetly API credential and paste the key. Leave the Base URL as is unless Magnetly gave you another one.

The Magnetly Trigger node starts a workflow on each new lead; the Magnetly node lists leads and tools.

API keys and the public API

Your own code reads leads with the public API v1. Create a key in Settings > Integrations > Developers, with Create key: it starts with mgk_ and is shown only once, so copy it then. Create one key per app, so that revoking one leaves the others working. Revoke stops a key at once and deletes the hooks it created; the leads stay in Magnetly.

Base URL
https://v2.magnetly.co/api/v1
EndpointWhat it does
GET /meThe workspace the key reaches
GET /toolsThe workspace's tools
GET /leadsLeads, newest first, 100 per page at most, filtered by tool if you like
POST /hooksSubscribes a URL to each new lead, signed like a webhook
DELETE /hooks/{id}Unsubscribes it
  • Send the key as Authorization: Bearer mgk_…, from a server only: the API answers no browser request from another site.
  • A key makes up to 120 requests a minute.
  • The API reference documents every parameter and answer, from its OpenAPI document.

Follow your deliveries

Under Connected, each destination shows Active, Paused or Needs attention. Its switch turns it off or back on. Its menu offers Edit, Activity and Delete.

  • Activity lists each delivery with its lead, tool, status (Queued, Sending, Retrying, Delivered, Failed or Skipped), attempts, next attempt and last HTTP status. Retry sends a failed or skipped delivery again.
  • Reconnect: when an email tool refuses its key or access, the destination pauses. Open it and select Reconnect; the leads that waited are sent then.
  • Paused leads are kept, and leave as soon as you turn the destination back on.