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 over HTTPSAsynchronous jobsScoped credentials
01

Quick start

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
AuthenticationX-API-Key: pending_activation_…
Client profileDwytFlow
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

Resolve a link

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/resolveScope: resolve
FieldTypeRequiredDescription
public_mediaHTTPS URLYesPublic or authorized media page to analyze.
tenantstringNoAssigned tenant domain. Usually omitted.
{
  "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

Create and follow a download job

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

POST/v1/jobsScope: jobs
FieldTypeRequiredDescription
public_mediaHTTPS URLYesThe same normalized source submitted to resolve.
rendition_keystringYesAn exact ID from the resolve response.
tenantstringNoAssigned tenant domain. Usually omitted.
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 AcceptedSave flow_id.
2Poll statusGET /v1/jobs/{flow_id} with the same key.
3ReadyOpen the signed download URL.
StatusMeaningClient action
queuedAdmitted to the bounded queue.Poll again with backoff.
extractingRefreshing source metadata or route.Continue polling.
processingDownloading, remuxing or merging.Display server progress.
readySigned download is available.Send the URL to the user.
failedTerminal structured error.Read error_code. Retry only when advised.
expiredTemporary output was removed.Create a new 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

Predictable errors

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": "…"
}
HTTPTypical meaningAction
400Invalid URL, body or unavailable format.Correct the request. Resolve again for formats.
401Missing, invalid, expired or wrong-scope key.Check the server-side credential.
403Tenant or source policy rejected the request.Do not bypass the policy. Contact support.
404Unknown or expired job.Create a new job if appropriate.
429Request or active-job limit reached.Honor retry_after_seconds.
503Queue/capacity or upstream temporarily unavailable.Retry with exponential backoff and jitter.
05

Operational contract

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.

OPERATOR-REVIEWED ACCESS

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 Keys are tenant-scoped, revocable and issued through the Contact form. Anonymous scripts cannot execute downloader work.