Integrations
API reference
Complete reference of the nodenly. One leads API (v1): authentication, fields, answers, errors, limits, idempotency and versions.
Endpoint
POST https://www.nodenly.com/api/v1/leadsAuthentication
Send your key in one of these ways:
- Header
Authorization: Bearer <key>(recommended) - Header
X-Api-Key: <key> - Field
api_keyin a form body (for plain HTML forms)
| Key | Accepted |
|---|---|
Public pk_live_… | Only from browsers on your authorized domains (the request's Origin) |
Secret sk_live_… | Only without an Origin (servers). Refused from browsers |
Body
application/json, application/x-www-form-urlencoded or multipart/form-data, up to 32 KB.
| Field | Type | |
|---|---|---|
name | text, 1–120 | Required |
email | email or phone is required. Used to find an existing client | |
phone | text, up to 40 | |
company | text, up to 120 | |
message | text, up to 5000 | |
locale | en or pt | Language of what the client will receive. Default: Accept-Language |
page_url | http(s) address | Default: the Referer header |
utm_source, utm_medium, utm_campaign, utm_term, utm_content | text, up to 200 | Campaign |
fields | object of text values | Up to 30 entries, names up to 60 and values up to 2000 characters. Shown in the client's page |
| any other field | text | Added to fields |
_gotcha | text | Spam trap: when filled, nothing is stored and the answer is 202 |
_redirect | address | Forms only: answer with 303 to this page (same website as the form) |
Headers
| Header | |
|---|---|
Idempotency-Key | Up to 100 characters. The same key with the same API key within 24 hours returns the first answer and stores nothing new |
Accept-Language | Used for locale when it is not sent |
Answers
| Status | Body | When |
|---|---|---|
201 | { "ok": true, "id": "<submission id>" } | Stored |
200 | { "ok": true, "id": "…" } + Idempotent-Replayed: true | Repeated Idempotency-Key |
202 | { "ok": true } | Spam trap filled: nothing stored |
303 | — | Form with _redirect |
Errors
Every error has the same shape:
{ "error": { "code": "invalid_field", "message": "email is not a valid address", "field": "email" } }| Status | code | Meaning |
|---|---|---|
| 400 | invalid_body | Not JSON nor a form |
| 401 | missing_key | No key sent |
| 401 | invalid_key | The key does not exist |
| 401 | revoked_key | The key was revoked |
| 403 | secret_key_in_browser | Secret key used from a browser |
| 403 | origin_required | Public key used without a website (Origin) |
| 403 | origin_not_allowed | The website is not an authorized domain |
| 403 | org_inactive | The company's account is not active |
| 403 | feature_not_in_plan | The company's plan does not include integrations |
| 413 | payload_too_large | More than 32 KB |
| 422 | invalid_field | A field is missing or invalid (field says which) |
| 429 | rate_limited | Too many requests: wait Retry-After seconds |
| 500 | internal_error | Our side: we are told automatically |
Limits
60 requests per minute per key, and 10 per minute per visitor (IP) with public keys.
What happens on the panel
- Same
emailin the company → the existing client gets a new request (an archived client comes back to the lists). Otherwise a new client is created, with the website as its source. - The request is stored with its page, campaign and fields, added to the client's history, and the owners and admins are told by email.
CORS
Browsers may call the API from any page; the key and the authorized domains decide what is accepted. Preflight requests (OPTIONS) are answered automatically.
Newsletter
POST /api/v1/newsletter with { "email": "...", "name": "...", "locale": "en", "source": "footer" } (only email is required). Takes public keys (from the authorized domains, also as "key" in the body) and secret keys. The person gets an email to confirm; the answer is always 202, whether the email is new, waiting or already subscribed, so it never reveals who is on the list. Limits: 120 per minute per key and 10 per minute per visitor with public keys. See Clients and leads.
Versions
The version is in the address (/v1). Within v1 only compatible changes are made (for example new optional fields). A change that could break integrations goes into /v2, announced in advance, with v1 kept working.
OpenAPI
The machine-readable description is at /api/v1/openapi.json.