PlatformXeDocs
Get API Key

Media ingest

Validate a hosted video by URL and hand it to streaming in one call, then read the job.

Media ingest takes a video your app already hosts, by URL, through PlatformXe's pipeline in one request: it probes the URL (strict mode), then, unless you opt out, submits it to streaming. Every request creates an ingest job you can read back.

Scope

storage:upload (both routes). Rate limit: 1,000/hr.

Start an ingest

POST /api/v1/media/ingest

FieldTypeRequiredDescription
modulestringYesYour grouping, e.g. properties
entityIdstringYesThe record the video belongs to
sourceUrlstringYesPublic https URL of the video
callerRefstringNoYour own reference, kept on the job and passed to streaming (the job id is used when you send none)
mimeTypestringNoThe video's MIME type, kept on the job
submitStreamingbooleanNoDefault true. false stops after the probe: the job completes without a streaming asset
curl -X POST https://api.platformxe.com/api/v1/media/ingest \
  -H "Content-Type: application/json" \
  -H "x-api-key: pxk_live_your_api_key_here" \
  -d '{
    "module": "properties",
    "entityId": "prop-1",
    "sourceUrl": "https://cdn.example.com/tours/abc.mp4",
    "callerRef": "tour-abc"
  }'

The pipeline runs inside the request, so the answer is the job in its final state for this request: 201 with the job (status completed or failed), or 400 with the job when the probe refused the URL (status probe_failed; the answer still has "success": true and the job in data).

{
  "success": true,
  "data": {
    "id": "j5n9q3s7u1w4y8a2c6e0g3ik",
    "callerService": "your-app",
    "module": "properties",
    "entityId": "prop-1",
    "sourceUrl": "https://cdn.example.com/tours/abc.mp4",
    "callerRef": "tour-abc",
    "mimeType": null,
    "status": "completed",
    "enhanceProvider": null,
    "enhanceSkippedReason": "…",
    "streamingAssetId": "v6b0d4f8h2k5m9p3r7t1x4zq",
    "errorMessage": null,
    "metadata": { "streamingStatus": "pending" },
    "createdAt": "2026-11-20T10:00:00.000Z",
    "updatedAt": "2026-11-20T10:00:03.000Z"
  }
}

Job fields

FieldDescription
statuscompleted (probed, and submitted to streaming unless submitStreaming was false); probe_failed (the URL failed the probe: errorMessage says why and metadata.code holds the probe failure reason); failed (the streaming submit failed, errorMessage says why). received, probing and enhance_skipped are passed through within the request; a job left in one of them when its request ended is closed as failed by a sweep after 30 minutes
streamingAssetIdThe streaming asset created for the video, or null
metadata{ "streamingStatus": … } after a submit, { "code": … } after a failed probe
enhanceProvider, enhanceSkippedReasonVideo enhancement is not offered yet: every job skips it, and these say so. Do not depend on their values

Errors

CodeStatusDescription
BAD_REQUEST400module, entityId or sourceUrl missing, or the body is not JSON
INGEST_FAILED500The job could not be run

Get an ingest job

GET /api/v1/media/ingest/{id}

Returns one job (the object above). Only the caller service that started the job, within your key's organisation, can read it: any other job, another organisation's included, is 404 NOT_FOUND ("Ingest job not found").

curl https://api.platformxe.com/api/v1/media/ingest/j5n9q3s7u1w4y8a2c6e0g3ik \
  -H "x-api-key: pxk_live_your_api_key_here"

Follow the video's playback state on its streaming asset (streamingAssetId), or wait for the streaming webhooks.