Security

What Zoie does and doesn't verify on each webhook surface: the X-Zoie-Webhook-Secret header and HTTPS and public-address rules on outgoing calls, the secret URL on the workflow trigger, the unauthenticated website lead webhook, and the rate limits on both inbound endpoints.

Each webhook surface is protected differently, and two of them rely on a secret you have to look after yourself. Read the section for every surface you use.

SurfaceWhat Zoie checksWhat it doesn’t checkWhat you should do
Send webhook (outgoing)The URL is https:// and resolves only to public addresses. Redirects aren’t followed.The body isn’t signed, and there’s no timestamp.Set a Secret and reject calls without it.
Webhook trigger (incoming)The token in the URL.No signature, no IP allowlist, no API key.Treat the URL as a password, and Rotate it if it leaks.
Website lead webhook (incoming)Nothing about the caller. The business is found from a value in the body.No credential of any kind.Don’t build anything new on it.

Outgoing: Send webhook

The secret header

If the step’s Secret is filled in, every call carries it in the X-Zoie-Webhook-Secret header, exactly as typed. It’s a shared password, not a signature: Zoie doesn’t sign the body or add a timestamp, so the header proves the caller knows the secret but not that the body is unchanged. TLS protects both in transit.

On your side:

  • Compare in constant time, and reject a missing or wrong header with 401 before you do anything else. See Examples.
  • Use a long random value, for example 32 random bytes encoded as hex. Don’t reuse a password.
  • Keep it out of the URL. That’s why it travels in a header: query strings end up in access logs.

To rotate without dropping calls, make your endpoint accept both the old and the new secret, change the Secret on the step and publish, then remove the old secret from your endpoint.

Where Zoie will send

Zoie checks the URL twice. At publish, it must start with https://. Before every call, Zoie resolves the host and refuses to send if the name, or any address it resolves to, is private or local:

RefusedExamples
Local nameslocalhost, and names ending in .localhost, .local, .internal or .home.arpa
Private and shared ranges10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10
Loopback and link-local127.0.0.0/8, 169.254.0.0/16 (including cloud metadata addresses), ::1, IPv6 link-local fe80: addresses
Other non-public addresses0.0.0.0/8, multicast and reserved ranges, IPv6 unique-local fc00::/7, and IPv4-mapped forms of any of these

A refused URL fails the step with Webhook URL must point at a public address. Other failures read Webhook URL must start with https://, Webhook URL is not a valid URL or Could not resolve followed by the host. A redirect response isn’t followed, so an endpoint can’t bounce the call to an internal address.

Your endpoint needs a certificate that public clients trust: a self-signed certificate makes the call fail. Zoie doesn’t publish a fixed list of source IP addresses, so check the secret header rather than allowlisting IPs.

Incoming: workflow Webhook trigger

The URL is the credential

The trigger URL ends in a random token: wf_ followed by 48 hex characters. There is no signing option, API key or IP restriction on this endpoint. Anyone who has the URL can create leads and start the workflow, including any messages it sends. As the builder puts it, “Anyone with the URL can add leads, so treat it like a password — rotate it if it leaks.”

  • Call it from a server or an automation tool. Never put the URL in a web page, browser JavaScript, a mobile app or a public repository.
  • Store it like a secret, for example in your tool’s secret store or an environment variable.
  • Rotate it with Rotate in the trigger’s settings if it might have leaked. The old URL stops working straight away, and then answers 404 like any unknown token, so update every sender.
  • Mind what the workflow does next. A leaked URL on a workflow that texts each new lead lets anyone send texts from your number. Watch the Executions tab for runs you don’t recognise.

Zoie answers an unknown, rotated or deleted token with the same 404 and { "message": "Not found" }, so the response doesn’t reveal whether a workflow exists.

What’s stored

The most recent request body is saved on the workflow as the builder’s sample, visible to anyone who can edit the workflow, even when the workflow isn’t live. Don’t send data you wouldn’t store in Zoie, such as passwords or card numbers. Bodies over 64 KB are refused with 413.

Incoming: website lead webhook

POST /api/v1/auth/form-leads-webhook has no authentication. It takes no API key and verifies no signature or source address. Zoie picks the business from the website_user_name value in the body. Anyone who knows that value can create leads for your business, and each lead can start AI outreach and team notifications.

What limits abuse today:

  • the rate limit per source IP address,
  • the business’s blocked contacts, checked against the phone number and ip_address in the body,
  • duplicate-lead handling, if it’s switched on, which flags repeated submissions.

If you depend on this endpoint, send to it only from your server, keep website_user_name out of anything a browser can read, and plan a move to the Forms API, which authenticates with a per-form key, or to a workflow Webhook trigger. If you see leads you didn’t expect, block the numbers or IP addresses in Zoie and contact Zoie support.

Rate limits

LimitDefault
Workflow Webhook trigger and website lead webhook30 requests per 15 minutes per source IP address
Any request to the Zoie API600 requests per minute per source IP address

Responses carry RateLimit and RateLimit-Policy headers, for example RateLimit: limit=30, remaining=29, reset=900. Over the limit, Zoie answers 429 with a Retry-After header in seconds and this body:

{
  "success": false,
  "error": "Too many requests",
  "message": "Too many requests, please try again later.",
  "limit": "public-lead",
  "retryAfter": 840
}

A sender that relays many leads from one server can reach 30 requests in 15 minutes quickly. Queue requests, wait for Retry-After on a 429, and contact Zoie support if your volume needs more. More on the headers in Rate limits.

A checklist for your receiving endpoint

  • Serve it over HTTPS with a publicly trusted certificate.
  • Check X-Zoie-Webhook-Secret in constant time before parsing anything.
  • Answer within 10 seconds. Store the call, return 200, then do the slow work in the background.
  • Make the handler idempotent. The same lead can arrive more than once, and Retry failed step sends a step again.
  • Treat the body as data to look up, not as instructions. If you need more about a lead, fetch it by lead.id through the MCP server.