Creates a draft. To schedule or publish, follow up with PUT /posts/{post} using status=scheduled or status=publishing.
Pinterest posts: POST /posts does not accept per-platform meta. After
creating, call PUT /posts/{post} and set
platforms[].meta.board_id for each Pinterest entry — otherwise the publish
job fails with Pinterest board_id is required.
Request
array
required
At least one platform entry. Each entry pins this post to a connected social account and a content_type.
Show child attributes
string
required
UUID of an active social account in the current workspace. Inactive or external accounts are rejected.
string
required
Format for this platform — must match the social account’s platform. Discover the catalog with GET /content-types.Allowed values: linkedin_post, linkedin_carousel, linkedin_page_post, linkedin_page_carousel, x_post, facebook_post, facebook_reel, facebook_story, instagram_feed, instagram_carousel, instagram_reel, instagram_story, tiktok_video, tiktok_photo, youtube_short, threads_post, pinterest_pin, pinterest_video_pin, pinterest_carousel, bluesky_post, mastodon_post.
string
The post body shared across all platforms. Up to 10 000 characters at the API
level (per-platform hard caps are enforced separately — see GET /content-types for the matrix). Defaults to empty.
array
Media items to attach to the post. Each item should match the shape returned
by POST /posts/{post}/media — id, path, url, type,
mime_type, original_filename. Most callers use the dedicated upload or
attach-from-URL endpoint instead.
string
ISO 8601 datetime in the future (e.g. 2026-05-10T15:30:00Z). Stored on the
draft so a follow-up PUT with status=scheduled doesn’t have to repeat it.
Defaults to today at 09:00 UTC.
array
Workspace label UUIDs to attach. Must belong to the same workspace as the API
key.
Response
Returns 201 with the created post. Response shape is identical to GET /posts/{post} — see that endpoint for full field documentation.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Kavio Docs","colors":{"primary":"#2563eb","light":"#3b82f6","dark":"#1d4ed8"},"logo":{"light":"https://mintcdn.com/kavio/v0bkouT8mVjjx8DU/logo/light.png?fit=max\u0026auto=format\u0026n=v0bkouT8mVjjx8DU\u0026q=85\u0026s=309ef015bbf172f60d4949bba63f6493","dark":"https://mintcdn.com/kavio/v0bkouT8mVjjx8DU/logo/dark.png?fit=max\u0026auto=format\u0026n=v0bkouT8mVjjx8DU\u0026q=85\u0026s=f6f1d419ba23a4acc53fe3759ae31e65"},"favicon":"https://mintcdn.com/kavio/v0bkouT8mVjjx8DU/favicon.png?fit=max\u0026auto=format\u0026n=v0bkouT8mVjjx8DU\u0026q=85\u0026s=4b0b33f41d60e14761793ff204a87866","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://app.getkavio.app/api"}},"background":{"color":{"light":"#f8fafc","dark":"#0f172a"}},"navbar":{"links":[{"href":"https://getkavio.app","label":"Home"}],"primary":{"type":"button","label":"Get started free","href":"https://app.getkavio.app/register"}},"footer":{"socials":{"x":"https://x.com/getkavio","youtube":"https://www.youtube.com/@getkavio"}},"integrations":{"posthog":{"apiKey":"phc_qZKcjfjndNDmU4k5KSfhsiSCjS9yGuVuFLYfqri0YG1","apiHost":"https://dt.getkavio.app"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"knowledge-base/introduction"},{"language":"vi","default":true,"href":"vi/knowledge-base/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kavio","hasAudioNarration":false,"actualSubdomain":"kavio","customDomains":["docs.getkavio.app"],"gitSource":{"type":"gitlab","owner":"kavio1","repo":"kavio_site","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"projectId":82502039,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a992755b8d2f9ee7b619988","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"en","tag":"Kavio Ecommerce","count":84},{"language":"vi","tag":"Kavio Ecommerce","count":84},{"language":"en","tag":"Kavio Content","count":55},{"language":"vi","tag":"Kavio Content","count":55},{"language":"en","tag":"API Reference","count":26},{"language":"vi","tag":"Tài liệu API","count":26},{"language":"en","tag":"Knowledge Base","count":17},{"language":"vi","tag":"Hướng dẫn sử dụng","count":17},{"language":"en","tag":"Build with AI","count":12},{"language":"en","tag":"Advanced and technical settings","count":12},{"language":"en","tag":"Essential store settings","count":12},{"language":"vi","tag":"Xây dựng với AI","count":12},{"language":"vi","tag":"Cài đặt nâng cao và kỹ thuật","count":12},{"language":"vi","tag":"Cài đặt cửa hàng thiết yếu","count":12},{"language":"en","tag":"Setup Guides","count":10},{"language":"en","tag":"Posts","count":10},{"language":"vi","tag":"Hướng dẫn thiết lập","count":10},{"language":"vi","tag":"Bài đăng","count":10},{"language":"en","tag":"Orders and fulfillment","count":9},{"language":"vi","tag":"Đơn hàng và giao hàng","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/create-post","slug":"/api-reference/endpoint/create-post","pageMetadata":{"title":"Create post","api":"POST /posts","description":"Create a new draft post targeting one or more social accounts. Returns the created post with status 201.","href":"/api-reference/endpoint/create-post"},"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 new draft post targeting one or more social accounts. Returns the created post with status 201.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a `,_jsx(_components.code,{children:`draft`}),`. To schedule or publish, follow up with `,_jsx(_components.a,{href:`/api-reference/endpoint/update-post`,children:_jsx(_components.code,{children:`PUT /posts/{post}`})}),` using `,_jsx(_components.code,{children:`status=scheduled`}),` or `,_jsx(_components.code,{children:`status=publishing`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Pinterest posts`}),`: `,_jsx(_components.code,{children:`POST /posts`}),` does not accept per-platform `,_jsx(_components.code,{children:`meta`}),`. After\ncreating, call `,_jsx(_components.a,{href:`/api-reference/endpoint/update-post`,children:_jsx(_components.code,{children:`PUT /posts/{post}`})}),` and set\n`,_jsx(_components.code,{children:`platforms[].meta.board_id`}),` for each Pinterest entry — otherwise the publish\njob fails with `,_jsx(_components.code,{children:`Pinterest board_id is required`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsxs(ParamField,{body:`platforms`,type:`array`,required:true,id:`param-platforms`,children:[_jsxs(_components.p,{children:[`At least one platform entry. Each entry pins this post to a connected social account and a `,_jsx(_components.code,{children:`content_type`}),`.`]}),_jsxs(Expandable,{children:[_jsx(ParamField,{body:`social_account_id`,type:`string`,required:true,id:`param-social-account-id`,children:_jsx(_components.p,{children:`UUID of an active social account in the current workspace. Inactive or external accounts are rejected.`})}),_jsxs(ParamField,{body:`content_type`,type:`string`,required:true,id:`param-content-type`,children:[_jsxs(_components.p,{children:[`Format for this platform — must match the social account’s platform. Discover the catalog with `,_jsx(_components.a,{href:`/api-reference/endpoint/list-content-types`,children:_jsx(_components.code,{children:`GET /content-types`})}),`.`]}),_jsxs(_components.p,{children:[`Allowed values: `,_jsx(_components.code,{children:`linkedin_post`}),`, `,_jsx(_components.code,{children:`linkedin_carousel`}),`, `,_jsx(_components.code,{children:`linkedin_page_post`}),`, `,_jsx(_components.code,{children:`linkedin_page_carousel`}),`, `,_jsx(_components.code,{children:`x_post`}),`, `,_jsx(_components.code,{children:`facebook_post`}),`, `,_jsx(_components.code,{children:`facebook_reel`}),`, `,_jsx(_components.code,{children:`facebook_story`}),`, `,_jsx(_components.code,{children:`instagram_feed`}),`, `,_jsx(_components.code,{children:`instagram_carousel`}),`, `,_jsx(_components.code,{children:`instagram_reel`}),`, `,_jsx(_components.code,{children:`instagram_story`}),`, `,_jsx(_components.code,{children:`tiktok_video`}),`, `,_jsx(_components.code,{children:`tiktok_photo`}),`, `,_jsx(_components.code,{children:`youtube_short`}),`, `,_jsx(_components.code,{children:`threads_post`}),`, `,_jsx(_components.code,{children:`pinterest_pin`}),`, `,_jsx(_components.code,{children:`pinterest_video_pin`}),`, `,_jsx(_components.code,{children:`pinterest_carousel`}),`, `,_jsx(_components.code,{children:`bluesky_post`}),`, `,_jsx(_components.code,{children:`mastodon_post`}),`.`]})]})]})]}),`\n`,_jsx(ParamField,{body:`content`,type:`string`,id:`param-content`,children:_jsxs(_components.p,{children:[`The post body shared across all platforms. Up to 10 000 characters at the API\nlevel (per-platform hard caps are enforced separately — see `,_jsx(_components.a,{href:`/api-reference/endpoint/list-content-types`,children:_jsx(_components.code,{children:`GET /content-types`})}),` for the matrix). Defaults to empty.`]})}),`\n`,_jsx(ParamField,{body:`media`,type:`array`,id:`param-media`,children:_jsxs(_components.p,{children:[`Media items to attach to the post. Each item should match the shape returned\nby `,_jsx(_components.a,{href:`/api-reference/endpoint/upload-media`,children:_jsx(_components.code,{children:`POST /posts/{post}/media`})}),` — `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`path`}),`, `,_jsx(_components.code,{children:`url`}),`, `,_jsx(_components.code,{children:`type`}),`,\n`,_jsx(_components.code,{children:`mime_type`}),`, `,_jsx(_components.code,{children:`original_filename`}),`. Most callers use the dedicated upload or\n`,_jsx(_components.a,{href:`/api-reference/endpoint/attach-media-from-url`,children:`attach-from-URL`}),` endpoint instead.`]})}),`\n`,_jsx(ParamField,{body:`scheduled_at`,type:`string`,id:`param-scheduled-at`,children:_jsxs(_components.p,{children:[`ISO 8601 datetime in the future (e.g. `,_jsx(_components.code,{children:`2026-05-10T15:30:00Z`}),`). Stored on the\ndraft so a follow-up `,_jsx(_components.code,{children:`PUT`}),` with `,_jsx(_components.code,{children:`status=scheduled`}),` doesn’t have to repeat it.\nDefaults to today at 09:00 UTC.`]})}),`\n`,_jsx(ParamField,{body:`label_ids`,type:`array`,id:`param-label-ids`,children:_jsx(_components.p,{children:`Workspace label UUIDs to attach. Must belong to the same workspace as the API\nkey.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`201`}),` with the created post. Response shape is identical to `,_jsx(_components.a,{href:`/api-reference/endpoint/get-post`,children:_jsx(_components.code,{children:`GET /posts/{post}`})}),` — see that endpoint for full field documentation.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://app.getkavio.app/api/posts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"Hello from the Kavio API!\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"platforms\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"social_account_id\": \"b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content_type\": \"linkedin_post\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"scheduled_at\": \"2026-05-10T15:30:00Z\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"label_ids\": [\"c3d4e5f6-a7b8-9c0d-1e2f-3a4b5c6d7e8f\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`42`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`42`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9f1a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello from the Kavio API!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"media\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"draft\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"scheduled_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-10 15:30:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"published_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platforms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linkedin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linkedin_post\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"published_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"display_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"John Doe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"display_username\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"johndoe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"display_avatar\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://media.licdn.com/.../avatar.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"social_account\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"b2c3d4e5-f6a7-8b9c-0d1e-2f3a4b5c6d7e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linkedin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"display_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"John Doe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"username\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"johndoe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"is_active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"connected\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"labels\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c3d4e5f6-a7b8-9c0d-1e2f-3a4b5c6d7e8f\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Product Launch\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#4f46e5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-10 08:00:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-10 08:00:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-14 09:00:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-14 09:00:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}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":{"config":{},"pageMetadata":{"title":"Create post","api":"POST /posts","description":"Create a new draft post targeting one or more social accounts. Returns the created post with status 201.","href":"/api-reference/endpoint/create-post"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Create post","path":"/posts","servers":[{"url":"https://app.getkavio.app/api"}],"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":{"platforms":[{"type":"array","items":[{"type":"object","properties":{"social_account_id":[{"type":"string","description":"UUID of an active social account in the current workspace. Inactive or external accounts are rejected.","required":true}],"content_type":[{"type":"string","description":"Format for this platform — must match the social account’s platform. Discover the catalog with `GET /content-types` . Allowed values: `linkedin_post` , `linkedin_carousel` , `linkedin_page_post` , `linkedin_page_carousel` , `x_post` , `facebook_post` , `facebook_reel` , `facebook_story` , `instagram_feed` , `instagram_carousel` , `instagram_reel` , `instagram_story` , `tiktok_video` , `tiktok_photo` , `youtube_short` , `threads_post` , `pinterest_pin` , `pinterest_video_pin` , `pinterest_carousel` , `bluesky_post` , `mastodon_post` .","required":true}]}}],"description":"At least one platform entry. Each entry pins this post to a connected social account and a `content_type` .","required":true}],"content":[{"type":"string","description":"The post body shared across all platforms. Up to 10 000 characters at the API level (per-platform hard caps are enforced separately — see `GET /content-types` for the matrix). Defaults to empty."}],"media":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Media items to attach to the post. Each item should match the shape returned by `POST /posts/{post}/media` — `id` , `path` , `url` , `type` , `mime_type` , `original_filename` . Most callers use the dedicated upload or attach-from-URL endpoint instead."}],"scheduled_at":[{"type":"string","description":"ISO 8601 datetime in the future (e.g. `2026-05-10T15:30:00Z` ). Stored on the draft so a follow-up `PUT` with `status=scheduled` doesn’t have to repeat it. Defaults to today at 09:00 UTC."}],"label_ids":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Workspace label UUIDs to attach. Must belong to the same workspace as the API key."}]}}],"examples":{"example":{"value":{"platforms":[{"social_account_id":"\u003cstring>","content_type":"\u003cstring>"}],"content":"\u003cstring>","media":[{}],"scheduled_at":"\u003cstring>","label_ids":[{}]}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"kavio","siteName":"Kavio Docs","title":"Create post - Kavio Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoint/create-post","matchLevel":0},"vi":{"href":"/vi/api-reference/endpoint/create-post","matchLevel":1}}},"lastModified":"2026-05-25T11:02:20.202Z","originalFileLocation":"api-reference/endpoint/create-post.mdx","locale":"en"},"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 new draft post targeting one or more social accounts. Returns the created post with status 201.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kavio Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_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/kavio/jh64YcGA6UMlmiWg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kavio/jh64YcGA6UMlmiWg/_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/kavio/jh64YcGA6UMlmiWg/_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/kavio/jh64YcGA6UMlmiWg/_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/kavio/jh64YcGA6UMlmiWg/_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/kavio/jh64YcGA6UMlmiWg/_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/kavio/jh64YcGA6UMlmiWg/_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/kavio/jh64YcGA6UMlmiWg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create post - Kavio Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new draft post targeting one or more social accounts. Returns the created post with status 201.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kavio Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getkavio.app/api-reference/endpoint/create-post\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kavio.mintlify.site/_mintlify/api/og/v2?division=Posts\u0026amp;title=Create+post\u0026amp;description=Create+a+new+draft+post+targeting+one+or+more+social+accounts.+Returns+the+created+post+with+status+201.\u0026amp;theme=8c97d124a89922b21243dc87\u0026amp;signature=26687a5679c08aeeb0bff45793b36c0718f9ac48b7050237ef025b44c4e2b5a3\">\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 post - Kavio Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new draft post targeting one or more social accounts. Returns the created post with status 201.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kavio.mintlify.site/_mintlify/api/og/v2?division=Posts\u0026amp;title=Create+post\u0026amp;description=Create+a+new+draft+post+targeting+one+or+more+social+accounts.+Returns+the+created+post+with+status+201.\u0026amp;theme=8c97d124a89922b21243dc87\u0026amp;signature=26687a5679c08aeeb0bff45793b36c0718f9ac48b7050237ef025b44c4e2b5a3\">\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/kavio/jh64YcGA6UMlmiWg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kavio Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getkavio.app/api-reference/endpoint/create-post\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/create-post.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.getkavio.app/api-reference/endpoint/create-post\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://docs.getkavio.app/vi/api-reference/endpoint/create-post\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.getkavio.app/vi/api-reference/endpoint/create-post\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getkavio.app/#organization\",\"name\":\"Kavio Docs\",\"url\":\"https://docs.getkavio.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kavio/v0bkouT8mVjjx8DU/logo/light.png?fit=max\u0026auto=format\u0026n=v0bkouT8mVjjx8DU\u0026q=85\u0026s=309ef015bbf172f60d4949bba63f6493\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getkavio.app#website\",\"name\":\"Kavio Docs\",\"url\":\"https://docs.getkavio.app\",\"publisher\":{\"@id\":\"https://docs.getkavio.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getkavio.app/api-reference/endpoint/create-post#webpage\",\"url\":\"https://docs.getkavio.app/api-reference/endpoint/create-post\",\"name\":\"Create post\",\"description\":\"Create a new draft post targeting one or more social accounts. Returns the created post with status 201.\",\"dateModified\":\"2026-05-25T11:02:20.202Z\",\"isPartOf\":{\"@id\":\"https://docs.getkavio.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getkavio.app/api-reference/endpoint/create-post#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getkavio.app/api-reference/endpoint/create-post#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Posts\",\"item\":\"https://docs.getkavio.app/api-reference/endpoint/list-posts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create post\",\"item\":\"https://docs.getkavio.app/api-reference/endpoint/create-post\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.getkavio.app/api-reference/endpoint/create-post#apireference\",\"headline\":\"Create post\",\"name\":\"Create post\",\"description\":\"Create a new draft post targeting one or more social accounts. Returns the created post with status 201.\",\"url\":\"https://docs.getkavio.app/api-reference/endpoint/create-post\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getkavio.app/api-reference/endpoint/create-post#webpage\"},\"dateModified\":\"2026-05-25T11:02:20.202Z\",\"publisher\":{\"@id\":\"https://docs.getkavio.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getkavio.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kavio Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kavio Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/create-post.md","siteName":"Kavio Docs","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Kavio Content","icon":"pen-to-square","anchors":[{"anchor":"Knowledge Base","icon":"book","pages":[{"title":"Knowledge Base","href":"/knowledge-base/introduction"}]},{"anchor":"API Reference","icon":"code","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Posts","pages":[{"title":"List posts","api":"GET /posts","href":"/api-reference/endpoint/list-posts"},{"title":"Get post","api":"GET /posts/{post}","description":"Get a specific post by ID with all its platform entries, media, and labels.","href":"/api-reference/endpoint/get-post"},{"title":"Create post","api":"POST /posts","href":"/api-reference/endpoint/create-post"},{"title":"Update post","api":"PUT /posts/{post}","description":"Update a post's content, schedule, enabled platforms, or labels — and trigger publishing.","href":"/api-reference/endpoint/update-post"},{"title":"Delete post","api":"DELETE /posts/{post}","href":"/api-reference/endpoint/delete-post"},{"title":"Upload media file","api":"POST /posts/{post}/media","href":"/api-reference/endpoint/upload-media"},{"title":"Attach media from URLs","api":"POST /posts/{post}/media/from-url","href":"/api-reference/endpoint/attach-media-from-url"},{"title":"Upload media via signed URL","api":"POST /uploads/{token}","href":"/api-reference/endpoint/request-media-upload"},{"title":"Get post metrics","api":"GET /posts/{post}/metrics","href":"/api-reference/endpoint/get-post-metrics"},{"title":"Preview post per platform","api":"GET /posts/{post}/preview","href":"/api-reference/endpoint/get-post-preview"}]},{"group":"Platforms","pages":[{"title":"List content types","api":"GET /content-types","href":"/api-reference/endpoint/list-content-types"}]},{"group":"Workspace","pages":[{"title":"Get workspace","api":"GET /workspace","href":"/api-reference/endpoint/get-workspace"}]},{"group":"Signatures","pages":[{"title":"List signatures","api":"GET /signatures","href":"/api-reference/endpoint/list-signatures"},{"title":"Create signature","api":"POST /signatures","href":"/api-reference/endpoint/create-signature"},{"title":"Update signature","api":"PUT /signatures/{signature}","href":"/api-reference/endpoint/update-signature"},{"title":"Delete signature","api":"DELETE /signatures/{signature}","href":"/api-reference/endpoint/delete-signature"}]},{"group":"Labels","pages":[{"title":"List labels","api":"GET /labels","href":"/api-reference/endpoint/list-labels"},{"title":"Create label","api":"POST /labels","href":"/api-reference/endpoint/create-label"},{"title":"Update label","api":"PUT /labels/{label}","href":"/api-reference/endpoint/update-label"},{"title":"Delete label","api":"DELETE /labels/{label}","href":"/api-reference/endpoint/delete-label"}]},{"group":"Social Accounts","pages":[{"title":"List social accounts","api":"GET /social-accounts","href":"/api-reference/endpoint/list-social-accounts"},{"title":"Toggle social account","api":"PUT /social-accounts/{account}/toggle","href":"/api-reference/endpoint/toggle-social-account"}]},{"group":"API Keys","pages":[{"title":"List API keys","api":"GET /api-keys","href":"/api-reference/endpoint/list-api-keys"},{"title":"Create API key","api":"POST /api-keys","href":"/api-reference/endpoint/create-api-key"},{"title":"Delete API key","api":"DELETE /api-keys/{apiToken}","href":"/api-reference/endpoint/delete-api-key"}]}]},{"anchor":"Build with AI","icon":"microchip-ai","pages":[{"title":"Build with AI","href":"/ai/introduction"}]}]},{"tab":"Kavio Ecommerce","icon":"store","pages":[{"title":"Kavio Ecommerce","href":"/ecommerce/getting-started"}]}]},{"language":"vi","default":true,"pages":[{"title":"vi","href":"/vi/api-reference/endpoint/create-post"}]}]},"basePath":"","title":"Create post - Kavio Docs","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-D4yvBxwa.js","snippetPresets-CkhhQaIQ.js","utils-XnMGX2lF.js","style-to-object-BY3JEAdk.js","utils-CRXL1dwr.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DvwRKZnA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DYtgUc7n.js","_Uint8Array-D8z7zjjJ.js","isObject-FP1Yky1u.js","ApiExamples-RYQSJVS4.js","usePlaygroundInputsStore-k_R_BTDL.js","shallow-BwVhzryZ.js","isEqual-Cx5TQjMc.js","CodeSnippets-BDe2dS5N.js","CodeSnippet-C1QlaNYl.js","use-playground-group-access-DyQ_1IIe.js","Page-DQd9HN9r.js","api-description-markdown-BpDftTKT.js","DynamicMarkdown-CZT_WAnN.js","SectionHeading-K1iuDm9j.js","MethodPill-Dx3JIwHJ.js","getPastedJson-buPTdYs_.js","Check2Icon-DmMrzBYX.js","axios-CsQoIw0U.js"]}