Export Endpoints
Export endpoints are used to create export tasks and check their status.
Create Export
Create an export task for a project (short) within a folder.
Endpoint: POST /projects/{folder_id}/{project_id}/exports
Request
POST /v2/projects/{folder_id}/{project_id}/exports
Authorization: Bearer <your-api-key>
Content-Type: application/json
{
"watermark": {
"src_url": "https://example.com/logo.png",
"pos_x": 0.5,
"pos_y": 0.5,
"scale": 1
},
"intro": "https://example.com/intro.mp4",
"outro": "https://example.com/outro.mp4"
}Path Parameters
| Parameter | Type | Description |
|---|---|---|
folder_id | string | ID of the folder containing the project |
project_id | string | ID of the project to export |
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
watermark | object | No | Watermark configuration for the exported video |
intro | string | null | No | URL of a video to play before the short. null removes the project’s intro. See Intro and Outro |
outro | string | null | No | URL of a video to play after the short. null removes the project’s outro. See Intro and Outro |
Intro and Outro
intro and outro add a video before or after the short in this export only. The project itself is not changed.
| Value | Result |
|---|---|
| Not sent | The export uses the intro or outro saved on the project as it is, for example one added in the editor or by the template the project was created with |
| A URL | The export plays the video at this URL, in place of the project’s intro or outro if it has one |
null | The export has no intro or outro, even if the project has one |
- The URL must start with
http://orhttps://, or the request is rejected with a400error. It can be a direct link to a video file, or a link to a single video on YouTube, Vimeo, Twitch, Loom, Google Drive or Dropbox. - A video sent as a URL is used in full, from its first frame, with its own audio at full volume.
- It keeps the project’s Full or Blur setting for the intro or outro, and uses Blur if there is none. With Blur, the whole video fits inside the short over a blurred copy of itself. With Full, it is centered and cropped to fill the short.
- Intro and outro videos get no captions and no automatic reframing. A
watermarkalso shows over them. - The video is downloaded after the export is created. If it can’t be downloaded, isn’t a playable video, or the link isn’t a single video (for example a channel, playlist or folder), the export ends with status
error. If the export was paid with credits, the credits are returned.
Watermark Object
| Parameter | Type | Required | Description |
|---|---|---|---|
src_url | string | Yes | URL of the watermark image |
pos_x | number | No | Horizontal position (0-1, default: 0.5) |
pos_y | number | No | Vertical position (0-1, default: 0.5) |
scale | number | No | Size scale factor (default: 1) |
Response
Returns an Export Object:
{
"id": "export_001",
"status": "processing",
"src_url": null,
"project_id": "project_001",
"created_at": "2023-10-02T09:00:00Z",
"finished_at": null,
"name": "Exported Video",
"author_id": "user_123",
"folder_id": "folder_001",
"descriptions": "Export started."
}Create Export Direct
Create an export task for a project without a folder (used for video-to-video tasks).
Endpoint: POST /projects/{project_id}/exports
Request
POST /v2/projects/{project_id}/exports
Authorization: Bearer <your-api-key>
Content-Type: application/json
{
"watermark": {
"src_url": "https://example.com/logo.png",
"pos_x": 0.5,
"pos_y": 0.5,
"scale": 1
}
}Path Parameters
| Parameter | Type | Description |
|---|---|---|
project_id | string | ID of the project to export |
Request Body Parameters
The same as for the Create Export endpoint.
Response
Returns an Export Object:
{
"id": "export_001",
"status": "processing",
"src_url": null,
"project_id": "project_001",
"created_at": "2023-10-02T09:00:00Z",
"finished_at": null,
"name": "Exported Video",
"author_id": "user_123",
"folder_id": null,
"descriptions": "Export started."
}Get Export Status
Get the status of an export task for a project within a folder.
Endpoint: GET /projects/{folder_id}/{project_id}/exports/{export_id}
Request
GET /v2/projects/{folder_id}/{project_id}/exports/{export_id}
Authorization: Bearer <your-api-key>Path Parameters
| Parameter | Type | Description |
|---|---|---|
folder_id | string | ID of the folder containing the project |
project_id | string | ID of the project |
export_id | string | ID of the export task |
Response
Returns an Export Object with the current status:
{
"id": "export_001",
"status": "ready",
"src_url": "https://example.com/exports/export_001.mp4",
"project_id": "project_001",
"created_at": "2023-10-02T09:00:00Z",
"finished_at": "2023-10-02T09:15:00Z",
"name": "Exported Video",
"author_id": "user_123",
"folder_id": "folder_001",
"descriptions": "Export completed successfully."
}Get Export Status Direct
Get the status of an export task for a project without a folder.
Endpoint: GET /projects/{project_id}/exports/{export_id}
Request
GET /v2/projects/{project_id}/exports/{export_id}
Authorization: Bearer <your-api-key>Path Parameters
| Parameter | Type | Description |
|---|---|---|
project_id | string | ID of the project |
export_id | string | ID of the export task |
Response
Returns an Export Object with the current status:
{
"id": "export_001",
"status": "ready",
"src_url": "https://example.com/exports/export_001.mp4",
"project_id": "project_001",
"created_at": "2023-10-02T09:00:00Z",
"finished_at": "2023-10-02T09:15:00Z",
"name": "Exported Video",
"author_id": "user_123",
"folder_id": null,
"descriptions": "Export completed successfully."
}List All Exports
List all exports for a user, optionally filtered by folder or project.
Endpoint: GET /exports
Request
GET /v2/exports?folder_id=folder_001&project_id=project_001
Authorization: Bearer <your-api-key>Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
folder_id | string | No | Filter by folder ID |
project_id | string | No | Filter by project ID |
Response
Returns an array of Export Objects:
[
{
"id": "export_001",
"status": "ready",
"src_url": "https://example.com/exports/export_001.mp4",
"project_id": "project_001",
"created_at": "2023-10-02T09:00:00Z",
"finished_at": "2023-10-02T09:15:00Z",
"name": "Exported Video",
"author_id": "user_123",
"folder_id": "folder_001",
"descriptions": "Export completed successfully."
}
]