POST
/
api
/
v1
/
channels
/
twilio
/
import { SyllableSDK } from "syllable-sdk";

const syllableSDK = new SyllableSDK({
  apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});

async function run() {
  const result = await syllableSDK.channels.twilio.create({
    name: "syllable-webchat",
    config: {
      accountSid: "AC123...",
      authToken: "sometoken",
    },
  });

  // Handle the result
  console.log(result);
}

run();
{
  "name": "syllable-webchat",
  "channel_service": "webchat",
  "supported_modes": [
    "chat",
    "voice"
  ],
  "is_system_channel": false,
  "id": 123
}

Authorizations

Syllable-API-Key
string
header
required

Body

application/json

Request model for creating a Twilio channel.

Response

200
application/json

Successful Response

The response is of type object.