Creates one or more video clips from a live stream’s recording. Each clip becomes a standalone content item (contentType: "video") that appears in your feed once processing completes.You can clip from a stream that is still active (real-time clipping while the broadcast is in progress) or from one that has ended. Authenticated with your secret key.
This endpoint requires your secret key, so it must be called from a server-side context — never directly from a client app. If you want users of your iOS / Android / web client to be able to create clips themselves (for example, a “clip this moment” button), expose your own backend endpoint that accepts the request from your client (using whatever user-auth your app already uses), then forward to this endpoint with your secret key. That pattern lets you apply your own rate limits, attribution, and abuse controls before a clip is created.
Path parameters
string
required
The live stream’s UUID.
Body parameters
array
required
An array of clip ranges to create. Up to 20 per request. Each entry has:
startSec (number, required) — Offset from the beginning of the stream, in seconds. Must be >= 0.
endSec (number, required) — End offset, in seconds. Must be greater than startSec.
title (string, optional) — Display title for the resulting content item.
string
An HTTPS URL that ShortKit will POST to once each clip’s media is fully processed and ready to play. Useful when you want to publish a clip in your own UI without polling.
Clips are returned immediately with a new contentId, but the underlying media takes a few seconds to a few minutes to process depending on length. The clip’s content item will report uploadStatus: "processing" until processing finishes, then transition to ready.If you provided a callbackUrl, ShortKit will POST to it once each clip is ready, with the clip’s contentId and current state. Otherwise, poll the content item directly.
Errors
Status
Reason
400
endSec is not greater than startSec, or the request includes more than 20 clips.
404
The live stream does not exist or does not belong to your organization.
409
The stream’s status does not support clipping yet — it must be active or ended. If active, the recording asset may not be available for the first few seconds of the broadcast; retry shortly.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"shortkit","description":"Drop-in short-form video feeds for your app. TikTok-quality video experience without the infrastructure complexity.","colors":{"primary":"#181818","light":"#FAFAFA","dark":"#181818"},"logo":{"light":"https://mintcdn.com/shortkit-d6329983/xRYeGsJb7E_Zbka4/logo/light.svg?fit=max\u0026auto=format\u0026n=xRYeGsJb7E_Zbka4\u0026q=85\u0026s=6e9cf028d262e4df25460990c6b6fb92","dark":"https://mintcdn.com/shortkit-d6329983/xRYeGsJb7E_Zbka4/logo/dark.svg?fit=max\u0026auto=format\u0026n=xRYeGsJb7E_Zbka4\u0026q=85\u0026s=3fb8423af1636034446e105862945831","href":"https://shortkit.dev"},"favicon":"https://mintcdn.com/shortkit-d6329983/xRYeGsJb7E_Zbka4/favicon.svg?fit=max\u0026auto=format\u0026n=xRYeGsJb7E_Zbka4\u0026q=85\u0026s=32b084e8c8fac95e722b85a1f4c7c735","api":{"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.shortkit.dev"}},"background":{"color":{"light":"#FFFFFF","dark":"#111111"}},"navbar":{"links":[{"href":"https://shortkit.dev","label":"Home"}],"primary":{"type":"button","label":"Contact Us","href":"https://calendly.com/michael-shortkit/20-min-meeting"}},"footer":{},"fonts":{"heading":{"family":"Manrope","weight":500},"body":{"family":"Manrope","weight":400}},"styling":{"codeblocks":{"theme":{"light":"github-light-default","dark":"github-dark-default"}},"latex":false},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"shortkit-d6329983","hasAudioNarration":false,"actualSubdomain":"shortkit-d6329983","customDomains":["docs.shortkit.dev"],"gitSource":{"type":"github","owner":"shortkit","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0236c86418b78986140664","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":39},{"language":"default","tag":"Reference","count":36},{"language":"default","tag":"Docs","count":17},{"language":"default","tag":"Content","count":16},{"language":"default","tag":"Live Streams","count":8},{"language":"default","tag":"Surveys","count":7},{"language":"default","tag":"Analytics \u0026 Events","count":6},{"language":"default","tag":"Build Your Experience","count":5},{"language":"default","tag":"Ad Configuration","count":3},{"language":"default","tag":"Overview","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhGq3-OXg.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhPq3-OXg.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhIq3-OXg.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhEq3-OXg.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhFq3-OXg.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhLq38.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhGq3-OXg.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhPq3-OXg.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhIq3-OXg.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhEq3-OXg.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhFq3-OXg.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhLq38.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhGq3-OXg.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhPq3-OXg.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhIq3-OXg.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhEq3-OXg.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhFq3-OXg.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/robotomono/v31/L0x5DF4xlVMF-BfR8bXMIjhLq38.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--sk-ink: #181818;--sk-muted: #686868;--sk-line: #e4e4e4;--sk-soft: #f5f5f5;--sk-soft-2: #f4f4f5;--sk-paper: #ffffff;--sk-hover: #383838;--sk-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;--sk-radius-card: 14px;--sk-radius-control: 8px}html.dark,.dark{--sk-ink: #ededed;--sk-muted: #9a9a9a;--sk-line: #262626;--sk-soft: #181818;--sk-soft-2: #1c1c1c;--sk-paper: #111111;--sk-hover: #d4d4d4}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::selection{background:#181818;color:#ffffff}html.dark ::selection{background:#ededed;color:#111111}*:focus-visible{outline:2px solid #767676!important;outline-offset:2px}#page-title,.mdx-content h1,.mdx-content h2,.mdx-content h3,.mdx-content h4{color:var(--sk-ink)}#page-title{font-weight:500!important;letter-spacing:-0.035em!important}.mdx-content h2{font-weight:500;letter-spacing:-0.03em}.mdx-content h3,.mdx-content h4{font-weight:550;letter-spacing:-0.02em}.eyebrow{font-family:var(--sk-mono)!important;font-size:11px!important;font-weight:500!important;letter-spacing:0.14em;text-transform:uppercase;color:var(--sk-muted)!important}.sidebar-group-header{font-family:var(--sk-mono);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:0.14em;color:var(--sk-muted)!important}:not(pre)>code{font-family:var(--sk-mono)!important;background:var(--sk-soft-2)!important;border:1px solid var(--sk-line)!important;border-radius:5px!important;padding:0.1rem 0.35rem!important;color:var(--sk-ink)!important;font-size:0.85em}.mdx-content a:not(.card):not([class*=\"card\"]){text-decoration-color:#b5b5b5;text-underline-offset:4px;transition:color 0.15s ease, text-decoration-color 0.15s ease}.mdx-content a:not(.card):not([class*=\"card\"]):hover{color:var(--sk-hover)!important;text-decoration-color:currentColor}html.dark .mdx-content a:not(.card):not([class*=\"card\"]){text-decoration-color:#555555}#navbar{background:rgba(255, 255, 255, 0.98)!important;border-bottom:1px solid var(--sk-line)!important}html.dark #navbar{background:rgba(17, 17, 17, 0.96)!important}#navbar .nav-logo{height:1.625rem!important}.nav-tabs-item[data-active=\"true\"]{color:var(--sk-ink)!important}.nav-tabs-item[data-active=\"true\"]>div:last-child{background-color:var(--sk-ink)!important}#topbar-cta-button a>span:first-child{background:#181818!important;border-radius:var(--sk-radius-control)!important;opacity:1!important}#topbar-cta-button a:hover>span:first-child{background:#383838!important}html.dark #topbar-cta-button a>span:first-child{background:#ededed!important}html.dark #topbar-cta-button a:hover>span:first-child{background:#ffffff!important}html.dark #topbar-cta-button a .text-white,html.dark #topbar-cta-button a svg{color:#111111!important}#topbar-cta-button a{padding-left:0.875rem!important;padding-right:0.75rem!important}#search-bar-entry{border-radius:var(--sk-radius-control)!important;border-color:var(--sk-line)!important}#sidebar,#sidebar-content{border-color:var(--sk-line)!important}#sidebar-content button[aria-expanded] svg,#sidebar-content [data-state]>svg{display:none!important}#sidebar-content button[aria-expanded]{display:flex!important;align-items:center!important;width:100%;position:relative}#sidebar-content button[aria-expanded]::after{content:'';display:inline-block;width:12px;height:12px;min-width:12px;flex-shrink:0;background-color:currentColor;opacity:0.4;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E\") center / contain no-repeat;margin-left:auto;transition:transform 0.2s ease, opacity 0.2s ease}#sidebar-content button[aria-expanded=\"true\"]::after{transform:rotate(90deg);opacity:0.6}#sidebar-content a[class*=\"bg-primary/10\"]{background:var(--sk-soft-2)!important;color:var(--sk-ink)!important;border-radius:var(--sk-radius-control)!important}html.dark #sidebar-content a[class*=\"bg-primary/10\"]{background:#1f1f1f!important}#sidebar-content a{padding-left:1.5rem!important;border-radius:var(--sk-radius-control)!important}.toc-item[data-active=\"true\"]>a{color:var(--sk-ink)!important;font-weight:550}pre,pre code,.code-block code,.code-group code{font-family:var(--sk-mono)!important}.code-block,.code-group{border-radius:12px!important;border-color:var(--sk-line)!important;box-shadow:none!important}.code-group{background:var(--sk-soft)!important}.code-block [data-component-part=\"code-block-root\"]{border-radius:11px}.code-group [role=\"tab\"],.code-group [role=\"tablist\"] button{font-family:var(--sk-mono)!important;font-size:12px!important;font-weight:500!important}.code-group [role=\"tab\"][aria-selected=\"true\"],.code-group [role=\"tab\"][data-selected],.code-group [role=\"tab\"][data-active=\"true\"]{color:var(--sk-ink)!important}ul[role=\"tablist\"][data-component-part=\"tabs-list\"]{border-bottom:1px solid var(--sk-line)!important}[data-component-part=\"tab-button\"]{font-family:var(--sk-mono)!important;font-size:12.5px!important;font-weight:500!important}[data-component-part=\"tab-button\"][data-active=\"true\"]{color:var(--sk-ink)!important;border-color:var(--sk-ink)!important}[data-component-part=\"tab-button\"][data-active=\"false\"]{color:var(--sk-muted)!important}[data-component-part=\"tab-button\"][data-active=\"false\"]:hover{color:var(--sk-ink)!important}.callout{background:var(--sk-soft)!important;border:1px solid var(--sk-line)!important;border-radius:12px!important}.callout,.callout [data-component-part=\"callout-content\"],.callout [data-component-part=\"callout-content\"] *{color:var(--sk-ink)}.callout [data-component-part=\"callout-content\"]{color:var(--sk-ink)!important}.callout [data-component-part=\"callout-icon\"] svg{color:var(--sk-ink)!important}.callout[data-callout-type=\"warning\"] [data-component-part=\"callout-icon\"] svg{color:#a16207!important}.callout[data-callout-type=\"danger\"] [data-component-part=\"callout-icon\"] svg{color:#b91c1c!important}html.dark .callout[data-callout-type=\"warning\"] [data-component-part=\"callout-icon\"] svg{color:#eab308!important}html.dark .callout[data-callout-type=\"danger\"] [data-component-part=\"callout-icon\"] svg{color:#f87171!important}.callout :not(pre)>code{background:transparent!important;border:none!important;padding:0!important;border-radius:0!important;font-weight:600}.card{border:1px solid var(--sk-line)!important;border-radius:16px!important;box-shadow:none!important;transition:border-color 0.15s ease, background-color 0.15s ease}.card:hover{border-color:var(--sk-ink)!important}.accordion,details{border-color:var(--sk-line)!important;border-radius:12px!important}.mdx-content table th,.mdx-content table td,.mdx-content table tr{border-color:var(--sk-line)!important}.field{border-color:var(--sk-line)!important}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#cfcfcf;border-radius:999px}html.dark ::-webkit-scrollbar-thumb{background:#3a3a3a}#pagination{display:flex!important;justify-content:space-between!important;width:100%!important}footer{border-top:1px solid var(--sk-line)!important}body:has(.changelog-wrapper) #sidebar-content,body:has(.changelog-wrapper) #sidebar,body:has(.changelog-wrapper) #table-of-contents,body:has(.changelog-wrapper) #table-of-contents-content{display:none!important}body:has(.changelog-wrapper) article>h1:first-of-type,body:has(.changelog-wrapper) .page-header,body:has(.changelog-wrapper) article>p:first-of-type{display:none!important}.changelog-wrapper{max-width:620px;margin:0 auto;padding:2rem 0}.changelog-entry{border-left:1px solid var(--sk-line);padding:0 0 2.5rem 1.5rem;position:relative}.changelog-entry:last-child{padding-bottom:0}.changelog-entry::before{content:'';position:absolute;left:-4px;top:6px;width:7px;height:7px;border-radius:50%;background:var(--sk-ink)}.changelog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem}.changelog-date{font-family:var(--sk-mono);font-size:0.75rem;letter-spacing:0.08em;color:var(--sk-muted);font-weight:500}.changelog-tags-row{display:flex;gap:0.375rem}.changelog-tag{font-family:var(--sk-mono);font-size:0.65rem;font-weight:500;color:var(--sk-muted);background:var(--sk-soft);border:1px solid var(--sk-line);padding:0.125rem 0.5rem;border-radius:5px;text-transform:lowercase;letter-spacing:0.02em}.changelog-entry h3{font-size:1.05rem;font-weight:550;letter-spacing:-0.02em;margin:0 0 0.375rem 0;color:var(--sk-ink)}.changelog-entry p{font-size:0.875rem;line-height:1.6;color:var(--sk-muted);margin:0}.changelog-entry code{font-family:var(--sk-mono);font-size:0.8rem}.sk-dg{--sk-dg-keep: var(--sk-ink);--sk-dg-rem: #a16207;--sk-dg-rem-bg: #fdf6e6;--sk-dg-cur: #2454b8;--sk-dg-cur-bg: #eaf1fd;--sk-dg-bnd: #6d28d9;--sk-dg-bnd-bg: #f4efff}html.dark .sk-dg{--sk-dg-rem: #eab308;--sk-dg-rem-bg: #241f0e;--sk-dg-cur: #7aa2f7;--sk-dg-cur-bg: #121c30;--sk-dg-bnd: #b794f6;--sk-dg-bnd-bg: #1d1430}.sk-ex{border:1px solid var(--sk-line);border-radius:12px;background:var(--sk-soft);padding:18px;margin:20px 0 26px}.sk-ex-row{display:flex;align-items:center;gap:12px;margin-top:9px;flex-wrap:wrap}.sk-ex-row:first-of-type{margin-top:0}.sk-cap{font-family:var(--sk-mono);font-size:9.5px;font-weight:500;letter-spacing:0.1em;text-transform:uppercase;color:var(--sk-muted);flex:0 0 72px;text-align:right}.sk-strip{display:flex;gap:3px;flex-wrap:wrap}.sk-strip span{width:24px;height:24px;border-radius:4px;border:1px solid var(--sk-line);background:var(--sk-paper);font-family:var(--sk-mono);font-size:9px;font-weight:500;line-height:22px;text-align:center;color:var(--sk-muted)}.sk-strip span.k{border-color:var(--sk-dg-keep);color:var(--sk-ink)}.sk-strip span.r{background:var(--sk-dg-rem-bg);border-color:var(--sk-dg-rem);color:var(--sk-dg-rem)}.sk-strip span.i{border-color:var(--sk-dg-keep);background:var(--sk-soft-2);color:var(--sk-ink)}.sk-strip span.d{border-color:var(--sk-dg-rem);border-style:dashed;color:var(--sk-dg-rem)}.sk-strip span.c{background:var(--sk-dg-cur-bg);border-color:var(--sk-dg-cur);color:var(--sk-dg-cur)}.sk-strip span.b{background:var(--sk-dg-bnd-bg);border-color:var(--sk-dg-bnd);color:var(--sk-dg-bnd)}.sk-strip span.o{opacity:0.3}.sk-key{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:15px;font-family:var(--sk-mono);font-size:10.5px;font-weight:500;color:var(--sk-muted)}.sk-key i{display:inline-block;width:10px;height:10px;border-radius:3px;border:1px solid var(--sk-line);margin-right:6px;vertical-align:-1px}.sk-key .k i{border-color:var(--sk-dg-keep)}.sk-key .r i{background:var(--sk-dg-rem-bg);border-color:var(--sk-dg-rem)}.sk-key .c i{background:var(--sk-dg-cur-bg);border-color:var(--sk-dg-cur)}.sk-key .b i{background:var(--sk-dg-bnd-bg);border-color:var(--sk-dg-bnd)}.sk-key .i i{background:var(--sk-soft-2);border-color:var(--sk-dg-keep)}.sk-key .d i{border-color:var(--sk-dg-rem);border-style:dashed}.sk-fields{display:flex;flex-direction:column;gap:1px;background:var(--sk-line);border:1px solid var(--sk-line);border-radius:12px;overflow:hidden;margin:20px 0}.sk-f{background:var(--sk-paper);padding:15px 17px}.sk-f-hd{display:flex;justify-content:space-between;align-items:baseline;gap:14px;flex-wrap:wrap}.sk-f-nm{font-family:var(--sk-mono);font-size:13px;font-weight:600;color:var(--sk-ink)}.sk-f-v{font-family:var(--sk-mono);font-size:12.5px;font-weight:600;color:var(--sk-ink);font-variant-numeric:tabular-nums}.sk-f-v.na{color:var(--sk-muted);font-weight:500}.sk-f p{margin:6px 0 0;color:var(--sk-muted);font-size:14px;max-width:66ch}.sk-f .sk-strip{margin-top:11px}.sk-f-tp{margin-top:10px!important;border-left:2px solid var(--sk-line);padding-left:11px;font-size:13px!important}.sk-f-tp strong{color:var(--sk-ink);font-weight:600}.sk-rej table{width:100%}.sk-rej td.rsn{white-space:nowrap;width:1%;font-family:var(--sk-mono)}.sk-rej td.md{white-space:nowrap;width:1%;font-family:var(--sk-mono);font-size:12px;color:var(--sk-muted)}.sk-rej td.md.both{white-space:normal}.sk-rej td.md code{white-space:nowrap;word-break:keep-all;overflow-wrap:normal}.sk-rej td.md.one code,.sk-rej td.md.both code{color:#6d28d9;font-weight:600}html.dark .sk-rej td.md.one code,html.dark .sk-rej td.md.both code{color:#b794f6}"}]}
{"page":{"pagePath":"api/live-streams/clip","slug":"/api/live-streams/clip","pageMetadata":{"title":"Create Clips","api":"POST /v1/live-streams/{id}/clips","description":"Create one or more on-demand video clips from a live stream.","href":"/api/live-streams/clip"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create one or more on-demand video clips from a live stream.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,ParamField,Table,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates one or more video clips from a live stream’s recording. Each clip becomes a standalone `,_jsx(_components.a,{href:`/api/content/object`,children:`content item`}),` (`,_jsx(_components.code,{children:`contentType: \"video\"`}),`) that appears in your feed once processing completes.`]}),`\n`,_jsxs(_components.p,{children:[`You can clip from a stream that is still `,_jsx(_components.code,{children:`active`}),` (real-time clipping while the broadcast is in progress) or from one that has `,_jsx(_components.code,{children:`ended`}),`. Authenticated with your secret key.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This endpoint requires your `,_jsx(_components.strong,{children:`secret`}),` key, so it must be called from a server-side context — never directly from a client app. If you want users of your iOS / Android / web client to be able to create clips themselves (for example, a “clip this moment” button), expose your own backend endpoint that accepts the request from your client (using whatever user-auth your app already uses), then forward to this endpoint with your secret key. That pattern lets you apply your own rate limits, attribution, and abuse controls before a clip is created.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The live stream’s UUID.`})}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body parameters`}),`\n`,_jsxs(ParamField,{body:`clips`,type:`array`,required:true,id:`param-clips`,children:[_jsx(_components.p,{children:`An array of clip ranges to create. Up to 20 per request. Each entry has:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`startSec`})}),` (`,_jsx(_components.code,{children:`number`}),`, required) — Offset from the beginning of the stream, in seconds. Must be `,_jsx(_components.code,{children:`>= 0`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`endSec`})}),` (`,_jsx(_components.code,{children:`number`}),`, required) — End offset, in seconds. Must be greater than `,_jsx(_components.code,{children:`startSec`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`title`})}),` (`,_jsx(_components.code,{children:`string`}),`, optional) — Display title for the resulting content item.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`callbackUrl`,type:`string`,id:`param-callback-url`,children:_jsxs(_components.p,{children:[`An HTTPS URL that ShortKit will `,_jsx(_components.code,{children:`POST`}),` to once each clip’s media is fully processed and ready to play. Useful when you want to publish a clip in your own UI without polling.`]})}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`clip-availability`,children:`Clip availability`}),`\n`,_jsxs(_components.p,{children:[`Clips are returned immediately with a new `,_jsx(_components.code,{children:`contentId`}),`, but the underlying media takes a few seconds to a few minutes to process depending on length. The clip’s `,_jsx(_components.a,{href:`/api/content/get`,children:`content item`}),` will report `,_jsx(_components.code,{children:`uploadStatus: \"processing\"`}),` until processing finishes, then transition to `,_jsx(_components.code,{children:`ready`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`If you provided a `,_jsx(_components.code,{children:`callbackUrl`}),`, ShortKit will `,_jsx(_components.code,{children:`POST`}),` to it once each clip is ready, with the clip’s `,_jsx(_components.code,{children:`contentId`}),` and current state. Otherwise, poll the content item directly.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Reason`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`endSec`}),` is not greater than `,_jsx(_components.code,{children:`startSec`}),`, or the request includes more than 20 clips.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`The live stream does not exist or does not belong to your organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsxs(_components.td,{children:[`The stream’s status does not support clipping yet — it must be `,_jsx(_components.code,{children:`active`}),` or `,_jsx(_components.code,{children:`ended`}),`. If `,_jsx(_components.code,{children:`active`}),`, the recording asset may not be available for the first few seconds of the broadcast; retry shortly.`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light-default","dark":"github-dark-default"}},"config":{},"pageMetadata":{"title":"Create Clips","api":"POST /v1/live-streams/{id}/clips","description":"Create one or more on-demand video clips from a live stream.","href":"/api/live-streams/clip"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,RequestExample,ResponseExample,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates one or more video clips from a live stream’s recording. Each clip becomes a standalone `,_jsx(_components.a,{href:`/api/content/object`,children:`content item`}),` (`,_jsx(_components.code,{children:`contentType: \"video\"`}),`) that appears in your feed once processing completes.`]}),`\n`,_jsxs(_components.p,{children:[`You can clip from a stream that is still `,_jsx(_components.code,{children:`active`}),` (real-time clipping while the broadcast is in progress) or from one that has `,_jsx(_components.code,{children:`ended`}),`. Authenticated with your secret key.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This endpoint requires your `,_jsx(_components.strong,{children:`secret`}),` key, so it must be called from a server-side context — never directly from a client app. If you want users of your iOS / Android / web client to be able to create clips themselves (for example, a “clip this moment” button), expose your own backend endpoint that accepts the request from your client (using whatever user-auth your app already uses), then forward to this endpoint with your secret key. That pattern lets you apply your own rate limits, attribution, and abuse controls before a clip is created.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The live stream’s UUID.`})}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body parameters`}),`\n`,_jsxs(ParamField,{body:`clips`,type:`array`,required:true,id:`param-clips`,children:[_jsx(_components.p,{children:`An array of clip ranges to create. Up to 20 per request. Each entry has:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`startSec`})}),` (`,_jsx(_components.code,{children:`number`}),`, required) — Offset from the beginning of the stream, in seconds. Must be `,_jsx(_components.code,{children:`>= 0`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`endSec`})}),` (`,_jsx(_components.code,{children:`number`}),`, required) — End offset, in seconds. Must be greater than `,_jsx(_components.code,{children:`startSec`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`title`})}),` (`,_jsx(_components.code,{children:`string`}),`, optional) — Display title for the resulting content item.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`callbackUrl`,type:`string`,id:`param-callback-url`,children:_jsxs(_components.p,{children:[`An HTTPS URL that ShortKit will `,_jsx(_components.code,{children:`POST`}),` to once each clip’s media is fully processed and ready to play. Useful when you want to publish a clip in your own UI without polling.`]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default github-dark-default`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0d1117`,color:`#1f2328`,\"--shiki-dark\":`#e6edf3`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"https://api.shortkit.dev/v1/live-streams/5a7b8c9d-e0f1-4234-5678-90abcdef1234/clips\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"Authorization: Bearer sk_live_your_secret_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"clips\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` { \"startSec\": 0, \"endSec\": 30, \"title\": \"Opening\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` { \"startSec\": 600, \"endSec\": 660, \"title\": \"Q\u0026A highlight\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"callbackUrl\": \"https://example.com/webhooks/shortkit/clip-ready\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default github-dark-default`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0d1117`,color:`#1f2328`,\"--shiki-dark\":`#e6edf3`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`resp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"https://api.shortkit.dev/v1/live-streams/5a7b8c9d-e0f1-4234-5678-90abcdef1234/clips\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Bearer sk_live_your_secret_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"clips\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"startSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"endSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Opening\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"startSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`600`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"endSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`660`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Q\u0026A highlight\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"callbackUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"https://example.com/webhooks/shortkit/clip-ready\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`clips `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` resp.json()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"clips\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`]`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`18`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default github-dark-default`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0d1117`,color:`#1f2328`,\"--shiki-dark\":`#e6edf3`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:` resp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"https://api.shortkit.dev/v1/live-streams/5a7b8c9d-e0f1-4234-5678-90abcdef1234/clips\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` method: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` headers: {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` Authorization: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Bearer sk_live_your_secret_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` body: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`({`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` clips: [`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` { startSec: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, endSec: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, title: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Opening\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` { startSec: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`600`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, endSec: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`660`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, title: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Q\u0026A highlight\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` callbackUrl: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"https://example.com/webhooks/shortkit/clip-ready\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` { `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#FFA657`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`clips`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` } } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` resp.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`();`})]}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`201`,numberOfLines:`23`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default github-dark-default`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0d1117`,color:`#1f2328`,\"--shiki-dark\":`#e6edf3`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"clips\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"contentId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"f1a2b3c4-d5e6-4789-90ab-cdef12345678\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"playbackId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"ABCxyz123...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"startSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"endSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Opening\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"contentId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"1234abcd-5678-90ef-12ab-34567890cdef\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"playbackId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"DEFuvw456...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"startSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`600`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"endSec\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`660`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Q\u0026A highlight\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"meta\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"req_clip001\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`clip-availability`,children:`Clip availability`}),`\n`,_jsxs(_components.p,{children:[`Clips are returned immediately with a new `,_jsx(_components.code,{children:`contentId`}),`, but the underlying media takes a few seconds to a few minutes to process depending on length. The clip’s `,_jsx(_components.a,{href:`/api/content/get`,children:`content item`}),` will report `,_jsx(_components.code,{children:`uploadStatus: \"processing\"`}),` until processing finishes, then transition to `,_jsx(_components.code,{children:`ready`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`If you provided a `,_jsx(_components.code,{children:`callbackUrl`}),`, ShortKit will `,_jsx(_components.code,{children:`POST`}),` to it once each clip is ready, with the clip’s `,_jsx(_components.code,{children:`contentId`}),` and current state. Otherwise, poll the content item directly.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Reason`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`endSec`}),` is not greater than `,_jsx(_components.code,{children:`startSec`}),`, or the request includes more than 20 clips.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`The live stream does not exist or does not belong to your organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsxs(_components.td,{children:[`The stream’s status does not support clipping yet — it must be `,_jsx(_components.code,{children:`active`}),` or `,_jsx(_components.code,{children:`ended`}),`. If `,_jsx(_components.code,{children:`active`}),`, the recording asset may not be available for the first few seconds of the broadcast; retry shortly.`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light-default","dark":"github-dark-default"}},"config":{},"pageMetadata":{"title":"Create Clips","api":"POST /v1/live-streams/{id}/clips","description":"Create one or more on-demand video clips from a live stream.","href":"/api/live-streams/clip"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Body parameters","slug":"body-parameters","depth":2,"children":[]},{"title":"Clip availability","slug":"clip-availability","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default github-dark-default\" style=\"background-color:#ffffff;--shiki-dark-bg:#0d1117;color:#1f2328;--shiki-dark:#e6edf3\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#FFA657\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"https://api.shortkit.dev/v1/live-streams/5a7b8c9d-e0f1-4234-5678-90abcdef1234/clips\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"Authorization: Bearer sk_live_your_secret_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"clips\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> { \"startSec\": 0, \"endSec\": 30, \"title\": \"Opening\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> { \"startSec\": 600, \"endSec\": 660, \"title\": \"Q\u0026#x26;A highlight\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"callbackUrl\": \"https://example.com/webhooks/shortkit/clip-ready\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default github-dark-default\" style=\"background-color:#ffffff;--shiki-dark-bg:#0d1117;color:#1f2328;--shiki-dark:#e6edf3\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">resp \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"https://api.shortkit.dev/v1/live-streams/5a7b8c9d-e0f1-4234-5678-90abcdef1234/clips\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#FFA657\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Bearer sk_live_your_secret_key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#FFA657\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"clips\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"startSec\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"endSec\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">30\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Opening\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"startSec\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">600\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"endSec\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">660\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Q\u0026#x26;A highlight\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"callbackUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"https://example.com/webhooks/shortkit/clip-ready\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">clips \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> resp.json()[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">][\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"clips\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">]\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Node.js","html":"\u003cpre class=\"shiki shiki-themes github-light-default github-dark-default\" style=\"background-color:#ffffff;--shiki-dark-bg:#0d1117;color:#1f2328;--shiki-dark:#e6edf3\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"18\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\"> resp\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#D2A8FF\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"https://api.shortkit.dev/v1/live-streams/5a7b8c9d-e0f1-4234-5678-90abcdef1234/clips\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> method: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> headers: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> Authorization: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Bearer sk_live_your_secret_key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> body: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#D2A8FF\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> clips: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> { startSec: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, endSec: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">30\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, title: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Opening\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> { startSec: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">600\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, endSec: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">660\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, title: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Q\u0026#x26;A highlight\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> callbackUrl: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"https://example.com/webhooks/shortkit/clip-ready\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> }),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">const\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> { \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#FFA657\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: { \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">clips\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> } } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> resp.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#D2A8FF\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">();\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201","html":"\u003cpre class=\"shiki shiki-themes github-light-default github-dark-default\" style=\"background-color:#ffffff;--shiki-dark-bg:#0d1117;color:#1f2328;--shiki-dark:#e6edf3\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"23\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"clips\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"contentId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"f1a2b3c4-d5e6-4789-90ab-cdef12345678\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"playbackId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"ABCxyz123...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"startSec\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"endSec\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">30\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Opening\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"contentId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"1234abcd-5678-90ef-12ab-34567890cdef\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"playbackId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"DEFuvw456...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"startSec\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">600\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"endSec\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">660\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Q\u0026#x26;A highlight\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"meta\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"request_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"req_clip001\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create Clips","path":"/v1/live-streams/{id}/clips","servers":[{"url":"https://api.shortkit.dev"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"id":{"schema":[{"type":"string","description":"The live stream’s UUID.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"clips":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"An array of clip ranges to create. Up to 20 per request. Each entry has: `startSec` ( `number` , required) — Offset from the beginning of the stream, in seconds. Must be `>= 0` . `endSec` ( `number` , required) — End offset, in seconds. Must be greater than `startSec` . `title` ( `string` , optional) — Display title for the resulting content item.","required":true}],"callbackUrl":[{"type":"string","description":"An HTTPS URL that ShortKit will `POST` to once each clip’s media is fully processed and ready to play. Useful when you want to publish a clip in your own UI without polling."}]}}],"examples":{"example":{"value":{"clips":[{}],"callbackUrl":"\u003cstring>"}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"shortkit-d6329983","siteName":"shortkit","title":"Create Clips - shortkit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-03T12:09:28.737Z","originalFileLocation":"api/live-streams/clip.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create one or more on-demand video clips from a live stream.\">\u003cmeta data-mint-head name=\"application-name\" content=\"shortkit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/shortkit-d6329983/Bj3XCpJA-IWB2r2g/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/shortkit-d6329983/Bj3XCpJA-IWB2r2g/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/shortkit-d6329983/Bj3XCpJA-IWB2r2g/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/shortkit-d6329983/Bj3XCpJA-IWB2r2g/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/shortkit-d6329983/Bj3XCpJA-IWB2r2g/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/shortkit-d6329983/Bj3XCpJA-IWB2r2g/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/shortkit-d6329983/Bj3XCpJA-IWB2r2g/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/shortkit-d6329983/Bj3XCpJA-IWB2r2g/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/shortkit-d6329983/Bj3XCpJA-IWB2r2g/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Clips - shortkit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create one or more on-demand video clips from a live stream.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"shortkit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.shortkit.dev/api/live-streams/clip\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://shortkit-d6329983.mintlify.site/_mintlify/api/og/v2?division=Live+Streams\u0026amp;title=Create+Clips\u0026amp;description=Create+one+or+more+on-demand+video+clips+from+a+live+stream.\u0026amp;theme=ffe1833799302b20bddde6e9\u0026amp;signature=4980899795d799163870eb7f679dbb659151d7fbde9550887cdfcd0044b234cc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Clips - shortkit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create one or more on-demand video clips from a live stream.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://shortkit-d6329983.mintlify.site/_mintlify/api/og/v2?division=Live+Streams\u0026amp;title=Create+Clips\u0026amp;description=Create+one+or+more+on-demand+video+clips+from+a+live+stream.\u0026amp;theme=ffe1833799302b20bddde6e9\u0026amp;signature=4980899795d799163870eb7f679dbb659151d7fbde9550887cdfcd0044b234cc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/shortkit-d6329983/Bj3XCpJA-IWB2r2g/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"shortkit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#181818\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.shortkit.dev/api/live-streams/clip\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/live-streams/clip.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.shortkit.dev/#organization\",\"name\":\"shortkit\",\"url\":\"https://docs.shortkit.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/shortkit-d6329983/xRYeGsJb7E_Zbka4/logo/light.svg?fit=max\u0026auto=format\u0026n=xRYeGsJb7E_Zbka4\u0026q=85\u0026s=6e9cf028d262e4df25460990c6b6fb92\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.shortkit.dev#website\",\"name\":\"shortkit\",\"url\":\"https://docs.shortkit.dev\",\"publisher\":{\"@id\":\"https://docs.shortkit.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.shortkit.dev/api/live-streams/clip#webpage\",\"url\":\"https://docs.shortkit.dev/api/live-streams/clip\",\"name\":\"Create Clips\",\"description\":\"Create one or more on-demand video clips from a live stream.\",\"dateModified\":\"2026-10-03T12:09:28.737Z\",\"isPartOf\":{\"@id\":\"https://docs.shortkit.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.shortkit.dev/api/live-streams/clip#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.shortkit.dev/api/live-streams/clip#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.shortkit.dev/api/content/object\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Live Streams\",\"item\":\"https://docs.shortkit.dev/api/live-streams/object\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Clips\",\"item\":\"https://docs.shortkit.dev/api/live-streams/clip\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.shortkit.dev/api/live-streams/clip#apireference\",\"headline\":\"Create Clips\",\"name\":\"Create Clips\",\"description\":\"Create one or more on-demand video clips from a live stream.\",\"url\":\"https://docs.shortkit.dev/api/live-streams/clip\",\"mainEntityOfPage\":{\"@id\":\"https://docs.shortkit.dev/api/live-streams/clip#webpage\"},\"dateModified\":\"2026-10-03T12:09:28.737Z\",\"publisher\":{\"@id\":\"https://docs.shortkit.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.shortkit.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"shortkit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"shortkit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/live-streams/clip.md","siteName":"shortkit","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Docs","icon":"book-open","pages":[{"title":"Docs","href":"/sdk/installation"}]},{"tab":"API Reference","icon":"square-terminal","groups":[{"group":"Overview","pages":[{"title":"API Introduction","href":"/api/overview"},{"title":"Authentication","href":"/api/authentication"},{"title":"Errors","href":"/api/errors"}]},{"group":"Reference","pages":[{"group":"Content","expanded":true,"pages":[{"title":"The Content Object","href":"/api/content/object"},{"title":"Upload Content","api":"POST /v1/content/upload","href":"/api/content/upload"},{"title":"Create Image Carousel","api":"POST /v1/content/images","href":"/api/content/images"},{"title":"Import Content","api":"POST /v1/content/import","href":"/api/content/import"},{"title":"List Content","api":"GET /v1/content","href":"/api/content/list"},{"title":"Get Content","api":"GET /v1/content/{id}","href":"/api/content/get"},{"title":"Playback token","href":"/api/content/playback-token"},{"title":"Get Content Count","api":"GET /v1/content/count","href":"/api/content/count"},{"title":"Get Catalogue Breakdown","sidebarTitle":"Catalogue breakdown","api":"GET /v1/feed/facets","href":"/api/content/facets"},{"title":"Search Content","api":"GET /v1/content/search","href":"/api/content/search"},{"title":"Update Content","api":"PATCH /v1/content/{id}","href":"/api/content/update"},{"title":"Bulk update content metadata","api":"POST /v1/content/bulk-update","href":"/api/content/bulk-update"},{"title":"Delete Content","api":"DELETE /v1/content/{id}","href":"/api/content/delete"}]},{"group":"Live Streams","expanded":true,"pages":[{"title":"The Live Stream Object","href":"/api/live-streams/object"},{"title":"Create Live Stream","api":"POST /v1/live-streams","href":"/api/live-streams/create"},{"title":"List Live Streams","api":"GET /v1/live-streams","href":"/api/live-streams/list"},{"title":"Get Live Stream","api":"GET /v1/live-streams/{id}","href":"/api/live-streams/get"},{"title":"Get Live Stream Status","api":"GET /v1/live-streams/status","href":"/api/live-streams/status"},{"title":"End Live Stream","api":"POST /v1/live-streams/{id}/end","href":"/api/live-streams/end"},{"title":"Delete Live Stream","api":"DELETE /v1/live-streams/{id}","description":"Delete a live stream and remove it from the feed.","href":"/api/live-streams/delete"},{"title":"Create Clips","api":"POST /v1/live-streams/{id}/clips","href":"/api/live-streams/clip"}]},{"group":"Surveys","expanded":true,"pages":[{"title":"The Survey Object","description":"Surveys are short polls injected directly into the content feed. This page covers the object structure, status lifecycle, and placement rules.","href":"/api/surveys/object"},{"title":"Create Survey","api":"POST /v1/surveys","href":"/api/surveys/create"},{"title":"List Surveys","api":"GET /v1/surveys","href":"/api/surveys/list"},{"title":"Get Survey","api":"GET /v1/surveys/{id}","href":"/api/surveys/get"},{"title":"Update Survey","api":"PUT /v1/surveys/{id}","href":"/api/surveys/update"},{"title":"Delete Survey","api":"DELETE /v1/surveys/{id}","href":"/api/surveys/delete"},{"title":"Submit Response","api":"POST /v1/surveys/{id}/responses","href":"/api/surveys/submit-response"}]},{"group":"Analytics \u0026 Events","expanded":true,"pages":[{"title":"The Event Object","href":"/api/analytics/event-object"},{"title":"Event Forwarding","sidebarTitle":"Event Forwarding","href":"/api/analytics/event-forwarding"},{"title":"List Events","api":"GET /v1/events/explore","href":"/api/analytics/list-events"},{"title":"Metrics Overview","href":"/api/analytics/metrics"},{"title":"Get Metric","api":"GET /v1/metrics/{metric}","href":"/api/analytics/get-metric"},{"title":"Get Metric Timeseries","api":"GET /v1/metrics/{metric}/timeseries","href":"/api/analytics/get-timeseries"}]},{"group":"Ad Configuration","expanded":true,"pages":[{"title":"The Ad Config Object","href":"/api/ad-config/object"},{"title":"Get Ad Config","api":"GET /v1/ad-config","href":"/api/ad-config/get"},{"title":"Update Ad Config","api":"PUT /v1/ad-config","href":"/api/ad-config/update"}]}]}]},{"tab":"Changelog","icon":"newspaper","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Create Clips - shortkit","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js"]}