SDK Guides
SDK Guides

SDK quickstart

Use Syllable AI's official SDKs to call the Syllable API from TypeScript, JavaScript, or Python. This quickstart installs the client, configures an API token, and lists the agents available to your organization.

1. Install the SDK

TypeScript / JavaScript

Install the Syllable TypeScript/JavaScript SDK (syllable-sdk on npm). Find source code and additional examples in the official TypeScript SDK repository on GitHub.

npm install syllable-sdk

Python

Install the Syllable Python SDK (syllable-sdk on PyPI). Find source code and additional examples in the official Python SDK repository on GitHub.

pip install syllable-sdk

For additional package-manager options, see SDK installation and environment setup.

2. Get an API token

Create a token in the Syllable Console and copy it when it is displayed. See Create and manage API tokens for the complete procedure, token limits, rotation guidance, and security practices.

Store the token in an environment variable rather than in application source:

export SYLLABLE_API_KEY="your-api-token"

3. Configure the client and make a request

TypeScript / JavaScript

import { SyllableSDK } from "syllable-sdk";

const syllable = new SyllableSDK({
  apiKeyHeader: process.env.SYLLABLE_API_KEY ?? "",
});

const result = await syllable.agents.list({ page: 0, limit: 25 });
console.log(result);

Python

import os
from syllable_sdk import SyllableSDK

with SyllableSDK(
    api_key_header=os.getenv("SYLLABLE_API_KEY", ""),
) as syllable:
    result = syllable.agents.list(page=0, limit=25)
    print(result)

The request uses your API token to access the selected organization. See Agent List for all parameters and response fields, or follow Build your first agent for a guided workflow.

December 2026 SDK changes

Starting with TypeScript 1.0.77 and Python 0.50.43, read a successful session recording download from response.result. In TypeScript, this is a ReadableStream<Uint8Array>. In Python, it is an httpx.Response you can read with iter_bytes().

If the recording service returns HTTP 504 (Gateway Timeout), check the Retry-After header. When present, it gives the number of seconds to wait before trying again.

When you create a prompt or rename one, use a name of 255 characters or fewer.

November 2026 SDK changes

TypeScript 1.0.74 and Python 0.50.35 update outbound campaigns and batches.

  • Preview excluded dates to see when date or holiday rules would stop outreach, even before saving a campaign.
  • Upload a batch to get file validation results in the response. Requests for eligible rows are created in the background.

The earlier November releases (TypeScript 1.0.73 and Python 0.50.25) added operations for inspecting saved configurations, managing experiments, and querying Insights.

Next steps

Continue with the next guide, or explore another part of the documentation.

SDK installation and environment setup

Install Syllable AI's official SDK for TypeScript/JavaScript from npm or Python from PyPI. Find package links, source code, and setup instructions.

Explore further: