---
title: "Create FileFeed embed session"
method: POST
path: "/v0/file-feed-embed-sessions"
tags: ["FileFeeds Embed Sessions"]
---

# Create FileFeed embed session

`POST /v0/file-feed-embed-sessions`

## Request

- Base URL: `https://api.oneschema.co`
- URL: `https://api.oneschema.co/v0/file-feed-embed-sessions`
- Auth: API key in header `X-API-KEY`

Create a new embed session for a FileFeed

## Request body

- object
  - `client_id` string, uuid, required: Client ID for the environment the import is being initiated from
  - `file_feed_id` integer, required: The ID of the FileFeed
  - `user_jwt` string, jwt, required: Encoded JWT for the user initiating the import

## Response `200`

Successful response

- FileFeedEmbedSession
  - `id` integer
  - `file_feed_id` integer
  - `created_at` string, date-time
  - `token` string
  - `template_key` string
  - `files` FileFeedEmbedSessionFile[]
    - `id` integer
    - `created_at` string, date-time
    - `original_file_name` string, file_name

## Other responses

- `400`: Bad request

---

[API](https://skmtc.dev/oneschema/apis/filefeeds.md) - [All operations](https://skmtc.dev/oneschema/apis/filefeeds/llms.txt) - [OpenAPI document](https://skmtc.dev/oneschema/apis/filefeeds/revisions/4fe0ac07f1de?raw)
