Recall.ai connection
One URL for every Recall.ai bot in your workspace; each call becomes its own conversation.
A Recall.ai connection is one permanent URL your bots post to. Sparkle creates a conversation for each bot on its first transcript event, and ends it when Recall reports the call over. You create no conversations yourself.
Use a connection when bots start outside your code and you don't want to create conversations
yourself. When your code already creates the conversation and wants its id, its own webhook_url
or its title up front, use the per-conversation Recall.ai receiver
instead. Sources compares the two.
Set it up
Create the connection
Create it with your Recall.ai workspace's verification secret (whsec_…), which signs the bots'
real-time events and the dashboard's webhooks. You can also create it in the dashboard under
Sources → Connect.
curl -X POST https://api.sparkle.ai/public/v1/connections \
-H "X-API-Key: $SPARKLE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"vendor": "recall",
"name": "Sales calls",
"environment": "live",
"credentials": { "verification_secret": "whsec_..." }
}'| Field | What it does |
|---|---|
vendor | Required. recall. |
name | Required. A label, up to 100 characters. |
environment | Required. live or test: the environment of every conversation its calls create. Live ones are billed; test ones count against your test minutes. |
moment_types | The moment kinds its conversations detect. Absent or empty detects every kind. |
credentials | verification_secret: your workspace's secret. Sparkle keeps it and never returns it; the connection's has_credentials says whether one is set. |
Without a verification secret, only bots in Sparkle's own Recall.ai workspace verify.
Sparkle answers 201 Created with the connection and its receiver_url:
{
"id": "con_2kd9f3h7k1n5r9v3x6bc",
"vendor": "recall",
"name": "Sales calls",
"environment": "live",
"moment_types": [],
"status": "active",
"has_credentials": true,
"last_event_at": null,
"last_error_code": null,
"receiver_url": "https://api.sparkle.ai/public/v1/receivers/recall/<token>",
"…": "…"
}This is the only time you see receiver_url. Keep it on your server like an API key. If you lose
it, or it leaks, POST /connections/{id}/rotate-url returns a new one, and the old one stops at
once.
Point each bot at the URL
When you create a bot, set a transcript provider in recording_config.transcript and add the URL as
a real-time webhook endpoint that subscribes to transcript.data:
{
"meeting_url": "https://meet.example.com/abc-defg-hij",
"recording_config": {
"realtime_endpoints": [
{
"type": "webhook",
"url": "https://api.sparkle.ai/public/v1/receivers/recall/<token>",
"events": ["transcript.data"]
}
]
}
}Every bot gets the same URL. The bot is the call: each bot's events go to its own conversation.
Add the URL to Recall's webhooks dashboard
Recall sends a bot's status events only to the endpoints in its Webhooks dashboard, never to
the bot's real-time endpoint. Add the same URL there as an endpoint subscribed to bot.call_ended,
bot.done and bot.fatal, so the conversation ends with the call.
Workspaces created before 2025-12-15
Older Recall.ai workspaces sign dashboard webhooks with a separate secret per endpoint, not the
workspace's verification secret. Sparkle refuses their status events with a 401, and their calls
end after 60 minutes without a turn instead.
Subscribe to the events
A call's conversation has no webhook_url of its own: its events go to the organization's
webhook subscriptions. Create one in the connection's environment, since a
subscription only receives its own environment's events.
Send a test call
POST /connections/{id}/test sends a sample call through the same path a bot's events take,
signed as Recall signs it: one utterance asking for work, then the bot's end. It creates
a short test conversation, whatever the connection's environment, and works on a disabled
connection too. It answers:
{ "conversation_id": "cnv_2kd9f5k9m3q7u1y5b8de", "error_code": null }conversation_id is null and error_code says why when the call was refused. Being a test
conversation, its events go to your test webhook subscriptions, not your live ones.
What each call becomes
The first transcript.data of a bot creates a live conversation in the connection's environment,
detecting the connection's moment types:
-
Its title is
Recall.ai calland the first 8 characters of the bot's id, such asRecall.ai call 3f2a9c1e. -
Its metadata names the connection, the vendor and the bot:
{ "connection_id": "con_2kd9f3h7k1n5r9v3x6bc", "vendor": "recall", "external_ref": "3f2a9c1e-7b4d-4e2a-9c1f-5d8e6b0a2c47" } -
conversation.createdcarries that metadata, so your handler can match the conversation to your own record of the bot. -
Two first events of one bot arriving together still create one conversation.
Each utterance becomes a turn as the Recall.ai receiver reads it.
transcript.partial_data is interim and is ignored, as is every event other than transcript.data
and the three status events above.
How a call ends
| What happens | conversation.ended reason |
|---|---|
bot.call_ended, bot.done or bot.fatal arrives | requested |
| No turn arrives for 60 minutes | idle |
Whichever comes first ends it. A later event of an ended call changes nothing.
Manage the connection
| To | Call |
|---|---|
| Stop taking calls | PATCH /connections/{id} with {"status": "disabled"}. Recall still gets a 2xx, and the calls are dropped. "active" resumes. |
| Change the verification secret | PATCH with new credentials. An empty credentials object removes them. |
| Change the moment types | PATCH with moment_types. Calls that start from then on use them. |
| Get a new URL | POST /connections/{id}/rotate-url. The old URL stops at once. |
| Delete it | DELETE /connections/{id}. Its URL stops at once; its calls' conversations stay. |
When calls don't arrive
Check status first: a disabled connection drops calls without recording them. GET /connections/{id} returns last_event_at, when a call's event last went through, and
last_error_code, why the latest one was not taken. last_error_code is null again once an event
goes through.
last_error_code | Means |
|---|---|
plan_limit | Your plan refused the call: its minutes are used up, or it runs as many live conversations as it allows. |
suspended | Your company is suspended. |
invalid_signature | The signature didn't verify against the connection's secret. |
failed | Anything else that kept the call's turns out. |
GET /connections/{id}/events lists the latest 50 requests that carried a call's turns or its end,
newest first: each one's event type, the bot's id, its conversation and its error code. It never
holds the transcript.
Responses
| Status | Meaning |
|---|---|
204 | Accepted, or ignored. A call refused by your plan, a suspended company, or a disabled connection is a 204 too, so Recall neither retries it nor disables the endpoint. |
401 | The signature is missing or wrong, or it was made more than 5 minutes ago, or the URL names no connection, such as one replaced by a rotation. |
413 | The body is larger than 1 MB. |
429 | More than 20,000 requests in a minute to one connection URL. |