{ "data": null, "meta": { "request_id": "req_5c852d7559cc" }, "errors": [ { "code": "invalid_images", "message": "1 of 2 images could not be used; nothing was created", "details": [ { "position": 1, "code": "unsupported_image", "message": "File is not a supported image (JPEG, PNG, WebP or GIF)" } ] } ]}
Create an image carousel — a single image or up to 10 — in one request. Send each image as an uploaded file, as a public URL that ShortKit downloads, or a mix of both. ShortKit stores and checks every image and returns the carousel ready, published if your organization auto-publishes. A single image is a one-image carousel.This endpoint requires a secret key.
Prefer this endpoint for new integrations. Upload plus finalize remains available for carousels whose files total more than 30 MB, and Import for batches of up to 100 items.
The carousel’s images, in display order. Min 1, max 10. Each object has exactly one of file or sourceUrl:
file (string) — Name of a file part in this request.
sourceUrl (string) — Public http or https URL. ShortKit downloads it with a 15-second limit and at most 3 redirects. Private and internal addresses are refused.
altText (string) — Accessibility text for the image. Max 500 characters.
Your own identifier for this carousel. Max 255 characters. Repeating a request with the same externalId returns the existing carousel with 200 and replayed: true instead of creating a second one, so a timed-out request is safe to retry.
The request is all-or-nothing. If any image can’t be used, nothing is created and the response lists every failed image.
Status
Error code
When
400
invalid_request
Invalid metadata JSON, a missing metadata part, a form field other than metadata and the file parts, an unknown field (such as contentType), a file that names no part or a part no image uses, 0 or more than 10 images, an image with both or neither of file and sourceUrl, or a non-string customMetadata value. Field errors are listed in details.
401
invalid_api_key
The Authorization header is missing or isn’t a valid secret key. A publishable key is rejected.
408
request_timeout
The request body wasn’t received within 120 seconds.
409
conflict
externalId already belongs to content that isn’t an image carousel.
413
payload_too_large
The request body is larger than 30 MB.
415
unsupported_media_type
The request Content-Type isn’t multipart/form-data or application/json.
422
invalid_images
One or more images can’t be used. details lists each failed position with a code: too_large, unsupported_image, fetch_failed, blocked_address, timeout, or invalid_url.
429
rate_limited
Too many carousels are being created at once. Retry after the number of seconds in the Retry-After header.
503
service_unavailable
Image storage is briefly unavailable. Retry the request.
{"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":""},"chroma":{"liveDeploymentHistoryId":"6ae27c3930a2420e754945fb","collectionId":"d628e238-7bdc-49fb-b5d1-0f6cc0b356d7","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae27c3930a2420e754945fb"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae27c3930a2420e754945fb","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":38},{"language":"default","tag":"Reference","count":35},{"language":"default","tag":"Docs","count":16},{"language":"default","tag":"Content","count":15},{"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":"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":"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":"llms-txt-v2","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","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}.dark,html.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:#fff}html.dark ::selection{background:#ededed;color:#111}: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{letter-spacing:-.035em!important}.mdx-content h2{font-weight:500;letter-spacing:-.03em}.mdx-content h3,.mdx-content h4{font-weight:550;letter-spacing:-.02em}.eyebrow,.sidebar-group-header{text-transform:uppercase;letter-spacing:.14em;color:var(--sk-muted)!important}#page-title,.eyebrow{font-weight:500!important}.eyebrow{font-family:var(--sk-mono)!important;font-size:11px!important}.sidebar-group-header{font-family:var(--sk-mono);font-size:11px;font-weight:500}: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:.1rem .35rem!important;color:var(--sk-ink)!important;font-size:.85em}.mdx-content a:not(.card):not([class*=card]){text-decoration-color:#b5b5b5;text-underline-offset:4px;transition:color .15s ease,text-decoration-color .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:#555}#navbar{background:rgba(255,255,255,.98)!important;border-bottom:1px solid var(--sk-line)!important}html.dark #navbar{background:rgba(17,17,17,.96)!important}#navbar .nav-logo{height:1.625rem!important}.code-group [role=tab][aria-selected=true],.code-group [role=tab][data-active=true],.code-group [role=tab][data-selected],.nav-tabs-item[data-active=true],[data-component-part=tab-button][data-active=false]:hover{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:#fff!important}html.dark #topbar-cta-button a .text-white,html.dark #topbar-cta-button a svg{color:#111!important}#topbar-cta-button a{padding-left:.875rem!important;padding-right:.75rem!important}#search-bar-entry,#sidebar-content a,#sidebar-content a[class*=\"bg-primary/10\"]{border-radius:var(--sk-radius-control)!important}#search-bar-entry,#sidebar,#sidebar-content,.code-block,.code-group,.mdx-content table td,.mdx-content table th,.mdx-content table tr{border-color:var(--sk-line)!important}#sidebar-content [data-state]>svg,#sidebar-content button[aria-expanded] 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:.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 .2s ease,opacity .2s ease}#sidebar-content button[aria-expanded=true]::after{transform:rotate(90deg);opacity:.6}#sidebar-content a[class*=\"bg-primary/10\"]{background:var(--sk-soft-2)!important;color:var(--sk-ink)!important}html.dark #sidebar-content a[class*=\"bg-primary/10\"]{background:#1f1f1f!important}#sidebar-content a{padding-left:1.5rem!important}.toc-item[data-active=true]>a{color:var(--sk-ink)!important;font-weight:550}.code-block code,.code-group code,pre,pre code{font-family:var(--sk-mono)!important}.code-block,.code-group{border-radius:12px!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,[data-component-part=tab-button]{font-family:var(--sk-mono)!important;font-size:12px!important;font-weight:500!important}ul[role=tablist][data-component-part=tabs-list]{border-bottom:1px solid var(--sk-line)!important}[data-component-part=tab-button]{font-size:12.5px!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}.callout{background:var(--sk-soft)!important;border:1px solid var(--sk-line)!important;border-radius:12px!important}.callout,.callout [data-component-part=callout-content] *{color:var(--sk-ink)}.callout [data-component-part=callout-content],.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:0 0!important;border:0!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 .15s ease,background-color .15s ease}.card:hover{border-color:var(--sk-ink)!important}.accordion,details{border-radius:12px!important}.accordion,.field,details{border-color:var(--sk-line)!important}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-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,body:has(.changelog-wrapper) #sidebar-content,body:has(.changelog-wrapper) #table-of-contents,body:has(.changelog-wrapper) #table-of-contents-content{display:none!important}body:has(.changelog-wrapper) .page-header,body:has(.changelog-wrapper) article>h1:first-of-type,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:.5rem}.changelog-date{font-family:var(--sk-mono);font-size:.75rem;letter-spacing:.08em;color:var(--sk-muted);font-weight:500}.changelog-tags-row{display:flex;gap:.375rem}.changelog-tag{font-family:var(--sk-mono);font-size:.65rem;font-weight:500;color:var(--sk-muted);background:var(--sk-soft);border:1px solid var(--sk-line);padding:.125rem .5rem;border-radius:5px;text-transform:lowercase;letter-spacing:.02em}.changelog-entry h3{font-size:1.05rem;font-weight:550;letter-spacing:-.02em;margin:0 0 .375rem;color:var(--sk-ink)}.changelog-entry p{font-size:.875rem;line-height:1.6;color:var(--sk-muted);margin:0}.changelog-entry code{font-family:var(--sk-mono);font-size:.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:.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-key,.sk-strip span{font-family:var(--sk-mono);font-weight:500}.sk-strip span{width:24px;height:24px;border-radius:4px;border:1px solid var(--sk-line);background:var(--sk-paper);font-size:9px;line-height:22px;text-align:center}.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:.3}.sk-key{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:15px;font-size:10.5px;color:var(--sk-muted)}.sk-fields,.sk-key i{border:1px solid var(--sk-line)}.sk-key i{display:inline-block;width:10px;height:10px;border-radius:3px;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-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,.sk-f-v{font-family:var(--sk-mono);font-size:13px;font-weight:600;color:var(--sk-ink)}.sk-f-v{font-size:12.5px;font-variant-numeric:tabular-nums}.sk-f p,.sk-f-v.na,.sk-strip span{color:var(--sk-muted)}.sk-f-v.na{font-weight:500}.sk-f p{margin:6px 0 0;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.md,.sk-rej td.rsn{white-space:nowrap;width:1%;font-family:var(--sk-mono)}.sk-rej td.md{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.both code,.sk-rej td.md.one code{color:#6d28d9;font-weight:600}html.dark .sk-rej td.md.both code,html.dark .sk-rej td.md.one code{color:#b794f6}"}],"page":{"pagePath":"api/content/images","slug":"/api/content/images","pageMetadata":{"title":"Create Image Carousel","api":"POST /v1/content/images","description":"Create a finished image carousel in one request, from uploaded files, image URLs, or both.","href":"/api/content/images"},"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 a finished image carousel in one request, from uploaded files, image URLs, or both.\"\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,Info,ParamField,ResponseField,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Create an image carousel — a single image or up to 10 — in one request. Send each image as an uploaded file, as a public URL that ShortKit downloads, or a mix of both. ShortKit stores and checks every image and returns the carousel `,_jsx(_components.code,{children:`ready`}),`, published if your organization auto-publishes. A single image is a one-image carousel.`]}),`\n`,_jsxs(_components.p,{children:[`This endpoint requires a `,_jsx(_components.strong,{children:`secret key`}),`.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Prefer this endpoint for new integrations. `,_jsx(_components.a,{href:`/api/content/upload#uploading-a-carousel`,children:`Upload`}),` plus finalize remains available for carousels whose files total more than 30 MB, and `,_jsx(_components.a,{href:`/api/content/import`,children:`Import`}),` for batches of up to 100 items.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-format`,children:`Request format`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`multipart/form-data`}),` with:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`a `,_jsx(_components.code,{children:`metadata`}),` part — a JSON string containing the fields below`]}),`\n`,_jsxs(_components.li,{children:[`one file part per uploaded image, named however you like; each image’s `,_jsx(_components.code,{children:`file`}),` field refers to it by that name`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If every image is a `,_jsx(_components.code,{children:`sourceUrl`}),`, you can send the same fields as `,_jsx(_components.code,{children:`application/json`}),` instead.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`title`,type:`string`,required:true,id:`param-title`,children:_jsx(_components.p,{children:`Display title. Max 200 characters.`})}),`\n`,_jsxs(ParamField,{body:`images`,type:`object[]`,required:true,id:`param-images`,children:[_jsxs(_components.p,{children:[`The carousel’s images, in display order. Min 1, max 10. Each object has exactly one of `,_jsx(_components.code,{children:`file`}),` or `,_jsx(_components.code,{children:`sourceUrl`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`file`}),` (string) — Name of a file part in this request.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sourceUrl`}),` (string) — Public `,_jsx(_components.code,{children:`http`}),` or `,_jsx(_components.code,{children:`https`}),` URL. ShortKit downloads it with a 15-second limit and at most 3 redirects. Private and internal addresses are refused.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`altText`}),` (string) — Accessibility text for the image. Max 500 characters.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Optional description. Max 2000 characters.`})}),`\n`,_jsx(ParamField,{body:`tags`,type:`string[]`,id:`param-tags`,children:_jsx(_components.p,{children:`Tags for categorization and filtering.`})}),`\n`,_jsx(ParamField,{body:`customMetadata`,type:`object`,id:`param-custom-metadata`,children:_jsx(_components.p,{children:`Key-value pairs passed through to the feed. Values must be strings.`})}),`\n`,_jsx(ParamField,{body:`section`,type:`string`,id:`param-section`,children:_jsxs(_components.p,{children:[`Editorial section (e.g., `,_jsx(_components.code,{children:`\"Sports\"`}),`, `,_jsx(_components.code,{children:`\"News\"`}),`). Max 200 characters.`]})}),`\n`,_jsx(ParamField,{body:`author`,type:`string`,id:`param-author`,children:_jsx(_components.p,{children:`Content author name. Max 200 characters.`})}),`\n`,_jsx(ParamField,{body:`externalId`,type:`string`,id:`param-external-id`,children:_jsxs(_components.p,{children:[`Your own identifier for this carousel. Max 255 characters. Repeating a request with the same `,_jsx(_components.code,{children:`externalId`}),` returns the existing carousel with `,_jsx(_components.code,{children:`200`}),` and `,_jsx(_components.code,{children:`replayed: true`}),` instead of creating a second one, so a timed-out request is safe to retry.`]})}),`\n`,_jsx(ParamField,{body:`callbackUrl`,type:`string`,id:`param-callback-url`,children:_jsxs(_components.p,{children:[`Receives a `,_jsx(_components.code,{children:`content.imported`}),` callback once the carousel is created. See `,_jsx(_components.a,{href:`/api/content/upload#callback-events`,children:`Callback events`}),`.`]})}),`\n`,_jsx(ParamField,{body:`protected`,type:`boolean`,id:`param-protected`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, playback is gated behind a short-lived signed URL. When omitted, defaults to your organization’s default. See `,_jsx(_components.a,{href:`/guides/protected-content`,children:`Protected Content`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`image-requirements`,children:`Image requirements`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`JPEG, PNG, WebP, or GIF. The format is read from the image itself, not from the declared content type.`}),`\n`,_jsx(_components.li,{children:`At most 10 MB and 40 megapixels per image.`}),`\n`,_jsxs(_components.li,{children:[`The whole request body can be at most 30 MB. For larger carousels, send some images as `,_jsx(_components.code,{children:`sourceUrl`}),`.`]}),`\n`]}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`201`}),` with the created carousel. A repeated `,_jsx(_components.code,{children:`externalId`}),` returns `,_jsx(_components.code,{children:`200`}),` with the existing carousel and `,_jsx(_components.code,{children:`replayed: true`}),`.`]}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"ready\"`}),` for a newly created carousel.`]})}),`\n`,_jsx(ResponseField,{name:`publishStatus`,type:`string`,id:`param-publish-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"published\"`}),` when your organization auto-publishes, otherwise `,_jsx(_components.code,{children:`\"unpublished\"`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`images`,type:`object[]`,id:`param-images-1`,children:_jsxs(_components.p,{children:[`The stored images in display order: `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`position`}),`, `,_jsx(_components.code,{children:`imageUrl`}),`, and `,_jsx(_components.code,{children:`altText`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`replayed`,type:`boolean`,id:`param-replayed`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the response is an existing carousel returned for a repeated `,_jsx(_components.code,{children:`externalId`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsx(_components.p,{children:`The request is all-or-nothing. If any image can’t be used, nothing is created and the response lists every failed image.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Error code`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsxs(_components.td,{children:[`Invalid metadata JSON, a missing `,_jsx(_components.code,{children:`metadata`}),` part, a form field other than `,_jsx(_components.code,{children:`metadata`}),` and the file parts, an unknown field (such as `,_jsx(_components.code,{children:`contentType`}),`), a `,_jsx(_components.code,{children:`file`}),` that names no part or a part no image uses, 0 or more than 10 images, an image with both or neither of `,_jsx(_components.code,{children:`file`}),` and `,_jsx(_components.code,{children:`sourceUrl`}),`, or a non-string `,_jsx(_components.code,{children:`customMetadata`}),` value. Field errors are listed in `,_jsx(_components.code,{children:`details`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_api_key`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`Authorization`}),` header is missing or isn’t a valid secret key. A publishable key is rejected.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`408`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`request_timeout`})}),_jsx(_components.td,{children:`The request body wasn’t received within 120 seconds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`409`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`conflict`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`externalId`}),` already belongs to content that isn’t an image carousel.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`413`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`payload_too_large`})}),_jsx(_components.td,{children:`The request body is larger than 30 MB.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`415`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`unsupported_media_type`})}),_jsxs(_components.td,{children:[`The request `,_jsx(_components.code,{children:`Content-Type`}),` isn’t `,_jsx(_components.code,{children:`multipart/form-data`}),` or `,_jsx(_components.code,{children:`application/json`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`422`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_images`})}),_jsxs(_components.td,{children:[`One or more images can’t be used. `,_jsx(_components.code,{children:`details`}),` lists each failed `,_jsx(_components.code,{children:`position`}),` with a `,_jsx(_components.code,{children:`code`}),`: `,_jsx(_components.code,{children:`too_large`}),`, `,_jsx(_components.code,{children:`unsupported_image`}),`, `,_jsx(_components.code,{children:`fetch_failed`}),`, `,_jsx(_components.code,{children:`blocked_address`}),`, `,_jsx(_components.code,{children:`timeout`}),`, or `,_jsx(_components.code,{children:`invalid_url`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`429`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_limited`})}),_jsxs(_components.td,{children:[`Too many carousels are being created at once. Retry after the number of seconds in the `,_jsx(_components.code,{children:`Retry-After`}),` header.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`503`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`service_unavailable`})}),_jsx(_components.td,{children:`Image storage is briefly unavailable. Retry the request.`})]})]})]})]})}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 Image Carousel","api":"POST /v1/content/images","description":"Create a finished image carousel in one request, from uploaded files, image URLs, or both.","href":"/api/content/images"}}},"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,Info,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Create an image carousel — a single image or up to 10 — in one request. Send each image as an uploaded file, as a public URL that ShortKit downloads, or a mix of both. ShortKit stores and checks every image and returns the carousel `,_jsx(_components.code,{children:`ready`}),`, published if your organization auto-publishes. A single image is a one-image carousel.`]}),`\n`,_jsxs(_components.p,{children:[`This endpoint requires a `,_jsx(_components.strong,{children:`secret key`}),`.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Prefer this endpoint for new integrations. `,_jsx(_components.a,{href:`/api/content/upload#uploading-a-carousel`,children:`Upload`}),` plus finalize remains available for carousels whose files total more than 30 MB, and `,_jsx(_components.a,{href:`/api/content/import`,children:`Import`}),` for batches of up to 100 items.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-format`,children:`Request format`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`multipart/form-data`}),` with:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`a `,_jsx(_components.code,{children:`metadata`}),` part — a JSON string containing the fields below`]}),`\n`,_jsxs(_components.li,{children:[`one file part per uploaded image, named however you like; each image’s `,_jsx(_components.code,{children:`file`}),` field refers to it by that name`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If every image is a `,_jsx(_components.code,{children:`sourceUrl`}),`, you can send the same fields as `,_jsx(_components.code,{children:`application/json`}),` instead.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`title`,type:`string`,required:true,id:`param-title`,children:_jsx(_components.p,{children:`Display title. Max 200 characters.`})}),`\n`,_jsxs(ParamField,{body:`images`,type:`object[]`,required:true,id:`param-images`,children:[_jsxs(_components.p,{children:[`The carousel’s images, in display order. Min 1, max 10. Each object has exactly one of `,_jsx(_components.code,{children:`file`}),` or `,_jsx(_components.code,{children:`sourceUrl`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`file`}),` (string) — Name of a file part in this request.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sourceUrl`}),` (string) — Public `,_jsx(_components.code,{children:`http`}),` or `,_jsx(_components.code,{children:`https`}),` URL. ShortKit downloads it with a 15-second limit and at most 3 redirects. Private and internal addresses are refused.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`altText`}),` (string) — Accessibility text for the image. Max 500 characters.`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Optional description. Max 2000 characters.`})}),`\n`,_jsx(ParamField,{body:`tags`,type:`string[]`,id:`param-tags`,children:_jsx(_components.p,{children:`Tags for categorization and filtering.`})}),`\n`,_jsx(ParamField,{body:`customMetadata`,type:`object`,id:`param-custom-metadata`,children:_jsx(_components.p,{children:`Key-value pairs passed through to the feed. Values must be strings.`})}),`\n`,_jsx(ParamField,{body:`section`,type:`string`,id:`param-section`,children:_jsxs(_components.p,{children:[`Editorial section (e.g., `,_jsx(_components.code,{children:`\"Sports\"`}),`, `,_jsx(_components.code,{children:`\"News\"`}),`). Max 200 characters.`]})}),`\n`,_jsx(ParamField,{body:`author`,type:`string`,id:`param-author`,children:_jsx(_components.p,{children:`Content author name. Max 200 characters.`})}),`\n`,_jsx(ParamField,{body:`externalId`,type:`string`,id:`param-external-id`,children:_jsxs(_components.p,{children:[`Your own identifier for this carousel. Max 255 characters. Repeating a request with the same `,_jsx(_components.code,{children:`externalId`}),` returns the existing carousel with `,_jsx(_components.code,{children:`200`}),` and `,_jsx(_components.code,{children:`replayed: true`}),` instead of creating a second one, so a timed-out request is safe to retry.`]})}),`\n`,_jsx(ParamField,{body:`callbackUrl`,type:`string`,id:`param-callback-url`,children:_jsxs(_components.p,{children:[`Receives a `,_jsx(_components.code,{children:`content.imported`}),` callback once the carousel is created. See `,_jsx(_components.a,{href:`/api/content/upload#callback-events`,children:`Callback events`}),`.`]})}),`\n`,_jsx(ParamField,{body:`protected`,type:`boolean`,id:`param-protected`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, playback is gated behind a short-lived signed URL. When omitted, defaults to your organization’s default. See `,_jsx(_components.a,{href:`/guides/protected-content`,children:`Protected Content`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`image-requirements`,children:`Image requirements`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`JPEG, PNG, WebP, or GIF. The format is read from the image itself, not from the declared content type.`}),`\n`,_jsx(_components.li,{children:`At most 10 MB and 40 megapixels per image.`}),`\n`,_jsxs(_components.li,{children:[`The whole request body can be at most 30 MB. For larger carousels, send some images as `,_jsx(_components.code,{children:`sourceUrl`}),`.`]}),`\n`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,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:`12`,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/content/images`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` 'metadata={`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"title\": \"Spring drop hero\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"externalId\": \"post-98765\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"customMetadata\": {\"productId\": \"SKU-12345\"},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"images\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` {\"file\": \"hero\", \"altText\": \"Red sneaker\"},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` {\"sourceUrl\": \"https://cdn.example.com/spring/side.jpg\", \"altText\": \"Side view\"}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` ]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` };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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` [email protected]`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`24`,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:`24`,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:` json`})]}),`\n`,_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:`metadata `}),_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:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Spring drop hero\"`}),_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:` \"externalId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"post-98765\"`}),_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:` \"customMetadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"SKU-12345\"`}),_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:` \"images\"`}),_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:`\"file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"hero\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"altText\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Red sneaker\"`}),_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:`\"sourceUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"https://cdn.example.com/spring/side.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"altText\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Side view\"`}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"hero.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"rb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` hero:`})]}),`\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/content/images\"`}),_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:` files`}),_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:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, json.dumps(metadata), `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"application/json\"`}),_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:` \"hero\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"hero.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, hero, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"image/jpeg\"`}),_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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`carousel `}),_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:`]`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`21`,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:`21`,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:` { readFile } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:` \"fs/promises\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_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:` form`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:` FormData`}),_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:`form.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` title: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Spring drop hero\"`}),_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:` externalId: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"post-98765\"`}),_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:` customMetadata: { productId: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"SKU-12345\"`}),_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:` images: [`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` { file: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"hero\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, altText: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Red sneaker\"`}),_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:` { sourceUrl: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"https://cdn.example.com/spring/side.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, altText: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Side view\"`}),_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:`form.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"hero\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:` Blob`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`([`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#FF7B72`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:` readFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"hero.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`)], { type: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"image/jpeg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` }), `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"hero.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_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:` response`}),_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:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"https://api.shortkit.dev/v1/content/images\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` headers: { `}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:` body: form,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\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:`carousel`}),_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:` response.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#D2A8FF`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`();`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`201`,numberOfLines:`35`,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:`35`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"3f2a9c1e-7b4d-4e8a-9f10-2c6d8e1b5a77\"`}),_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:` \"externalId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"post-98765\"`}),_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:` \"contentType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"carousel\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"ready\"`}),_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:` \"publishStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"published\"`}),_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:`\"Spring drop hero\"`}),_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:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`null`}),_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:` \"tags\"`}),_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:` \"customMetadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#7EE787`},children:`\"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"SKU-12345\"`}),_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:` \"section\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`null`}),_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:` \"author\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`null`}),_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:` \"protected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`false`}),_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:` \"images\"`}),_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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"b50322db-20dd-47b2-be24-2fb7e3c2b279\"`}),_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:` \"position\"`}),_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:` \"imageUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"https://image.media.shortkit.dev/carousels/5b85b33b78c048ca.jpg\"`}),_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:` \"altText\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Red sneaker\"`})]}),`\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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"e1c8a7f2-9d3b-4c56-8a01-7f2e6b9d4c33\"`}),_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:` \"position\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`1`}),_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:` \"imageUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"https://image.media.shortkit.dev/carousels/bfd496b145d5416a.jpg\"`}),_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:` \"altText\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"Side view\"`})]}),`\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:` \"replayed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`false`}),_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:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"2026-10-27T18:58:09.541869+00:00\"`})]}),`\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_09eeb351006b\"`})]}),`\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(CodeBlock,{filename:`422`,numberOfLines:`19`,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:`19`,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:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`null`}),_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_5c852d7559cc\"`})]}),`\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:` \"errors\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"invalid_images\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"1 of 2 images could not be used; nothing was created\"`}),_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:` \"details\"`}),_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:` \"position\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#79C0FF`},children:`1`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"unsupported_image\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#E6EDF3`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#A5D6FF`},children:`\"File is not a supported image (JPEG, PNG, WebP or GIF)\"`})]}),`\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`,_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:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`201`}),` with the created carousel. A repeated `,_jsx(_components.code,{children:`externalId`}),` returns `,_jsx(_components.code,{children:`200`}),` with the existing carousel and `,_jsx(_components.code,{children:`replayed: true`}),`.`]}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"ready\"`}),` for a newly created carousel.`]})}),`\n`,_jsx(ResponseField,{name:`publishStatus`,type:`string`,id:`param-publish-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"published\"`}),` when your organization auto-publishes, otherwise `,_jsx(_components.code,{children:`\"unpublished\"`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`images`,type:`object[]`,id:`param-images-1`,children:_jsxs(_components.p,{children:[`The stored images in display order: `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`position`}),`, `,_jsx(_components.code,{children:`imageUrl`}),`, and `,_jsx(_components.code,{children:`altText`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`replayed`,type:`boolean`,id:`param-replayed`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the response is an existing carousel returned for a repeated `,_jsx(_components.code,{children:`externalId`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsx(_components.p,{children:`The request is all-or-nothing. If any image can’t be used, nothing is created and the response lists every failed image.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Error code`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsxs(_components.td,{children:[`Invalid metadata JSON, a missing `,_jsx(_components.code,{children:`metadata`}),` part, a form field other than `,_jsx(_components.code,{children:`metadata`}),` and the file parts, an unknown field (such as `,_jsx(_components.code,{children:`contentType`}),`), a `,_jsx(_components.code,{children:`file`}),` that names no part or a part no image uses, 0 or more than 10 images, an image with both or neither of `,_jsx(_components.code,{children:`file`}),` and `,_jsx(_components.code,{children:`sourceUrl`}),`, or a non-string `,_jsx(_components.code,{children:`customMetadata`}),` value. Field errors are listed in `,_jsx(_components.code,{children:`details`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_api_key`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`Authorization`}),` header is missing or isn’t a valid secret key. A publishable key is rejected.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`408`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`request_timeout`})}),_jsx(_components.td,{children:`The request body wasn’t received within 120 seconds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`409`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`conflict`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`externalId`}),` already belongs to content that isn’t an image carousel.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`413`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`payload_too_large`})}),_jsx(_components.td,{children:`The request body is larger than 30 MB.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`415`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`unsupported_media_type`})}),_jsxs(_components.td,{children:[`The request `,_jsx(_components.code,{children:`Content-Type`}),` isn’t `,_jsx(_components.code,{children:`multipart/form-data`}),` or `,_jsx(_components.code,{children:`application/json`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`422`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_images`})}),_jsxs(_components.td,{children:[`One or more images can’t be used. `,_jsx(_components.code,{children:`details`}),` lists each failed `,_jsx(_components.code,{children:`position`}),` with a `,_jsx(_components.code,{children:`code`}),`: `,_jsx(_components.code,{children:`too_large`}),`, `,_jsx(_components.code,{children:`unsupported_image`}),`, `,_jsx(_components.code,{children:`fetch_failed`}),`, `,_jsx(_components.code,{children:`blocked_address`}),`, `,_jsx(_components.code,{children:`timeout`}),`, or `,_jsx(_components.code,{children:`invalid_url`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`429`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_limited`})}),_jsxs(_components.td,{children:[`Too many carousels are being created at once. Retry after the number of seconds in the `,_jsx(_components.code,{children:`Retry-After`}),` header.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.strong,{children:`503`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`service_unavailable`})}),_jsx(_components.td,{children:`Image storage is briefly unavailable. Retry the request.`})]})]})]})]})}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 Image Carousel","api":"POST /v1/content/images","description":"Create a finished image carousel in one request, from uploaded files, image URLs, or both.","href":"/api/content/images"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request format","slug":"request-format","depth":2,"children":[]},{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Image requirements","slug":"image-requirements","depth":2,"children":[]},{"title":"Response","slug":"response","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=\"12\">\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/content/images\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\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> 'metadata={\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"title\": \"Spring drop hero\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"externalId\": \"post-98765\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"customMetadata\": {\"productId\": \"SKU-12345\"},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"images\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> {\"file\": \"hero\", \"altText\": \"Red sneaker\"},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> {\"sourceUrl\": \"https://cdn.example.com/spring/side.jpg\", \"altText\": \"Side view\"}\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\"> };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\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> [email protected]\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=\"24\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> json\u003c/span>\u003c/span>\n\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\">metadata \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\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Spring drop hero\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"externalId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"post-98765\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"customMetadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"productId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"SKU-12345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"images\"\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\">\"file\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"hero\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"altText\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Red sneaker\"\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\">\"sourceUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"https://cdn.example.com/spring/side.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"altText\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Side view\"\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\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">with\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\"> open\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"hero.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"rb\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">as\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> hero:\u003c/span>\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/content/images\"\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\"> files\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\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: (\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">None\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, json.dumps(metadata), \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:#0A3069;--shiki-dark:#A5D6FF\"> \"hero\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: (\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"hero.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, hero, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"image/jpeg\"\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\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">carousel \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>\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=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> { readFile } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">from\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\"> \"fs/promises\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\"> form\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#D2A8FF\"> FormData\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">form.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#D2A8FF\">append\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, \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\"> title: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Spring drop hero\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> externalId: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"post-98765\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> customMetadata: { productId: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"SKU-12345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> images: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> { file: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"hero\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, altText: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Red sneaker\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> { sourceUrl: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"https://cdn.example.com/spring/side.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, altText: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Side view\"\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\">form.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#D2A8FF\">append\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"hero\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">, \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#D2A8FF\"> Blob\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">([\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#D2A8FF\"> readFile\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"hero.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">)], { type: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"image/jpeg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\"> }), \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"hero.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#FF7B72\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\"> response\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>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"https://api.shortkit.dev/v1/content/images\"\u003c/span>\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>\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:#1F2328;--shiki-dark:#E6EDF3\"> body: form,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\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\">carousel\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\"> response.\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=\"35\">\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\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"3f2a9c1e-7b4d-4e8a-9f10-2c6d8e1b5a77\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"externalId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"post-98765\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"contentType\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"carousel\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"ready\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"publishStatus\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"published\"\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\">\"Spring drop hero\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"tags\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"customMetadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: {\u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\">\"productId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"SKU-12345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"section\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"author\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"protected\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"images\"\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\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"b50322db-20dd-47b2-be24-2fb7e3c2b279\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"position\"\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\"> \"imageUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"https://image.media.shortkit.dev/carousels/5b85b33b78c048ca.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"altText\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Red sneaker\"\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\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"e1c8a7f2-9d3b-4c56-8a01-7f2e6b9d4c33\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"position\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"imageUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"https://image.media.shortkit.dev/carousels/bfd496b145d5416a.jpg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"altText\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"Side view\"\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\"> \"replayed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"createdAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"2026-10-27T18:58:09.541869+00:00\"\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_09eeb351006b\"\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>"},{"filename":"422","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=\"19\">\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>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">null\u003c/span>\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_5c852d7559cc\"\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\"> \"errors\"\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\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"invalid_images\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"1 of 2 images could not be used; nothing was created\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"details\"\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\"> \"position\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#79C0FF\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"unsupported_image\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#7EE787\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#E6EDF3\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#A5D6FF\">\"File is not a supported image (JPEG, PNG, WebP or GIF)\"\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:#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 Image Carousel","path":"/v1/content/images","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":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"title":[{"type":"string","description":"Display title. Max 200 characters.","required":true}],"images":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"The carousel’s images, in display order. Min 1, max 10. Each object has exactly one of `file` or `sourceUrl` : `file` (string) — Name of a file part in this request. `sourceUrl` (string) — Public `http` or `https` URL. ShortKit downloads it with a 15-second limit and at most 3 redirects. Private and internal addresses are refused. `altText` (string) — Accessibility text for the image. Max 500 characters.","required":true}],"description":[{"type":"string","description":"Optional description. Max 2000 characters."}],"tags":[{"type":"array","items":[{"type":"string"}],"description":"Tags for categorization and filtering."}],"customMetadata":[{"type":"object","properties":{},"description":"Key-value pairs passed through to the feed. Values must be strings."}],"section":[{"type":"string","description":"Editorial section (e.g., `\"Sports\"` , `\"News\"` ). Max 200 characters."}],"author":[{"type":"string","description":"Content author name. Max 200 characters."}],"externalId":[{"type":"string","description":"Your own identifier for this carousel. Max 255 characters. Repeating a request with the same `externalId` returns the existing carousel with `200` and `replayed: true` instead of creating a second one, so a timed-out request is safe to retry."}],"callbackUrl":[{"type":"string","description":"Receives a `content.imported` callback once the carousel is created. See Callback events ."}],"protected":[{"type":"boolean","description":"When `true` , playback is gated behind a short-lived signed URL. When omitted, defaults to your organization’s default. See Protected Content ."}]}}],"examples":{"example":{"value":{"title":"\u003cstring>","images":[{}],"description":"\u003cstring>","tags":["\u003cstring>"],"customMetadata":{},"section":"\u003cstring>","author":"\u003cstring>","externalId":"\u003cstring>","callbackUrl":"\u003cstring>","protected":true}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"status":[{"type":"string","description":"`\"ready\"` for a newly created carousel."}],"publishStatus":[{"type":"string","description":"`\"published\"` when your organization auto-publishes, otherwise `\"unpublished\"` ."}],"images":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"The stored images in display order: `id` , `position` , `imageUrl` , and `altText` ."}],"replayed":[{"type":"boolean","description":"`true` when the response is an existing carousel returned for a repeated `externalId` ."}]}}],"examples":{"example":{"value":{"status":"\u003cstring>","publishStatus":"\u003cstring>","images":[{}],"replayed":true}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"shortkit-d6329983","siteName":"shortkit","title":"Create Image Carousel - shortkit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T22:50:37.518Z","originalFileLocation":"api/content/images.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 a finished image carousel in one request, from uploaded files, image URLs, or both.\">\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 Image Carousel - shortkit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a finished image carousel in one request, from uploaded files, image URLs, or both.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"shortkit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.shortkit.dev/api/content/images\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://shortkit-d6329983.mintlify.app/_mintlify/api/og/v2?division=Content\u0026amp;title=Create+Image+Carousel\u0026amp;description=Create+a+finished+image+carousel+in+one+request%2C+from+uploaded+files%2C+image+URLs%2C+or+both.\u0026amp;theme=50c26de66f54c78332cbabef\u0026amp;signature=d6467fd9365da603b2fc6ac4930062602d2a25772d27ff9a7fad42f2ede75fc6\">\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 Image Carousel - shortkit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a finished image carousel in one request, from uploaded files, image URLs, or both.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://shortkit-d6329983.mintlify.app/_mintlify/api/og/v2?division=Content\u0026amp;title=Create+Image+Carousel\u0026amp;description=Create+a+finished+image+carousel+in+one+request%2C+from+uploaded+files%2C+image+URLs%2C+or+both.\u0026amp;theme=50c26de66f54c78332cbabef\u0026amp;signature=d6467fd9365da603b2fc6ac4930062602d2a25772d27ff9a7fad42f2ede75fc6\">\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/content/images\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/content/images.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/content/images#webpage\",\"url\":\"https://docs.shortkit.dev/api/content/images\",\"name\":\"Create Image Carousel\",\"description\":\"Create a finished image carousel in one request, from uploaded files, image URLs, or both.\",\"dateModified\":\"2026-10-28T22:50:37.518Z\",\"isPartOf\":{\"@id\":\"https://docs.shortkit.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.shortkit.dev/api/content/images#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.shortkit.dev/api/content/images#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.shortkit.dev/api/content/object\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Content\",\"item\":\"https://docs.shortkit.dev/api/content/object\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Image Carousel\",\"item\":\"https://docs.shortkit.dev/api/content/images\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.shortkit.dev/api/content/images#apireference\",\"headline\":\"Create Image Carousel\",\"name\":\"Create Image Carousel\",\"description\":\"Create a finished image carousel in one request, from uploaded files, image URLs, or both.\",\"url\":\"https://docs.shortkit.dev/api/content/images\",\"mainEntityOfPage\":{\"@id\":\"https://docs.shortkit.dev/api/content/images#webpage\"},\"dateModified\":\"2026-10-28T22:50:37.518Z\",\"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\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","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","description":"Upload a video or carousel directly. Returns signed URLs for the client to upload media files to.","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","description":"Import content from URLs in bulk. ShortKit fetches and processes the media for you.","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":"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}","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","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 Image Carousel - shortkit","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js"]}