Skip to main content
The Sully SDKs provide authenticated clients for note generation, text extraction, and transcription. Sully M1 uses the OpenAI SDK instead.

Install

Create a client

Request methods

The clients add the Sully authentication headers and parse successful JSON responses. The public guides use these methods: TypeScript returns parsed JSON. Python requires cast_to; use httpx.Response when you want to read the response with .json():
Note generation requires an inline template on every request. See the template example and schema. For multipart requests, pass a FormData body in TypeScript. In Python, pass form fields with body, the upload with files, and a multipart content type:
Creation requests use a five-minute client timeout because note generation and transcription setup can exceed the SDK’s one-minute default. Automatic retries are disabled because repeating these POSTs can create duplicate billable work. Use the same authenticated client.post() method for Text to JSON, with automatic retries disabled.

Create a streaming token

Create a short-lived token before opening a browser WebSocket connection:
The SDK authenticates the token request but does not open the WebSocket or capture audio. See streaming transcription for the connection flow.

Errors

Non-success responses raise typed SDK errors: