Preview only — activation required

Build downloads with DWYT

The DWYT code samples document the future request sequence. Production calls remain closed until the video client is reviewed and operator-assigned credentials are enabled.

DwytFlowJSON über HTTPSAsynchrone JobsAnmeldeinformationen mit Bereich
01

Schnellstart

DWYT's format map reviews support-activated credentials for API host. It shows an assigned tenant endpoint next and does not obscure a server-only call path.

Tenant-URLhttps://dwyt.app
AuthentifizierungX-API-Key: pending_activation_…
Profil des KundenDwytFlow
API-Versionv1
# Available only after support activation
export DWYT_FLOW_SECRET="issued-after-review"

curl -X POST https://dwyt.app/v1/resolve \
  -H "X-API-Key: $DWYT_FLOW_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"public_media":"https://www.youtube.com/watch?v=VIDEO_ID"}'

For Credential safety, DWYT begins with server-side secret storage. Its format map pairs that with no client bundle embedding and ends with no public logs or repositories.

02

Auflösen eines Links

DWYT's format map reviews source detection for Resolve operation. It shows formats from one submitted URL next and does not obscure no invented outputs.

Post/v1/resolveGeltungsbereich: resolve
FeldTypErforderlichBeschreibung
public_mediaHTTPS-URLJaÖffentliche oder autorisierte Medienseite zu analysieren.
tenantZeichenfolgeNeinZugewiesene Mandantendomäne. Normalerweise weggelassen.
{
  "success": true,
  "platform": "youtube",
  "title": "Example video",
  "formats": [
    {"id":"18","type":"video","quality":"360p","container":"mp4"}
  ],
  "cached": false
}

For Format identifier, DWYT begins with the returned value unchanged. Its format map pairs that with per-link availability and ends with no guessed quality label.

03

Download-Auftrag erstellen und verfolgen

For Job creation, DWYT checks asynchronous preparation before a short HTTP request. This format map also makes bounded worker execution clear.

Post/v1/jobsGeltungsbereich: Jobs
FeldTypErforderlichBeschreibung
public_mediaHTTPS-URLJaDie gleiche normalisierte Quelle, die zur Auflösung eingereicht wurde.
rendition_keyZeichenfolgeJaEine genaue ID aus der Auflösungsantwort.
tenantZeichenfolgeNeinZugewiesene Mandantendomäne. Normalerweise weggelassen.
curl -X POST https://dwyt.app/v1/jobs \
  -H "X-API-Key: $DWYT_FLOW_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"public_media":"https://www.youtube.com/watch?v=VIDEO_ID","rendition_key":"18"}'
1202 AkzeptiertSave flow_id.
2UmfragestatusGET /v1/jobs/{flow_id} with the same key.
3BereitÖffnen Sie die signierte Download-URL.
StatusBedeutungClient-Action
queuedIn die begrenzte Warteschlange aufgenommen.Abstimmung nochmal mit Rückzug.
extractingAktualisierung von Quellmetadaten oder Route.Fahren Sie mit dem Abstimmen fort.
processingHerunterladen, Remuxen oder Zusammenführen.Serverfortschritt anzeigen.
readySignierter Download ist verfügbar.Senden Sie die URL an den Benutzer.
failedTerminal strukturierter Fehler.Read error_code. Retry only when advised.
expiredTemporäre Ausgabe wurde entfernt.Erstellen Sie einen neuen Job.
curl https://dwyt.app/v1/jobs/FLOW_ID \
  -H "X-API-Key: $DWYT_FLOW_SECRET"

Job polling begins with one-second initial wait on DWYT. This format map then presents capped backoff. The final fact is temporary signed delivery.

04

Vorhersehbare Fehler

DWYT handles Error contract by first identifying one non-2xx envelope. It follows with a support request ID and keeps predictable client handling in view.

{
  "success": false,
  "error": {
    "code": "RATE_LIMITED",
    "category": "rate_limited",
    "message": "Too many requests. Please try again shortly.",
    "retryable": true,
    "details": {"retry_after_seconds": 20}
  },
  "request_id": "…"
}
HTTPTypische BedeutungAction
400Ungültige URL, ungültiger Text oder unzugängliches Format.Korrigieren Sie die Anfrage. Lösen Sie erneut für Formate auf.
401Fehlender, ungültiger, abgelaufener oder falscher Schlüsselbereich.Überprüfen Sie die serverseitigen Anmeldeinformationen.
403Die Anforderung wurde von der Mandanten- oder Quellenrichtlinie abgelehnt.Umgehen Sie die Richtlinie nicht. Wenden Sie sich an den Support.
404Unbekannter oder abgelaufener Job.Erstellen Sie ggf. einen neuen Auftrag.
429Anfrage- oder Aktiv-Job-Limit erreicht.Honor retry_after_seconds.
503Warteschlange/Kapazität oder Upstream vorübergehend nicht verfügbar.Wiederholen Sie den Versuch mit exponentiellem Rückschlag und Jitter.
05

Betriebsvertrag

DWYT reviews the integration before choosing quotas that protect both the video client and upstream services.

DWYT's format map reviews activation before exploration for Schema access. It shows assigned authentication next and does not obscure documented request shapes.

VOM BETRIEBSERHALTER ÜBERPRÜFTER ZUGANG

Activate through support

Explain the application behind the request, its monthly traffic estimate and the video services it will use. DWYT reviews those details, assigns the necessary API permissions and retains no recoverable key value.

Request activation Schlüssel sind mandantenspezifisch, widerrufbar und werden über das Kontaktformular ausgestellt. Anonyme Skripte können keine Downloader-Arbeit ausführen.