---
title: "Create Video Embed"
method: POST
path: "/communities/spaces/posts/{post_id}/video_embeds"
tags: ["Communities::Spaces::Post::VideoEmbed"]
---

# Create Video Embed

`POST /communities/spaces/posts/{post_id}/video_embeds`

Attach a video embed to a post. The `url` field is required.

## Path parameters

- `post_id` integer, required

## Request body

- object
  - `communities_spaces_posts_video_embed` CommunitiesSpacesPostsVideoEmbedParameters — Communities::Spaces::Post::VideoEmbed
    - `url` string, required — Source URL of the video
    - `provider` 'youtube' | 'vimeo' | 'loom' | 'voomly', nullable — Video provider name. Optional and effectively ignored — the provider is auto-detected from the URL on save (set_provider before_save). One of youtube, vimeo, loom, voomly.
    - `data` object, nullable — Provider-specific metadata (arbitrary key/value pairs)

## Response `201`

Created

- CommunitiesSpacesPostsVideoEmbedAttributes — Communities::Spaces::Post::VideoEmbed
  - `id` integer — Video Embed ID
  - `public_id` string, nullable — Video Embed public ID
  - `post_id` integer — ID of the Post the video is attached to
  - `provider` 'youtube' | 'vimeo' | 'loom' | 'voomly', nullable — Video provider name, auto-detected from the URL. One of youtube, vimeo, loom, voomly.
  - `url` string, nullable — Source URL of the video
  - `data` object, nullable — Provider-specific metadata (arbitrary key/value pairs)
  - `workspace_id` integer, nullable — Workspace ID the post belongs to
  - `created_at` string, date-time, nullable — Created at
  - `updated_at` string, date-time, nullable — Updated at

## Other responses

- `401` — Unauthorized
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/myclickfunnels/apis/clickfunnels-api.md) · [All operations](https://skmtc.net/myclickfunnels/apis/clickfunnels-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myclickfunnels/clickfunnels-api/revisions/ae6313eaa176/schema)
