Skip to content
Docs

API: Create Clip

Create a Clip at a playback point in a transcribed Episode. Clip generation is asynchronous unless reusable completed output is already available.

Endpoint

POSThttps://app.podwise.ai/api/open/v1/episodes/[seq]/clips

Path Parameters

  • seq: Episode sequence number.

Request Body

type RequestBody = {
  // Non-negative integer playback point in seconds
  point: number;
};

Response

The endpoint returns HTTP 200 with the newly created Clip resource. Poll Get Clip to follow generation and obtain ready media.

type Response = {
  success: true;
  result: {
    id: number;
    episodeId: string;
    episodeSeq: number;
    episodeTitle: string;
    episodeCover: string | null;
    podcastName: string;
    podcastCover: string | null;
    title: string;
    takeaways: string[];
    content: string | null;
    point: number;
    clipStart: number | null;
    clipEnd: number | null;
    status: "waiting" | "processing" | "done" | "failed";
    exportable: boolean;
    // Unix timestamp in seconds
    createdAt: number;
  };
};

Error Responses

StatusErrorDescription
400--Invalid Episode sequence number or point.
402--Open API or Clips are not available for the current plan.
404not_foundEpisode does not exist.
404not_transcribedEpisode has not been transcribed yet.