Live Myra status: All systems operational

External funnel API

Post leads from any external funnel or landing page straight into your Myra pipeline with one JSON request.

The External funnel API lets any funnel, landing page builder or server post a lead straight into this client account. Each new lead becomes a contact in your pipeline, just like a lead from a Myra form.

It needs no API key: the request names your client account by its Client ID. For reading and changing data with a key, use the REST API instead.

Find your details

Go to Settings → Integrations and open External funnel API under Forms & lead capture. The card shows:

  • API Endpoint: the address to post to (https://myra-app.ai/api/public/leads).
  • Example Request (POST JSON): a ready-made example with your Client ID filled in. Press Copy Example.
  • Client ID: your client account's id.

Send a lead

Send a POST with a JSON body to the endpoint:

{
  "client_id": "<your Client ID>",
  "name": "Jane Smith",
  "email": "jane@example.com",
  "phone": "+447123456789",
  "source": "website_funnel",
  "form_data": { "enquiry_type": "Quote request", "location": "New York" }
}
Field Required What it does
client_id Yes Your Client ID from the card.
name Yes The contact's name.
email No The contact's email. An invalid email is dropped, not refused.
phone No The contact's phone. Use international format (for example +44…).
source No Shown as the contact's source. Defaults to external_funnel.
notes No Notes for the contact (up to 2,000 characters).
form_data No Any other answers, as text pairs. They are kept on the contact and summarized in its notes.
value No A deal value.
business_name, website No Saved on the contact.

A successful request answers 201 with { "success": true, "lead_id": "…" }.

What happens to the lead

  • The contact goes into your pipeline (chosen by the phone number's country, otherwise the client account's default pipeline), in its first stage.
  • A new contact starts your New lead automations and alerts, like a lead from a Myra form. A note records "Submitted via external funnel" with the source and time.
  • For Meta Conversions API matching, also send the lead's browser details when you have them: client_ip_address, client_user_agent, event_source_url, fbp, fbc or fbclid. Your server's own IP and user agent are never used for the lead.

Duplicates

Your duplicate rule in Settings → Contacts applies. When the person is already a contact and the rule merges or blocks duplicates, no second contact is made: the answer includes "duplicate": true and the existing contact's id. When the rule only warns, the new contact is still created and linked to the likely duplicate.

Troubleshooting

  • 400 "Validation failed". A required field is missing (client_id or name) or a field is the wrong type. The answer lists which.
  • 400 "A contact needs at least a name, email or phone". Send at least one way to reach them.
  • 400 with a field name. The name, email or phone is in a format Myra cannot accept; the answer names the field.
  • 429. Too many requests in a short time. Wait and try again.
  • 500 "Internal error". Try again shortly.

See also: Integrations, Webhooks, REST API.