مسودة: يصف هذا التوثيق أوكتا فيديو كما ستكون عند الإطلاق، وقد لا تكون بعض الميزات متاحة بعد.
OctaVideoالتوثيق

Import a video

POST
/videos/import

Imports a video from Google Drive, OneDrive or a public URL. The import runs in the background: the response is 202 Accepted with a job_id and the new video in the queued status.

For url, source_ref must be an absolute http or https URL.

Authorization

AccessKey
headerAccessKey<token>

The private key of a library, starting with ovk_. Copy it from API & embeds in the console, keep it on your server, and rotate it there if it leaks.

Header Parameters

AccessKey*string

The library's private key. Same value as the AccessKey security scheme; listed here so code samples include it.

Request Body

application/json
  1. body
source*string

Where to import the video from.

Value in"google_drive""onedrive""url"
source_ref*string

The file reference at the source. For url, an absolute http or https URL.

Lengthlength <= 2048
title?string

Video title. Defaults to Imported video.

Lengthlength <= 255

Response Body

The import was accepted and the video is queued.

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.octavideo.tech/api/v1/videos/import' \  -H 'AccessKey: ovk_YOUR_LIBRARY_PRIVATE_KEY' \  -H 'Content-Type: application/json' \  -d '{  "source": "url",  "source_ref": "https://example.com/lessons/intro.mp4",  "title": "Lesson 1: Introduction"}'
Example Response
{  "data": {    "job_id": "a41f0c2e-9b7d-4e3a-8c1f-5d2b6e9a0f13",    "video": {      "id": "6f1c2b9e-4a7d-4f3e-9b8a-2d5c7e1f0a34",      "library_id": "0b8e5d3a-1c2f-4e6a-8b7d-9f0a1b2c3d4e",      "title": "Lesson 1: Introduction",      "description": "",      "encoding_status": "queued",      "progress": 0,      "duration_seconds": 0,      "size_bytes": 0,      "chapters": [],      "created_at": "2026-10-25T09:30:00Z"    }  }}