API referenceConnections

Create a connection

POST
/connections

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
X-API-Key<token>

API key (prefix spk_test_ or spk_live_) or personal access token (prefix pat_)

In: header

Header Parameters

Idempotency-Key*string

Idempotency key that prevents processing a request twice. Use a unique UUID v4 per request.

Lengthlength <= 255

Request Body

application/json

credentials?

The vendor's credentials, kept in Vault and never returned

environment*string

The environment of the conversations its calls create: live ones bill, test ones count against the test minutes

Value in

  • "test"
  • "live"
mode?string

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"
moment_types?array<string>

The moment types its conversations detect; absent or empty detects every type

name*string

A label for the connection

Lengthlength <= 100
signed?boolean

Webhook connections only: Sparkle generates a signing secret, shown once in the response, and refuses requests not signed with it

vendor*string

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"}