Developers

Send client emails and inquiries to PortKnot.

Most firms only need email forwarding. These two webhooks are for web forms and tools like Zapier or Make. Each one is scoped to one workspace and safe to retry.

New inquiries (optional)

  1. Open New Inquiries > All Inquiries and choose Connect lead source.
  2. Create a source and copy its token. The token is shown once.
  3. Post JSON from your form or automation.
curl -X POST https://portknot.com/api/v1/agency/leads/webhook   -H "X-PortKnot-Source-Token: pkl_..."   -H "Content-Type: application/json"   -d '{"first_name":"Ada","last_name":"King","email":"ada@example.com",
       "phone":"415-555-0132","interest":"tax return",
       "email_consent":true,"submission_id":"form-123"}'
FieldNotes
email or phoneAt least one is required. Phones are normalised to E.164 (US numbers by default).
first_name, last_nameOr name / full_name.
interestWhat the person is asking about, as free text. Insurance agencies can use insurance_interest (auto, home, renters, life, health, medicare, commercial, umbrella or other).
email_consent, sms_consentExplicit consent only. Missing means "not recorded", never "yes". SMS and email follow-up need recorded consent.
submission_idOptional idempotency key. Retries with the same key never create a second lead.

One lead, an array, or {"leads": [...]}. Up to 50 leads and 100 KB per request. The same person asking again about the same thing within 30 days is attached to the open inquiry.

HTTP 202
{ "ok": true, "accepted": 1, "duplicates": 0, "rejected": 0 }

Client emails from a form or tool

The easy way is email forwarding: open Client Emails > Inbox and click Get my address. To post from a form or tool instead, click Use a form or Zapier instead (owners and admins) and post each message.

curl -X POST https://portknot.com/api/v1/agency/requests/inbound   -H "X-PortKnot-Source-Token: pkr_..."   -H "Content-Type: application/json"   -d '{"from":"client@example.com","subject":"ID card","text":"Please send my auto ID card","messageId":"abc-1"}'

Each request is classified, matched to an existing contact, and given a task. Routine requests get a draft reply for a person to approve. Request types marked "Goes to a person", such as urgent or sensitive emails, go to your team with no draft. messageId makes retries safe.

Status codes

StatusMeaning
202Accepted.
400Invalid JSON or too many leads.
401Token missing, wrong, rotated or disabled.
413Payload too large.
429Rate limited. Retry after a minute.