# Sparkle > Sparkle is conversation events for developers. You send a live transcript, as turns or from a Recall.ai or Deepgram stream, and Sparkle sends a typed `moment.detected` event, as a signed webhook and on a server-sent event stream, when something happens in it: a decision, a request or commitment, a knowledge gap, a question. - Every page below is markdown. The whole site in one file: https://docs.sparkle.ai/llms-full.txt - OpenAPI spec: https://docs.sparkle.ai/openapi/v1.yaml - API base URL: https://api.sparkle.ai/public/v1, authenticated with the `X-API-Key` header. ## Docs - [Introduction](https://docs.sparkle.ai/docs.md): Conversation events for developers. Sparkle tells your product the moment something happens in a conversation. - [Use with AI](https://docs.sparkle.ai/docs/use-with-ai.md): Point Claude Code, Codex or Cursor at these docs and let it write the integration. - [Quickstart](https://docs.sparkle.ai/docs/quickstart.md): Send two turns of a conversation and receive the moments in them, in five minutes. - [Webhooks](https://docs.sparkle.ai/docs/webhooks.md): Receive signed events, per conversation or for the organization, verify them, and replay a delivery. ## Concepts - [Conversations and sources](https://docs.sparkle.ai/docs/concepts/conversations.md): A conversation is one call or meeting. Sources are how its transcript gets in. - [Sources](https://docs.sparkle.ai/docs/concepts/sources.md): The ways a transcript reaches Sparkle, and when to use each. - [The turn contract](https://docs.sparkle.ai/docs/concepts/turns.md): The shape every transcript takes in Sparkle, and the four rules that make sending it safe. - [Moments](https://docs.sparkle.ai/docs/concepts/moments.md): The ten built-in moment kinds, what each one fires on, and what a moment carries. - [Timing profiles](https://docs.sparkle.ai/docs/concepts/timing.md): Why a decision waits a few seconds and a request doesn't. - [Delivery](https://docs.sparkle.ai/docs/concepts/delivery.md): How events reach you, by stream or webhook, and how to handle retries, replays and repeats. - [Security and data](https://docs.sparkle.ai/docs/concepts/security.md): API keys, signed webhooks, how long Sparkle keeps a transcript, and how to erase one. - [Plans & limits](https://docs.sparkle.ai/docs/concepts/plans.md): What each plan includes, how minutes are metered, and what the API answers at a limit. - [Billing](https://docs.sparkle.ai/docs/concepts/billing.md): How Pro and Scale are paid for, how minutes are counted and priced, and where invoices are. ## Guides - [Custom moments](https://docs.sparkle.ai/docs/guides/custom-moments.md): Define your own moment kind in plain English, test it on a transcript, then make it live. - [Import a finished transcript](https://docs.sparkle.ai/docs/guides/import.md): Run a recorded call's transcript through the same detection as a live one. - [Capture audio in the browser](https://docs.sparkle.ai/docs/guides/browser-audio.md): Stream a microphone and a meeting tab from a web page, and get turns and moments back. - [Use Sparkle from your AI agent (MCP)](https://docs.sparkle.ai/docs/guides/mcp.md): Connect Claude, Claude Code or another MCP client to Sparkle's MCP server by signing in, and let the agent run conversations, read moments and write custom moments. ## Receivers - [Recall.ai](https://docs.sparkle.ai/docs/receivers/recall.md): Send a Recall.ai meeting bot's live transcript to a conversation. - [Deepgram](https://docs.sparkle.ai/docs/receivers/deepgram.md): Send Deepgram live transcription results to a conversation. ## Connections - [Recall.ai connection](https://docs.sparkle.ai/docs/connections/recall.md): One URL for every Recall.ai bot in your workspace; each call becomes its own conversation. - [Deepgram connection](https://docs.sparkle.ai/docs/connections/deepgram.md): One URL for every Deepgram live stream; each stream becomes its own conversation. - [Webhook connection](https://docs.sparkle.ai/docs/connections/webhook.md): One URL any tool can post transcripts to, without code. Sparkle recognises the format. - [Zoom connection](https://docs.sparkle.ai/docs/connections/zoom.md): Sign in with Zoom once; each cloud-recorded meeting's transcript becomes a conversation after the meeting. - [List connections](https://docs.sparkle.ai/docs/api/reference/connections/listConnections.md): `GET /connections` - [List a connection's events](https://docs.sparkle.ai/docs/api/reference/connections/listConnectionEvents.md): `GET /connections/{id}/events` - [List a webhook connection's payloads](https://docs.sparkle.ai/docs/api/reference/connections/listConnectionPayloads.md): `GET /connections/{id}/payloads` - [Create a connection](https://docs.sparkle.ai/docs/api/reference/connections/createConnection.md): `POST /connections` - [Get a connection](https://docs.sparkle.ai/docs/api/reference/connections/getConnection.md): `GET /connections/{id}` - [Update a connection](https://docs.sparkle.ai/docs/api/reference/connections/updateConnection.md): `PATCH /connections/{id}` - [Delete a connection](https://docs.sparkle.ai/docs/api/reference/connections/deleteConnection.md): `DELETE /connections/{id}` - [Re-run a webhook connection's payload](https://docs.sparkle.ai/docs/api/reference/connections/rerunConnectionPayload.md): `POST /connections/{id}/payloads/{payload_id}/rerun` - [Rotate the receiver URL](https://docs.sparkle.ai/docs/api/reference/connections/rotateConnectionURL.md): `POST /connections/{id}/rotate-url` - [Send a test call](https://docs.sparkle.ai/docs/api/reference/connections/testConnection.md): `POST /connections/{id}/test` ## API reference - [API reference](https://docs.sparkle.ai/docs/api.md): Every endpoint and webhook event of the Sparkle API, generated from its OpenAPI spec. - [API changelog](https://docs.sparkle.ai/docs/api/changelog.md): Changes to Sparkle's public API, its webhook events and the audio socket, newest first. - [Audio streaming protocol](https://docs.sparkle.ai/docs/api/audio-streaming.md): Stream raw audio to a conversation over a WebSocket, from a server, a phone bridge or a mobile app. ## Authentication - [Get the authenticated principal](https://docs.sparkle.ai/docs/api/reference/authentication/getMe.md): `GET /me` ## Conversations - [List conversations](https://docs.sparkle.ai/docs/api/reference/conversations/listConversations.md): `GET /conversations` - [List webhook deliveries](https://docs.sparkle.ai/docs/api/reference/conversations/listConversationDeliveries.md): `GET /conversations/{id}/deliveries` - [List moments](https://docs.sparkle.ai/docs/api/reference/conversations/listConversationMoments.md): `GET /conversations/{id}/moments` - [List turns](https://docs.sparkle.ai/docs/api/reference/conversations/listConversationTurns.md): `GET /conversations/{id}/turns` - [Create a conversation](https://docs.sparkle.ai/docs/api/reference/conversations/createConversation.md): `POST /conversations` - [Create an audio session](https://docs.sparkle.ai/docs/api/reference/conversations/createAudioSession.md): `POST /conversations/{id}/audio-sessions` - [Get a conversation](https://docs.sparkle.ai/docs/api/reference/conversations/getConversation.md): `GET /conversations/{id}` - [Delete a conversation](https://docs.sparkle.ai/docs/api/reference/conversations/deleteConversation.md): `DELETE /conversations/{id}` - [Import a finished transcript](https://docs.sparkle.ai/docs/api/reference/conversations/importConversation.md): `POST /conversations/import` - [End a conversation](https://docs.sparkle.ai/docs/api/reference/conversations/endConversation.md): `POST /conversations/{id}/end` - [Follow moments in real time](https://docs.sparkle.ai/docs/api/reference/conversations/openConversationStream.md): `GET /conversations/{id}/stream` - [Add turns](https://docs.sparkle.ai/docs/api/reference/conversations/addConversationTurns.md): `POST /conversations/{id}/turns` ## Custom moments - [List custom moments](https://docs.sparkle.ai/docs/api/reference/custom-moments/listCustomMoments.md): `GET /moments` - [List custom moment templates](https://docs.sparkle.ai/docs/api/reference/custom-moments/listCustomMomentTemplates.md): `GET /moments/templates` - [List a custom moment's fires](https://docs.sparkle.ai/docs/api/reference/custom-moments/listCustomMomentFires.md): `GET /moments/{id}/fires` - [List a custom moment's versions](https://docs.sparkle.ai/docs/api/reference/custom-moments/listCustomMomentVersions.md): `GET /moments/{id}/versions` - [Define a custom moment](https://docs.sparkle.ai/docs/api/reference/custom-moments/createCustomMoment.md): `POST /moments` - [Get a custom moment](https://docs.sparkle.ai/docs/api/reference/custom-moments/getCustomMoment.md): `GET /moments/{id}` - [Update a custom moment](https://docs.sparkle.ai/docs/api/reference/custom-moments/updateCustomMoment.md): `PUT /moments/{id}` - [Delete a custom moment](https://docs.sparkle.ai/docs/api/reference/custom-moments/deleteCustomMoment.md): `DELETE /moments/{id}` - [Evaluate an unsaved custom moment](https://docs.sparkle.ai/docs/api/reference/custom-moments/evaluateCustomMomentDraft.md): `POST /moments/evaluate` - [Enable a template](https://docs.sparkle.ai/docs/api/reference/custom-moments/enableCustomMomentTemplate.md): `POST /moments/templates/{key}/enable` - [Evaluate a custom moment](https://docs.sparkle.ai/docs/api/reference/custom-moments/evaluateCustomMoment.md): `POST /moments/{id}/evaluate` - [Promote a version](https://docs.sparkle.ai/docs/api/reference/custom-moments/promoteCustomMomentVersion.md): `POST /moments/{id}/versions/{n}/promote` - [Run a version in shadow](https://docs.sparkle.ai/docs/api/reference/custom-moments/shadowCustomMomentVersion.md): `POST /moments/{id}/versions/{n}/shadow` - [Stop a shadow](https://docs.sparkle.ai/docs/api/reference/custom-moments/stopCustomMomentShadow.md): `DELETE /moments/{id}/versions/{n}/shadow` ## Plan - [Get the plan](https://docs.sparkle.ai/docs/api/reference/plan/getPlan.md): `GET /plan` ## Webhooks - [List webhook subscriptions](https://docs.sparkle.ai/docs/api/reference/webhooks/listWebhookSubscriptions.md): `GET /webhooks` - [List webhook deliveries](https://docs.sparkle.ai/docs/api/reference/webhooks/listWebhookDeliveries.md): `GET /webhooks/{id}/deliveries` - [Create a webhook subscription](https://docs.sparkle.ai/docs/api/reference/webhooks/createWebhookSubscription.md): `POST /webhooks` - [Get a webhook subscription](https://docs.sparkle.ai/docs/api/reference/webhooks/getWebhookSubscription.md): `GET /webhooks/{id}` - [Update a webhook subscription](https://docs.sparkle.ai/docs/api/reference/webhooks/updateWebhookSubscription.md): `PUT /webhooks/{id}` - [Delete a webhook subscription](https://docs.sparkle.ai/docs/api/reference/webhooks/deleteWebhookSubscription.md): `DELETE /webhooks/{id}` - [Replay skipped webhook deliveries](https://docs.sparkle.ai/docs/api/reference/webhooks/replaySkippedWebhookDeliveries.md): `POST /webhooks/{id}/deliveries/replay-skipped` - [Replay a webhook delivery](https://docs.sparkle.ai/docs/api/reference/webhooks/replayWebhookDelivery.md): `POST /webhooks/{id}/deliveries/{deliveryId}/replay` - [Rotate the signing secret](https://docs.sparkle.ai/docs/api/reference/webhooks/rotateWebhookSecret.md): `POST /webhooks/{id}/rotate-secret` - [Test a webhook subscription](https://docs.sparkle.ai/docs/api/reference/webhooks/testWebhookSubscription.md): `POST /webhooks/{id}/test` ## Webhook events - [Conversation created](https://docs.sparkle.ai/docs/api/reference/webhook-events/conversationCreated.md): Webhook event `conversation.created` - [Conversation deleted](https://docs.sparkle.ai/docs/api/reference/webhook-events/conversationDeleted.md): Webhook event `conversation.deleted` - [Conversation ended](https://docs.sparkle.ai/docs/api/reference/webhook-events/conversationEnded.md): Webhook event `conversation.ended` - [Moment detected](https://docs.sparkle.ai/docs/api/reference/webhook-events/momentDetected.md): Webhook event `moment.detected` - [Ping](https://docs.sparkle.ai/docs/api/reference/webhook-events/webhookPing.md): Webhook event `webhook.ping` ## Errors - [Errors](https://docs.sparkle.ai/docs/api/errors.md): Every error has the same shape. Branch on its code, retry what is safe to retry. - [Validation failed (400)](https://docs.sparkle.ai/docs/api/errors/validation.md): The request was refused because a value is missing, malformed or out of range. - [Authentication required (401)](https://docs.sparkle.ai/docs/api/errors/unauthorized.md): The request didn't carry a valid credential. - [Access denied (403)](https://docs.sparkle.ai/docs/api/errors/forbidden.md): The credential is valid but can't perform this operation. - [Resource not found (404)](https://docs.sparkle.ai/docs/api/errors/not-found.md): The requested resource doesn't exist, was deleted, or isn't visible to the credential. - [Conflict (409)](https://docs.sparkle.ai/docs/api/errors/conflict.md): The operation contradicts the resource's current state or a value that must be unique. - [Unsupported media type (415)](https://docs.sparkle.ai/docs/api/errors/unsupported-media-type.md): The body was sent in a format the operation doesn't accept. - [Payload too large (413)](https://docs.sparkle.ai/docs/api/errors/payload-too-large.md): The request body is larger than the operation accepts. - [Unprocessable content (422)](https://docs.sparkle.ai/docs/api/errors/unprocessable.md): The body arrived whole, but Sparkle can't read or take what it holds. - [Request timeout (408)](https://docs.sparkle.ai/docs/api/errors/request-timeout.md): The request body didn't arrive in full before the server's read deadline. - [Rate limit exceeded (429)](https://docs.sparkle.ai/docs/api/errors/rate-limit.md): The credential sent more requests than the current window allows. - [Internal error (500)](https://docs.sparkle.ai/docs/api/errors/internal.md): An unexpected failure on the server stopped the operation. - [External service error (502)](https://docs.sparkle.ai/docs/api/errors/bad-gateway.md): A third-party service the operation depends on failed or didn't answer. - [Service unavailable (503)](https://docs.sparkle.ai/docs/api/errors/service-unavailable.md): The operation needs a feature this deployment isn't configured to serve.