---
title: "Import multiple videos into a campaign"
method: POST
path: "/campaigns/{campaignId}/videos/import"
tags: ["Videos"]
---

# Import multiple videos into a campaign

`POST /campaigns/{campaignId}/videos/import`

## Request

- Base URL: `https://api.pitchlane.com/api/public/v1`
- URL: `https://api.pitchlane.com/api/public/v1/campaigns/{campaignId}/videos/import`
- Auth: API key in header `X-API-Key`

## Path parameters

- `campaignId` string, required

## Request body

- object
  - `videos` VideoData[]
    - `originalData` string, nullable: Specify either `originalData` or `originalRow` to store the original data that was used to create the video.
    - `originalRow` string, nullable: Specify either `originalData` or `originalRow` to store the original data that was used to create the video.
    - `originalRowIndex` integer, nullable: If the video was imported from a CSV, this is the row number where the video data was found.
    - `originalUid` string, nullable: A unique identifier for the video, used to detect duplicates. If not specified, the video will be considered unique.
    - `first_name` string: The first name of the individual
    - `company_name` string: The name of the company
    - `email` string, email: The email address
  - `titleTemplate` string, nullable: The template to use for video titles (e.g. "Video for {{first_name}}")
  - `importId` string, nullable: The import ID to group the video under. This is usually the CSV the video was imported from but can be any string to identify a grouping of videos. If not specified, defaults to a random nanoid.
  - `renderTestVideo` boolean, nullable: If true, the first video in the list will be rendered as a test video. If the campaign does not already have a test video, it will be set to this video. If not specified, the campaign's test video will not be changed and no videos will be automatically queued to render. Has no effect if `queueAllVideosForRender` is true.
  - `queueAllVideosForRender` boolean, nullable: If true, the videos will be queued for rendering. If not specified, the videos will NOT be queued for rendering. Has no effect if `renderTestVideo` is true.

## Response `200`

Videos successfully imported

- object
  - `inserted` integer: Number of videos successfully imported
  - `duplicates` integer: Number of duplicate entries detected

## Other responses

- `400`: Error in request format or validation

---

[API](https://skmtc.dev/pitchlane/apis/pitchlane-api.md) · [All operations](https://skmtc.dev/pitchlane/apis/pitchlane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pitchlane/apis/pitchlane-api/revisions/a8d831473a5c?raw)
