Cloud video editor & export
Fetch editing metadata for a video. Cloud export is not available today: POST /videos/:id/editor/export answers 402 FEATURE_REQUIRES_UPGRADE on every plan, so no export job is ever created.GET /videos/:id/editor/metadata works.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /videos/:id/editor/metadata | Metadata + editor URL when eligible |
| POST | /videos/:id/editor/export | Not available today — always 402 FEATURE_REQUIRES_UPGRADE |
| GET | /videos/:id/editor/export/:jobId | Export job status (no jobs exist while export is unavailable) |
Export request (returns 402 today)
A request without operations[] answers 400 BAD_REQUEST and a foreign or unknown video 404 NOT_FOUND; every other request, including the one below, answers 402 FEATURE_REQUIRES_UPGRADE regardless of plan. Do not build a workflow on it yet.
POST https://api.dcast.pro/api/v1/videos/{id}/editor/export
Authorization: Bearer {api_key}
Content-Type: application/json
{
"operations": [
{ "type": "trim", "start": 10, "end": 60 },
{ "type": "fade", "duration": 1, "position": "in" }
]
}