Docs menu

Partners & embedding

Partners and brokers

Integrate your software platform or brokerage with Kinro over authenticated MCP to submit client requests, attach documents, and receive live updates.

View as Markdown

Software platforms and commercial insurance brokers can integrate with Kinro programmatically through the hosted MCP endpoint at https://api.kinro.com/mcp using a partner bearer token.

Credentials and environments

Include your partner token in the Authorization: Bearer <token> header on every request to https://api.kinro.com/mcp.

  • Separate test and live tokens. Kinro issues separate tokens for testing and production. Test tokens only access test requests; live tokens only access live requests.
  • Keep partner tokens on your server. Never place a partner token in browser code or mobile apps. To launch an in-browser quote experience for a user, mint a short-lived customer token on your server and pass it to the embedded widget.

Opening or updating a client request

Call upsert_lead over POST /mcp to create a new insurance request or update an existing one with details you already have:

json
{
  "external_id": "acct_12345",
  "idempotency_key": "req_2026_11_25_001",
  "mint_customer_token": true,
  "data": {
    "business": { "name": "Oak Hill Lawn Care LLC" },
    "address": { "state": "TX", "zip": "78745" }
  }
}
  • external_id links updates from your system to the same client request.
  • idempotency_key identifies one operation on a client request. A replay of a completed operation returns the same lead and session. Reusing a recorded key for the same client request with different business data, consent or file contents returns a tool error (isError: true).
  • files lets you attach existing declarations pages, loss runs or certificates (see Documents). Send one upload attempt at a time. After an upload has failed, retry with the same external_id, idempotency_key and files. A client-side timeout alone leaves the server outcome unknown.
  • mint_customer_token: true returns a short-lived customer_token you can pass to embed.js so the customer picks up where your app left off.

Use the returned session_id with ask_kinro to continue the conversation and with get_kinro_messages to read replies and quotes.

Receiving live updates

Authenticated integrations can subscribe to real-time updates on GET /mcp with Accept: text/event-stream and Authorization: Bearer <token>:

  • Filter the stream to a single request with ?lead_id=<id> or ?session_id=<id>, or omit both to receive updates across your environment.
  • When reconnecting, send your last received event ID in the Last-Event-ID header to catch up on recent events. Use get_kinro_messages to read the current state if your cursor is no longer available or the stream signals that a resync is needed.
  • If a stream connection returns 429, honor the Retry-After header or use get_kinro_messages with wait: true. See Errors and limits.

Next steps