Browse documentation
Documentation overview

Getting started

Recording

Editing

Teams

Agent tools

Build on Clipy

Trust and reliability

Recording format

Learn and reference

Docs · SDKs

Clipy SDKs for TypeScript and Python

Build Clipy into your own product, support desk or pipeline. The SDKs wrap the REST API with typed responses, retries, pagination and webhook verification, so a few lines upload a recording, find the moment someone said something, or turn a recording into a ticket.

Quick answer

Install @clipy/sdk from npm or use clipy_sdk in Python, set CLIPY_API_KEY, and call clipy.search(), clipy.recordings.*, clipy.integrations.send() or verifyWebhook(). Both SDKs have no dependencies and cover the same API.

Install and authenticate

TypeScript

@clipy/sdk 0.3.0 on npm. Node 20+, Deno, Bun, Cloudflare Workers and Vercel Edge.

npm install @clipy/sdk

import { Clipy } from "@clipy/sdk";

const clipy = new Clipy(); // reads CLIPY_API_KEY

// Find the moment someone talked about checkout, across every recording
const { results } = await clipy.search({ q: "checkout button", limit: 5 });
for (const hit of results) console.log(hit.title, hit.url); // url jumps to the moment

// Read what an AI agent reads
const { summary } = await clipy.recordings.summary(results[0].publicId);

Python

clipy-sdk 0.2.0 is not on PyPI yet. Until it is, call the REST API directly. Python 3.9+, standard library only.

from clipy_sdk import Clipy

clipy = Clipy()  # reads CLIPY_API_KEY

hits = clipy.search("checkout button", limit=5)["results"]
for hit in hits:
    print(hit["title"], hit["url"])

summary = clipy.recordings.summary(hits[0]["publicId"])["summary"]

Create a key under Settings, API keys (it starts with clipy_sk_live_) and give it only the scopes your code needs. An OAuth access token works in the same place. The SDKs read CLIPY_API_KEY when you pass no key, and CLIPY_BASE_URL when you point them somewhere other than clipy.online.

Upload a recording

Hand the SDK a video from your own app, a test run or a support tool. It uploads in 4 MiB parts, and the recording gets everything a Clipy recording gets: a watch link, transcript, AI summary, key moments and an agent-readable .arec. An expectedResult tells AI agents what should have happened.

import { readFile } from "node:fs/promises";

const { publicId, shareUrl, contextUrl } = await clipy.recordings.upload(
  await readFile("checkout-bug.mp4"),
  {
    name: "Checkout button does nothing",
    recordingKind: "bug_report",
    expectedResult: "Pressing Pay opens the payment sheet",
    accessMode: "restricted",
  },
);

// Wait until the transcript and summary are ready (scripts and CI)
await clipy.recordings.waitUntilReady(publicId, { until: "usable" });
console.log(shareUrl, contextUrl);
result = clipy.recordings.upload(
    "checkout-bug.mp4",  # a path is read part by part, never whole
    name="Checkout button does nothing",
    recording_kind="bug_report",
    expected_result="Pressing Pay opens the payment sheet",
    access_mode="restricted",
)
clipy.recordings.wait_until_ready(result["publicId"], until="usable")
print(result["shareUrl"], result["contextUrl"])

Send a recording to Jira, Confluence or Linear

Once a workspace has connected a tool at Settings, Integrations, your code can file the recording there. Pass a requestKey and a retry returns the issue already created instead of a second one.

// Turn a recording into a Jira issue with its summary, steps and link
const [project] = await clipy.integrations.targets("jira", { q: "WEB" });
const issue = await clipy.integrations.send(publicId, {
  destination: "jira",
  targetId: project.id,
  issueTypeId: project.issueTypes?.[0]?.id,
  requestKey: `bug-${publicId}`, // a retry returns the same issue
});
console.log(issue.url);

Everything the SDKs cover

Method names are camelCase in TypeScript and snake_case in Python. The scope column is what the key needs.

Search

Method (TypeScript, then Python)What it doesScope
search({ q })search(q)Search spoken words, titles and imported context across the library. Each hit links to its moment.recordings:read

Recordings

Method (TypeScript, then Python)What it doesScope
recordings.list() / listAll()recordings.list() / list_all()List recordings; listAll pages through everything for you.recordings:read
recordings.get(id)Metadata, processing stage and agent readiness.recordings:read
recordings.transcript(id)Timestamped transcript.recordings:read
recordings.captions(id, format)Captions as SRT, VTT or plain text.recordings:read
recordings.summary(id)AI summary.recordings:read
recordings.keyMoments(id)recordings.key_moments(id)Key moments with their frames.recordings:read
recordings.interactions(id)Clicks, pointer and scroll timeline.recordings:read
recordings.browserDiagnostics(id)recordings.browser_diagnostics(id)Console output, errors and network requests from a bug capture.recordings:read
recordings.comments(id)Timestamped comment threads.comments:read
recordings.comment() / reply()Comment at a moment, or reply in a thread.comments:write
recordings.analytics(id)Views, viewers and retention.analytics:read
recordings.upload(data, params)recordings.upload(path_or_bytes, ...)Upload a WebM, MP4 or MOV in resumable parts.ingest
recordings.waitUntilReady(id)recordings.wait_until_ready(id)Wait until playable, usable (transcript and summary) or complete.recordings:read
recordings.update(id, ...)Rename or change the description.recordings:write
recordings.organize(id, ...)Move to a folder and set tags.recordings:write
recordings.getAccess() / setAccess()recordings.get_access() / set_access()Public, restricted or private sharing.recordings:read / write
recordings.editTranscript() / edit()recordings.edit_transcript() / edit()Cut the video by deleting transcript words.recordings:write
recordings.replaceTranscript(id, ...)recordings.replace_transcript(id, ...)Replace the transcript with your own.ingest
recordings.delete(id)Delete a recording, with the id as confirmation.recordings:delete

Folders and imported context

Method (TypeScript, then Python)What it doesScope
folders.list() / create(name)List folders or create one.recordings:read / write
contextDocuments.list() / get(id)context_documents.list() / get(id)Imported YouTube and Loom context.recordings:read
contextDocuments.arec(id)context_documents.arec(id)The agent-readable .arec document.recordings:read

Integrations

Method (TypeScript, then Python)What it doesScope
integrations.list()Which of Jira, Confluence and Linear are connected.recordings:read
integrations.targets(dest)Jira projects with issue types, Confluence spaces or Linear teams.recordings:write
integrations.send(id, ...)Create a Jira issue, Confluence page or Linear issue from a recording.recordings:write

Webhooks

Method (TypeScript, then Python)What it doesScope
verifyWebhook(body, headers, secret)verify_webhook(body, headers, secret)Check a Standard Webhooks signature and return the event.none

For any endpoint not listed, clipy.request(method, path) calls it with the same authentication and retries.

Errors and retries

A failed request raises ClipyError with the HTTP status, Clipy's error code and the response body. Reads retry on 429, 502, 503, 504 and network errors, twice by default, backing off from half a second and honouring Retry-After. Each request times out after 30 seconds; both are options on the client.

import { ClipyError, UploadNotConfirmedError } from "@clipy/sdk";

try {
  await clipy.recordings.upload(bytes, { name: "Demo" });
} catch (error) {
  if (error instanceof UploadNotConfirmedError) {
    // The recording exists as error.publicId: do not upload it again
  } else if (error instanceof ClipyError) {
    console.error(error.status, error.code, error.body);
  }
}

Webhooks

Instead of polling, let Clipy call you when a recording, transcript, summary or key moments are ready, or someone comments. verifyWebhook and verify_webhook check the signature and timestamp and return the typed event. The webhooks guide has the events, payloads and a full handler.

Open source or hosted

The SDKs talk to the hosted Clipy app, where every recording gets a share link, hosted AI and a team workspace. To keep recordings on your own machine instead, Clipy Local, the open-source edition (Apache-2.0, github.com/clipy-recorder/clipy), records with the Clipy CLI and --local and writes an AREC file your code and AI agents read straight from disk, with no account.

Frequently asked

Which runtimes does the TypeScript SDK support?

Node 20 and later, Deno, Bun, Cloudflare Workers and Vercel Edge. It uses the platform's fetch and has no dependencies, so it adds almost nothing to a bundle.

What key does the SDK need?

A Clipy API key from Settings, API keys, or an OAuth access token. Give it the scopes your code uses: recordings:read to read, recordings:write to edit, organize or send, ingest to upload.

Does the SDK retry failed requests?

Yes. Reads retry automatically on 429, 502, 503 and 504 responses and on network errors, with exponential backoff that honours Retry-After. Uploads are made of idempotent steps, so they retry too.

Can an upload retry create a duplicate recording?

No. Every upload step is safe to repeat. If the recording was created but its final confirmation did not come back, the SDK raises UploadNotConfirmedError with the recording's id, so your code knows it exists and does not upload again.

Related: REST API reference, webhooks, MCP server, CLI and the agent security model.

Reading this with an AI agent? The same page as Markdown: clipy.online/docs/sdk.md