PlatformXeDocs
Get API Key

Probe media URL

Canonical pre-store validation for video URLs (HEAD, size, magic bytes).

POST /api/v1/media/probe

Single source of truth for “is this URL a real, fetchable video?” Used by Lettings before register, storage register, media ingest, and streaming submit (soft mode).

Scope

storage:upload

Request

{
  "sourceUrl": "https://cdn.example.com/tours/abc.mp4",
  "mode": "strict"
}
FieldTypeNotes
sourceUrlstringPublic http(s) URL. Required.
mode"strict" | "soft"Default strict. soft treats probe network errors as pass (for Mux handoff).

Response

Success (200) when the URL looks valid:

{
  "success": true,
  "data": { "ok": true, "container": "mp4" }
}

Failure (400) when validation fails:

{
  "success": true,
  "data": {
    "ok": false,
    "code": "SOURCE_TOO_SMALL",
    "message": "sourceUrl is 1024 bytes — too small to be a valid video file"
  }
}

Error codes

CodeMeaning
INVALID_URLNot parseable or not http(s)
SOURCE_UNREACHABLEHEAD failed or non-2xx
SOURCE_TOO_SMALLUnder 64 KB
SOURCE_NOT_VIDEOWrong Content-Type or unknown container
SOURCE_UNREADABLECould not read bytes for sniff