# Darwin > Darwin developer docs: the REST API, signed webhooks, the TypeScript and browser SDKs, the chat API and the MCP server for Claude, ChatGPT and Cursor. - [Darwin developer docs](https://docs.meetdarwin.ai/index.md): Build on Darwin: the REST API, signed webhooks, the TypeScript and browser SDKs, the chat API and the MCP server for Claude, ChatGPT and Cursor. On every plan, Free included. - [Quickstart](https://docs.meetdarwin.ai/quickstart.md): Make your first Darwin API call in five minutes: create a key, check it with GET /me, read the leads your chat captured, and get a signed webhook when a meeting is booked. curl, TypeScript and Python. - [Guides](https://docs.meetdarwin.ai/api-reference/recipes.md): Working examples for the Darwin API: post handoff requests to Slack with a webhook, sync new leads to a CRM with updated_since, export conversations to a data warehouse every night, give every prospect their own personal link, tell the rep when a prospect opens it, build a quote form from code, and… - [Send handoffs to Slack](https://docs.meetdarwin.ai/guides/slack-handoffs.md): Post to a Slack channel within seconds when a visitor asks the Darwin chat for a person: a complete webhook receiver in Node with signature checks and de-duplication. - [Sync leads to a CRM](https://docs.meetdarwin.ai/guides/crm-sync.md): Copy every contact Darwin captures into your CRM on a schedule with updated_since and cursor pagination, and write the CRM's id back as external_id. - [Export conversations to your warehouse nightly](https://docs.meetdarwin.ai/guides/warehouse-export.md): Export every Darwin conversation with its transcript and grading to BigQuery, Snowflake, Redshift or files each night, and the fields worth loading. - [Give every prospect their own personal link](https://docs.meetdarwin.ai/guides/personal-links.md): Make each prospect's own Darwin personal link with the API and store it on their CRM record, so any email or sequence can greet them by name. - [Tell the rep in Slack when a prospect opens their link](https://docs.meetdarwin.ai/guides/link-opened-alerts.md): Post to Slack the moment a prospect opens their Darwin personal link, with the personal_link.opened webhook. - [Create a quote form with the API](https://docs.meetdarwin.ai/guides/quote-form.md): Create a Darwin outcome form such as a quote request with the API, test it and switch it live, without opening the form builder. - [Run opening tests with your own AI assistant](https://docs.meetdarwin.ai/guides/opening-tests.md): Let Claude, ChatGPT, Cursor or your own code choose what to test on which page, write the openings and read the results, while Darwin scores every test. - [Darwin API](https://docs.meetdarwin.ai/api-reference/introduction.md): Use the Darwin API to read conversations, contacts, meetings and analytics, manage knowledge and the agent, and receive signed webhooks. Base URL, keys, scopes and versioning. - [Authentication and API keys](https://docs.meetdarwin.ai/api-reference/authentication.md): Create, scope, store and revoke Darwin API keys: dk_live_ and dk_test_ prefixes, every scope and what it unlocks, and where a secret key must never go. - [API errors](https://docs.meetdarwin.ai/api-reference/errors.md): Every Darwin API error code, what it means and what to do: the RFC 9457 problem document, HTTP statuses, request ids and which errors are safe to retry. - [Pagination and syncing](https://docs.meetdarwin.ai/api-reference/pagination.md): Page through Darwin API lists with limit, starting_after and next_cursor, and sync only what changed with updated_since and created_since. - [Retry writes safely with Idempotency-Key](https://docs.meetdarwin.ai/api-reference/idempotency.md): Send an Idempotency-Key header on Darwin API writes so a retried request after a timeout never creates a second contact, document or webhook endpoint. - [API rate limits](https://docs.meetdarwin.ai/api-reference/rate-limits.md): Darwin API rate limits per key per minute, the same on every plan (legacy plans keep theirs), the smaller budget for heavy calls, RateLimit headers and how to handle 429. - [Erase or export a person's data](https://docs.meetdarwin.ai/api-reference/privacy.md): Answer data subject requests with the Darwin API: export everything held about one person by email, or erase their contact, transcripts and booking details for good. What is removed and what is kept. - [The key making the request](https://docs.meetdarwin.ai/api-reference/workspace/the-key-making-the-request.md) - [The workspace, its plan and this period's credits and meetings](https://docs.meetdarwin.ai/api-reference/workspace/the-workspace-its-plan-and-this-periods-credits-and-meetings.md) - [List conversations](https://docs.meetdarwin.ai/api-reference/conversations/list-conversations.md): Requires the `conversations:read` scope. - [Retrieve a conversation](https://docs.meetdarwin.ai/api-reference/conversations/retrieve-a-conversation.md): Requires the `conversations:read` scope. - [List contacts](https://docs.meetdarwin.ai/api-reference/contacts/list-contacts.md): Requires the `contacts:read` scope. - [Create or update a contact by email](https://docs.meetdarwin.ai/api-reference/contacts/create-or-update-a-contact-by-email.md): Requires the `contacts:write` scope. - [Retrieve a contact](https://docs.meetdarwin.ai/api-reference/contacts/retrieve-a-contact.md): Requires the `contacts:read` scope. - [Update a contact](https://docs.meetdarwin.ai/api-reference/contacts/update-a-contact.md): Requires the `contacts:write` scope. - [Erase a contact and everything that names them](https://docs.meetdarwin.ai/api-reference/contacts/erase-a-contact-and-everything-that-names-them.md): Requires the `privacy:write` scope. - [List meetings booked from the chat](https://docs.meetdarwin.ai/api-reference/meetings/list-meetings-booked-from-the-chat.md): Requires the `meetings:read` scope. - [Retrieve a meeting](https://docs.meetdarwin.ai/api-reference/meetings/retrieve-a-meeting.md): Requires the `meetings:read` scope. - [List the agent's outcome forms, their answer keys and results](https://docs.meetdarwin.ai/api-reference/outcomes/list-the-agents-outcome-forms-their-answer-keys-and-results.md): Requires the `agent:read` scope. - [Create an outcome form](https://docs.meetdarwin.ai/api-reference/outcomes/create-an-outcome-form.md): Requires the `agent:write` scope. - [Retrieve an outcome form](https://docs.meetdarwin.ai/api-reference/outcomes/retrieve-an-outcome-form.md): Requires the `agent:read` scope. - [Change an outcome form, or switch it live or off](https://docs.meetdarwin.ai/api-reference/outcomes/change-an-outcome-form-or-switch-it-live-or-off.md): Requires the `agent:write` scope. - [Remove an outcome form](https://docs.meetdarwin.ai/api-reference/outcomes/remove-an-outcome-form.md): Requires the `agent:write` scope. - [List requests sent through outcome forms](https://docs.meetdarwin.ai/api-reference/outcomes/list-requests-sent-through-outcome-forms.md): Requires the `meetings:read` scope. - [Retrieve an outcome request](https://docs.meetdarwin.ai/api-reference/outcomes/retrieve-an-outcome-request.md): Requires the `meetings:read` scope. - [List greetings](https://docs.meetdarwin.ai/api-reference/greetings/list-greetings.md): Requires the `agent:read` scope. - [Create a greeting](https://docs.meetdarwin.ai/api-reference/greetings/create-a-greeting.md): Requires the `agent:write` scope. - [Retrieve a greeting](https://docs.meetdarwin.ai/api-reference/greetings/retrieve-a-greeting.md): Requires the `agent:read` scope. - [Change a greeting](https://docs.meetdarwin.ai/api-reference/greetings/change-a-greeting.md): Requires the `agent:write` scope. - [Archive a greeting](https://docs.meetdarwin.ai/api-reference/greetings/archive-a-greeting.md): Requires the `agent:write` scope. - [List personal links](https://docs.meetdarwin.ai/api-reference/personal-links/list-personal-links.md): Requires the `agent:read` scope. - [Create a personal link](https://docs.meetdarwin.ai/api-reference/personal-links/create-a-personal-link.md): Requires the `agent:write` scope. - [Retrieve a personal link](https://docs.meetdarwin.ai/api-reference/personal-links/retrieve-a-personal-link.md): Requires the `agent:read` scope. - [Change a personal link](https://docs.meetdarwin.ai/api-reference/personal-links/change-a-personal-link.md): Requires the `agent:write` scope. - [Delete a personal link](https://docs.meetdarwin.ai/api-reference/personal-links/delete-a-personal-link.md): Requires the `agent:write` scope. - [Make each person's own address for a link](https://docs.meetdarwin.ai/api-reference/personal-links/make-each-persons-own-address-for-a-link.md): Requires the `agent:read` scope. - [List greetings for personal links](https://docs.meetdarwin.ai/api-reference/personal-links/list-greetings-for-personal-links.md): Requires the `agent:read` scope. - [Create a greeting](https://docs.meetdarwin.ai/api-reference/personal-links/create-a-greeting.md): Requires the `agent:write` scope. - [Retrieve a greeting](https://docs.meetdarwin.ai/api-reference/personal-links/retrieve-a-greeting.md): Requires the `agent:read` scope. - [Change a greeting](https://docs.meetdarwin.ai/api-reference/personal-links/change-a-greeting.md): Requires the `agent:write` scope. - [Delete a greeting](https://docs.meetdarwin.ai/api-reference/personal-links/delete-a-greeting.md): Requires the `agent:write` scope. - [List visits from personal links](https://docs.meetdarwin.ai/api-reference/personal-links/list-visits-from-personal-links.md): Requires the `analytics:read` scope. - [Retrieve a visit from a personal link](https://docs.meetdarwin.ai/api-reference/personal-links/retrieve-a-visit-from-a-personal-link.md): Requires the `analytics:read` scope. - [Funnel, pages, sources and conversation quality](https://docs.meetdarwin.ai/api-reference/analytics/funnel-pages-sources-and-conversation-quality.md): Requires the `analytics:read` scope. - [List website pages the agent answers from](https://docs.meetdarwin.ai/api-reference/knowledge/list-website-pages-the-agent-answers-from.md): Requires the `knowledge:read` scope. - [Add website pages](https://docs.meetdarwin.ai/api-reference/knowledge/add-website-pages.md): Requires the `knowledge:write` scope. - [Retrieve a page](https://docs.meetdarwin.ai/api-reference/knowledge/retrieve-a-page.md): Requires the `knowledge:read` scope. - [Stop answering from a page](https://docs.meetdarwin.ai/api-reference/knowledge/stop-answering-from-a-page.md): Requires the `knowledge:write` scope. - [Read a page again now](https://docs.meetdarwin.ai/api-reference/knowledge/read-a-page-again-now.md): Requires the `knowledge:write` scope. - [List documents](https://docs.meetdarwin.ai/api-reference/knowledge/list-documents.md): Requires the `knowledge:read` scope. - [Add a document from text or Markdown](https://docs.meetdarwin.ai/api-reference/knowledge/add-a-document-from-text-or-markdown.md): Requires the `knowledge:write` scope. - [Retrieve a document with its text](https://docs.meetdarwin.ai/api-reference/knowledge/retrieve-a-document-with-its-text.md): Requires the `knowledge:read` scope. - [Replace a document's text](https://docs.meetdarwin.ai/api-reference/knowledge/replace-a-documents-text.md): Requires the `knowledge:write` scope. - [Delete a document](https://docs.meetdarwin.ai/api-reference/knowledge/delete-a-document.md): Requires the `knowledge:write` scope. - [The agent's settings](https://docs.meetdarwin.ai/api-reference/agent/the-agents-settings.md): Requires the `agent:read` scope. - [Change the agent's settings, or switch the chat on or off](https://docs.meetdarwin.ai/api-reference/agent/change-the-agents-settings-or-switch-the-chat-on-or-off.md): Requires the `agent:write` scope. - [How the chat looks](https://docs.meetdarwin.ai/api-reference/agent/how-the-chat-looks.md): Requires the `agent:read` scope. - [Change how the chat looks](https://docs.meetdarwin.ai/api-reference/agent/change-how-the-chat-looks.md): Requires the `agent:write` scope. - [List chat buttons](https://docs.meetdarwin.ai/api-reference/agent/list-chat-buttons.md): Requires the `agent:read` scope. - [Create a chat button](https://docs.meetdarwin.ai/api-reference/agent/create-a-chat-button.md): Requires the `agent:write` scope. - [Retrieve a chat button and its HTML](https://docs.meetdarwin.ai/api-reference/agent/retrieve-a-chat-button-and-its-html.md): Requires the `agent:read` scope. - [Update a chat button](https://docs.meetdarwin.ai/api-reference/agent/update-a-chat-button.md): Requires the `agent:write` scope. - [Delete a chat button](https://docs.meetdarwin.ai/api-reference/agent/delete-a-chat-button.md): Requires the `agent:write` scope. - [List opening tests with their results](https://docs.meetdarwin.ai/api-reference/experiments/list-opening-tests-with-their-results.md): Requires the `experiments:read` scope. - [Start a test with your own openings](https://docs.meetdarwin.ai/api-reference/experiments/start-a-test-with-your-own-openings.md): Requires the `experiments:write` scope. - [Retrieve a test with its results worked out now](https://docs.meetdarwin.ai/api-reference/experiments/retrieve-a-test-with-its-results-worked-out-now.md): Requires the `experiments:read` scope. - [Pause a test](https://docs.meetdarwin.ai/api-reference/experiments/pause-a-test.md): Requires the `experiments:write` scope. - [Resume a paused test](https://docs.meetdarwin.ai/api-reference/experiments/resume-a-paused-test.md): Requires the `experiments:write` scope. - [Stop a test](https://docs.meetdarwin.ai/api-reference/experiments/stop-a-test.md): Requires the `experiments:write` scope. - [Apply an opening as the winner](https://docs.meetdarwin.ai/api-reference/experiments/apply-an-opening-as-the-winner.md): Requires the `experiments:write` scope. - [Add your own opening to a test](https://docs.meetdarwin.ai/api-reference/experiments/add-your-own-opening-to-a-test.md): Requires the `experiments:write` scope. - [Change an opening's words](https://docs.meetdarwin.ai/api-reference/experiments/change-an-openings-words.md): Requires the `experiments:write` scope. - [Take an opening out of a test](https://docs.meetdarwin.ai/api-reference/experiments/take-an-opening-out-of-a-test.md): Requires the `experiments:write` scope. - [List pages with an opening of their own](https://docs.meetdarwin.ai/api-reference/experiments/list-pages-with-an-opening-of-their-own.md): Requires the `experiments:read` scope. - [Give a page or section its own opening](https://docs.meetdarwin.ai/api-reference/experiments/give-a-page-or-section-its-own-opening.md): Requires the `experiments:write` scope. - [What one page shows now, and why](https://docs.meetdarwin.ai/api-reference/experiments/what-one-page-shows-now-and-why.md): Requires the `experiments:read` scope. - [Retrieve a page's opening](https://docs.meetdarwin.ai/api-reference/experiments/retrieve-a-pages-opening.md): Requires the `experiments:read` scope. - [Put a page back on the site's opening](https://docs.meetdarwin.ai/api-reference/experiments/put-a-page-back-on-the-sites-opening.md): Requires the `experiments:write` scope. - [Erase everything held about a person](https://docs.meetdarwin.ai/api-reference/privacy/erase-everything-held-about-a-person.md): Requires the `privacy:write` scope. - [Export everything held about a person](https://docs.meetdarwin.ai/api-reference/privacy/export-everything-held-about-a-person.md): Requires the `privacy:write` scope. - [Webhooks](https://docs.meetdarwin.ai/api-reference/webhooks.md): Get Darwin events (lead captured, handoff requested, form request sent, meeting booked, conversation graded) posted to your URL, signed with Standard Webhooks. Events, payloads, verification, retries and redelivery. - [Webhook events and payloads](https://docs.meetdarwin.ai/api-reference/webhooks/events.md): Every Darwin webhook event type: lead.captured, handoff.requested, outcome.submitted, personal_link.opened, meeting.booked and the rest, when each fires and an example payload for each. - [Verify webhook signatures](https://docs.meetdarwin.ai/api-reference/webhooks/verify.md): Check that a webhook came from Darwin: Standard Webhooks HMAC-SHA256 signatures, the five-minute timestamp window, code for Node and Python, Svix and the TypeScript SDK, and rotating the signing secret. - [Webhook delivery and retries](https://docs.meetdarwin.ai/api-reference/webhooks/delivery.md): How Darwin delivers webhooks: answer 2xx within 10 seconds, handle duplicates and out-of-order events, the retry schedule over three days, switched-off endpoints, redelivery and catching up from the event log. - [List webhook endpoints](https://docs.meetdarwin.ai/api-reference/webhooks/list-webhook-endpoints.md): Requires the `webhooks:write` scope. - [Create a webhook endpoint](https://docs.meetdarwin.ai/api-reference/webhooks/create-a-webhook-endpoint.md): Requires the `webhooks:write` scope. - [Retrieve a webhook endpoint](https://docs.meetdarwin.ai/api-reference/webhooks/retrieve-a-webhook-endpoint.md): Requires the `webhooks:write` scope. - [Update a webhook endpoint](https://docs.meetdarwin.ai/api-reference/webhooks/update-a-webhook-endpoint.md): Requires the `webhooks:write` scope. - [Delete a webhook endpoint](https://docs.meetdarwin.ai/api-reference/webhooks/delete-a-webhook-endpoint.md): Requires the `webhooks:write` scope. - [Send a test event now](https://docs.meetdarwin.ai/api-reference/webhooks/send-a-test-event-now.md): Requires the `webhooks:write` scope. - [Rotate the signing secret](https://docs.meetdarwin.ai/api-reference/webhooks/rotate-the-signing-secret.md): Requires the `webhooks:write` scope. - [The endpoint's delivery log](https://docs.meetdarwin.ai/api-reference/webhooks/the-endpoints-delivery-log.md): Requires the `webhooks:write` scope. - [List events from the last 30 days](https://docs.meetdarwin.ai/api-reference/events/list-events-from-the-last-30-days.md): Requires the `events:read` scope. - [Retrieve an event](https://docs.meetdarwin.ai/api-reference/events/retrieve-an-event.md): Requires the `events:read` scope. - [Send an event to webhooks again](https://docs.meetdarwin.ai/api-reference/webhooks/send-an-event-to-webhooks-again.md): Requires the `webhooks:write` scope. - [TypeScript SDK](https://docs.meetdarwin.ai/sdks/typescript.md): Install @meetdarwin/api, the typed TypeScript client for the Darwin REST API: conversations, contacts, meetings, outcome forms, personal links, webhooks, knowledge, the agent and the chat API, with retries, idempotency and pagination built in. - [Pagination in the TypeScript SDK](https://docs.meetdarwin.ai/sdks/typescript/pagination.md): Page through Darwin API lists with @meetdarwin/api: await one page, iterate every item with for await, read whole pages, or collect an array with a ceiling, and sync only what changed. - [Errors and retries in the TypeScript SDK](https://docs.meetdarwin.ai/sdks/typescript/errors.md): Handle Darwin API errors in @meetdarwin/api: DarwinError and its classes by status, automatic retries on 429, 5xx and network errors, idempotency keys on every write, and cancelling a call. - [Verify webhooks with the TypeScript SDK](https://docs.meetdarwin.ai/sdks/typescript/webhooks.md): Verify Darwin webhook signatures with Darwin.webhooks.verify in @meetdarwin/api: Express and Next.js route handlers, typed event payloads, local testing with sign, and secret rotation. - [Stream chat replies with the TypeScript SDK](https://docs.meetdarwin.ai/sdks/typescript/chat.md): Talk to your Darwin agent from your own app with @meetdarwin/api: create a chat session, send a message and wait for the reply, or stream it with sendStream and textDeltas. - [Browser SDK](https://docs.meetdarwin.ai/api-reference/browser-sdk.md): Control Darwin's chat from your website's code: open, close, hide and ask; identify signed-in visitors with a signed userHash; pass context; and listen for leads and booked meetings to fire analytics conversions. - [Chat API](https://docs.meetdarwin.ai/api-reference/chat-api.md): Talk to your Darwin agent from your own app, Slack, WhatsApp or voice bot: create a chat session, send messages, stream replies and act on booking offers and handoffs. Monthly allowance by plan. - [Start a conversation with the agent](https://docs.meetdarwin.ai/api-reference/chat/start-a-conversation-with-the-agent.md): Requires the `chat:write` scope. - [Retrieve a chat session and its transcript](https://docs.meetdarwin.ai/api-reference/chat/retrieve-a-chat-session-and-its-transcript.md): Requires the `chat:write` scope. - [Send the visitor's message and get the agent's reply](https://docs.meetdarwin.ai/api-reference/chat/send-the-visitors-message-and-get-the-agents-reply.md): Requires the `chat:write` scope. - [Connect Claude, ChatGPT or Cursor (MCP)](https://docs.meetdarwin.ai/api-reference/mcp.md): Connect Claude, ChatGPT, Claude Code or Cursor to Darwin's MCP server to read results, find unanswered questions, add knowledge, and manage the agent, its forms, chat buttons and personal links. Setup, tools, view-only access and disconnecting. - [MCP tools](https://docs.meetdarwin.ai/api-reference/mcp/tools.md): Every tool Darwin's MCP server offers Claude, ChatGPT, Claude Code and Cursor: the tools that read results, conversations and knowledge, the tools that change the agent, forms, links and opening tests, and the scope each needs. - [MCP access and limits](https://docs.meetdarwin.ai/api-reference/mcp/access.md): What an AI assistant connected to Darwin over MCP can never do, how to disconnect one, rate and size limits, and fixes for common connection problems. - [Changelog](https://docs.meetdarwin.ai/changelog.md): What changed in the Darwin API, webhooks, MCP server and the @meetdarwin/api TypeScript SDK. The API version is 2026-10-12; Darwin adds fields and endpoints without a new version. ## OpenAPI Specs - [openapi](/api-reference/openapi.json) ## Optional - [API keys](https://app.meetdarwin.ai/admin/settings/integrations/api) - [OpenAPI spec](https://app.meetdarwin.ai/api/v1/openapi.json) - [npm package](https://www.npmjs.com/package/@meetdarwin/api) - [Help center](https://www.meetdarwin.ai/help) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.