Create a connection
Sets up a connection to a transcript vendor and returns its receiver URL, shown only in this response. Every call the vendor sends to the URL becomes a conversation of its own, in the connection's environment, and the vendor's end of the call ends it.
Authorization
apiKey API key (prefix spk_test_ or spk_live_) or personal access token (prefix pat_)
In: header
Header Parameters
Idempotency key that prevents processing a request twice. Use a unique UUID v4 per request.
length <= 255Request Body
application/json
The vendor's credentials, kept in Vault and never returned
The environment of the conversations its calls create: live ones bill, test ones count against the test minutes
Value in
- "test"
- "live"
Webhook connections only, and required for them: transcript imports each request as a conversation of its own; turns appends each request to the live call its call ID names
Value in
- "transcript"
- "turns"
The moment types its conversations detect; absent or empty detects every type
A label for the connection
length <= 100Webhook connections only: Sparkle generates a signing secret, shown once in the response, and refuses requests not signed with it
Where its calls come from
Value in
- "recall"
- "deepgram"
- "webhook"
- "zoom"
Response Body
application/json
application/json
curl -X POST "https://example.com/connections" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "environment": "test", "name": "string", "vendor": "recall" }'{ "created_at": "2019-08-24T14:15:22Z", "environment": "test", "has_credentials": true, "id": "con_2jxsy8cc8v0348asy6t1", "last_error_code": "plan_limit", "last_event_at": "2019-08-24T14:15:22Z", "mode": "transcript", "moment_types": [ "string" ], "name": "string", "organization_id": "string", "receiver_url": "string", "signing_secret": "string", "status": "active", "tenant_id": "string", "updated_at": "2019-08-24T14:15:22Z", "vendor": "recall"}