{"openapi":"3.1.0","info":{"title":"DCAST Partner API","version":"1.0.0","description":"REST API for partners building on the dcast platform — videos, live streams, multi-destination restreams, LiveKit rooms, monetization, analytics, and webhooks. Bearer pk_* authentication. Idempotency-Key replay on every operation that lists the header. HMAC-signed outgoing webhooks. Monetization endpoints are origin-locked: a checkout / payment call only succeeds from a dcast platform host or an integration domain you have DECLARED and VERIFIED for your account (see the bearerAuth notes and the OriginNotAllowed response). Full topic pages at https://dcast.pro/docs.","contact":{"name":"dcast support","url":"https://dcast.pro/support"},"license":{"name":"Proprietary"}},"servers":[{"url":"https://api.dcast.pro/api/v1","description":"Production"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Account","externalDocs":{"url":"https://dcast.pro/docs/account"}},{"name":"Analytics","externalDocs":{"url":"https://dcast.pro/docs/analytics"}},{"name":"Auth","externalDocs":{"url":"https://dcast.pro/docs/auth"}},{"name":"Booking","externalDocs":{"url":"https://dcast.pro/docs/booking"}},{"name":"Bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges"}},{"name":"Changelog","externalDocs":{"url":"https://dcast.pro/docs/versioning"}},{"name":"Channels","externalDocs":{"url":"https://dcast.pro/docs/channels"}},{"name":"Health","externalDocs":{"url":"https://dcast.pro/docs/quickstart"}},{"name":"Imports","externalDocs":{"url":"https://dcast.pro/docs/video-api"}},{"name":"Monetization","externalDocs":{"url":"https://dcast.pro/docs/monetization"}},{"name":"Notifications","externalDocs":{"url":"https://dcast.pro/docs/webhooks"}},{"name":"Playlists","externalDocs":{"url":"https://dcast.pro/docs/playlists"}},{"name":"Purchases","externalDocs":{"url":"https://dcast.pro/docs/monetization"}},{"name":"Quota","externalDocs":{"url":"https://dcast.pro/docs/account"}},{"name":"Restreams","externalDocs":{"url":"https://dcast.pro/docs/restreams"}},{"name":"Rooms","externalDocs":{"url":"https://dcast.pro/docs/rooms"}},{"name":"Stats","externalDocs":{"url":"https://dcast.pro/docs/analytics"}},{"name":"Streams","externalDocs":{"url":"https://dcast.pro/docs/streams"}},{"name":"Subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization"}},{"name":"Summary","externalDocs":{"url":"https://dcast.pro/docs/analytics"}},{"name":"Support","externalDocs":{"url":"https://dcast.pro/docs/support"}},{"name":"Team","externalDocs":{"url":"https://dcast.pro/docs/team-api"}},{"name":"Tiers","externalDocs":{"url":"https://dcast.pro/docs/monetization"}},{"name":"Upload","externalDocs":{"url":"https://dcast.pro/docs/upload"}},{"name":"Usage","externalDocs":{"url":"https://dcast.pro/docs/account"}},{"name":"Users","externalDocs":{"url":"https://dcast.pro/docs/monetization"}},{"name":"Videos","externalDocs":{"url":"https://dcast.pro/docs/video-api"}},{"name":"Webhooks","externalDocs":{"url":"https://dcast.pro/docs/webhooks"}}],"paths":{"/account/analytics":{"get":{"tags":["Account"],"operationId":"get_account_analytics","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get account analytics (same operation as GET /analytics/account)","description":"Same handler, same request and same response as GET /analytics/account; that is the path to call. The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `analytics:read` permission or a wider one of the same area such as `analytics:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"period","in":"query","required":false,"description":"Look-back window in days, written like `7d`, `30d` or `90d` (read with parseInt; an unreadable or non-positive value means 30; a value above 366 is applied as 366). In the answer, `data.period` is the window actually applied, like `30d`.","schema":{"type":"string","default":"30d"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"period":{"type":"string","description":"The look-back window that was applied, like `30d`."},"videosCount":{"type":"integer"},"streamsCount":{"type":"integer"},"viewsCount":{"type":"integer","description":"Views of your videos in the window, counted as the cabinet counts them: one view is one qualified playback session (enough seconds watched, staff visits excluded), and the same viewer counts again only after 24 hours."},"viewsCountTruncated":{"type":"boolean","description":"true when you own more than 2000 videos and the count covers the newest 2000 only."},"storage":{"type":"object","properties":{"usedBytes":{"type":"number"},"limitBytes":{"type":"number"},"availableBytes":{"type":"number"}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"analytics:read","via":"route-area"}],"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/analytics/account":{"get":{"tags":["Analytics"],"operationId":"get_analytics_account","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get account analytics","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `analytics:read` permission or a wider one of the same area such as `analytics:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"period","in":"query","required":false,"description":"Look-back window in days, written like `7d`, `30d` or `90d` (read with parseInt; an unreadable or non-positive value means 30; a value above 366 is applied as 366). In the answer, `data.period` is the window actually applied, like `30d`.","schema":{"type":"string","default":"30d"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"period":{"type":"string","description":"The look-back window that was applied, like `30d`."},"videosCount":{"type":"integer"},"streamsCount":{"type":"integer"},"viewsCount":{"type":"integer","description":"Views of your videos in the window, counted as the cabinet counts them: one view is one qualified playback session (enough seconds watched, staff visits excluded), and the same viewer counts again only after 24 hours."},"viewsCountTruncated":{"type":"boolean","description":"true when you own more than 2000 videos and the count covers the newest 2000 only."},"storage":{"type":"object","properties":{"usedBytes":{"type":"number"},"limitBytes":{"type":"number"},"availableBytes":{"type":"number"}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"analytics:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/analytics/export.csv":{"get":{"tags":["Analytics"],"operationId":"get_analytics_export_csv","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List export csv analytics","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"from","in":"query","required":false,"description":"Start of the period: a date (`2026-10-01`, read as 00:00 UTC), an ISO date-time or epoch milliseconds. Default: 90 days before `to`.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"End of the period, same forms as `from` (a date means 23:59:59.999 UTC); never later than now. Default: now. The period may span at most 366 days.","schema":{"type":"string"}},{"name":"contentId","in":"query","required":false,"description":"Limit the analytics section to one of your videos or streams; another account's id answers 404.","schema":{"type":"string"}},{"name":"section","in":"query","required":false,"description":"`analytics` (STAR, PRO, VIP): views, unique viewers and countries per video and stream, plus revenue in USD. `audit` (VIP): your account's dated audit events.","schema":{"type":"string","enum":["analytics","audit"],"default":"analytics"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.analytics_report_export","externalDocs":{"url":"https://dcast.pro/docs/analytics-reports","description":"Download analytics and revenue as a CSV report"}}},"/analytics/geography":{"get":{"tags":["Analytics"],"operationId":"get_analytics_geography","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get viewer geography analytics","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `analytics:read` permission or a wider one of the same area such as `analytics:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"period","in":"query","required":false,"description":"Look-back window in days, written like `7d`, `30d` or `90d` (read with parseInt; an unreadable or non-positive value means 30; a value above 366 is applied as 366). In the answer, `data.period` is the window actually applied, like `30d`.","schema":{"type":"string","default":"30d"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"period":{"type":"string","description":"The look-back window that was applied, like `30d`."},"countries":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string","description":"Country name."},"countryCode":{"type":"string","description":"Two-letter country code."},"views":{"type":"integer","description":"Watch sessions from this country, as the creator globe counts them."}}},"description":"Top 20 countries, busiest first."},"cities":{"type":"array","items":{"type":"object","properties":{}}},"regions":{"type":"array","items":{"type":"object","properties":{}}},"totalViews":{"type":"integer","description":"Watch sessions of all your videos and streams in the window whose place is known, also those from countries beyond the top 20. Your own watching and our own infrastructure are not counted."},"_note":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"analytics:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/analytics/revenue":{"get":{"tags":["Analytics"],"operationId":"get_analytics_revenue","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Revenue analytics: income by period, kind of sale, content, country and source, subscriptions and the checkout funnel","description":"The figures of the dashboard's Monetization > Revenue tab, with the same numbers for the same period. `trend` cuts the window into day, week or month buckets with the money by kind of sale and the subscription MRR at the end of each; `topContent` ranks the videos and streams that sold; `subscriptions` holds MRR, churn, ARPU and trial conversion; `funnel` follows orders from opened to paid; `countries` and `sources` split the orders. `totals` equals the revenue of the same period on the dashboard; only USD is summed and sales in another currency are counted in `totals.otherCurrencyCount`. The window is at most 366 days (default the last 90 days), `granularity` is day, week or month and `tz` the minutes east of UTC. Available on the VIP plan: any other plan answers 403 PLAN_UPGRADE_REQUIRED naming `requiredPlans`. Needs a key with the financial read permission (an owner key or `finance:read`), otherwise 403 FINANCIAL_SCOPE_REQUIRED. The same figures, one part per file, come from GET /analytics/revenue.csv. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"from","in":"query","required":false,"description":"Start of the period: a date (`2026-10-01`, read as 00:00 UTC), an ISO date-time or epoch milliseconds. Default: 90 days before `to`.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"End of the period, same forms as `from` (a date means 23:59:59.999 UTC); never later than now. Default: now. The period may span at most 366 days.","schema":{"type":"string"}},{"name":"granularity","in":"query","required":false,"description":"Bucket of the trend. Default: `day` up to 45 days, `week` up to 200 days, `month` beyond.","schema":{"type":"string","enum":["day","week","month"]}},{"name":"tz","in":"query","required":false,"description":"Your offset from UTC in minutes, east positive (UTC+3 is 180); buckets are cut on your calendar. Default 0; between -840 and 840.","schema":{"type":"integer","minimum":-840,"maximum":840}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"window":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"granularity":{"type":"string","enum":["day","week","month"]},"tzOffsetMinutes":{"type":"integer"}},"description":"The period actually read."},"currency":{"type":"string","enum":["USD"],"description":"Only USD is summed; sales in another currency are counted in totals.otherCurrencyCount."},"totals":{"type":"object","properties":{"gross":{"type":"number","description":"Sales taken, USD."},"fees":{"type":"number","description":"Platform fees kept, USD."},"refunds":{"type":"number","description":"Refunded to buyers, USD."},"net":{"type":"number","description":"gross minus fees minus refunds, USD."},"count":{"type":"integer","description":"Number of sales."},"byKind":{"type":"object","properties":{},"description":"Per kind of sale (ppv, ticket, tip, booking, subscription ...): each value has the same five money fields."},"otherCurrencyCount":{"type":"integer"}},"description":"The window totals; they equal the revenue figure of the dashboard for the same period."},"trend":{"type":"array","items":{"type":"object","properties":{"gross":{"type":"number","description":"Sales taken, USD."},"fees":{"type":"number","description":"Platform fees kept, USD."},"refunds":{"type":"number","description":"Refunded to buyers, USD."},"net":{"type":"number","description":"gross minus fees minus refunds, USD."},"count":{"type":"integer","description":"Number of sales."},"bucket":{"type":"string","description":"The bucket label for the granularity."},"byKind":{"type":"object","properties":{},"description":"Per kind of sale (ppv, ticket, tip, booking, subscription ...): each value has the same five money fields."},"newSubscribers":{"type":"integer"},"canceledSubscribers":{"type":"integer"},"mrrAtEnd":{"type":"number"}}},"description":"One entry per bucket of the window, no gaps."},"topContent":{"type":"array","items":{"type":"object","properties":{"gross":{"type":"number","description":"Sales taken, USD."},"fees":{"type":"number","description":"Platform fees kept, USD."},"refunds":{"type":"number","description":"Refunded to buyers, USD."},"net":{"type":"number","description":"gross minus fees minus refunds, USD."},"count":{"type":"integer","description":"Number of sales."},"kind":{"type":"string"},"sourceId":{"type":"string"},"title":{"type":["string","null"]},"refundedSales":{"type":"integer"},"averageSale":{"type":"number"}}},"description":"The best selling videos and streams."},"subscriptions":{"type":"object","properties":{"mrr":{"type":"number"},"netMrr":{"type":"number"},"feePct":{"type":"number"},"active":{"type":"integer"},"activeAtStart":{"type":"integer"},"newInWindow":{"type":"integer"},"canceledInWindow":{"type":"integer"},"churnPct":{"type":"number"},"arpu":{"type":"number"},"payingSubscribers":{"type":"integer"},"trialsStarted":{"type":"integer"},"trialsConverted":{"type":"integer"},"trialConversionPct":{"type":"number"}}},"funnel":{"type":"object","properties":{"opened":{"type":"integer"},"paid":{"type":"integer"},"open":{"type":"integer"},"expired":{"type":"integer"},"failed":{"type":"integer"},"refunded":{"type":"integer"},"conversionPct":{"type":"number"},"byTarget":{"type":"array","items":{"type":"object","properties":{}},"description":"The funnel per video or stream."}},"description":"Orders opened at checkout and how they ended."},"countries":{"type":"array","items":{"type":"object","properties":{"country":{"type":["string","null"]},"orders":{"type":"integer"},"amount":{"type":"number"}}}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"orders":{"type":"integer"},"amount":{"type":"number"}}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-feature":"feature.revenue_analytics","externalDocs":{"url":"https://dcast.pro/docs/revenue-analytics","description":"Revenue analytics on VIP: income by period, content, country and source"}}},"/analytics/revenue.csv":{"get":{"tags":["Analytics"],"operationId":"get_analytics_revenue_csv","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Download one part of the revenue analytics as a CSV file","description":"The same figures as GET /analytics/revenue, one `section` per file: `trend` (default), `content`, `funnel`, `countries` or `sources`; any other value is 400 INVALID_SECTION. The period parameters and the access rules are those of GET /analytics/revenue: VIP plan (otherwise 403 PLAN_UPGRADE_REQUIRED) and a key with the financial read permission. The answer is `text/csv` with a download file name, not the JSON envelope. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"section","in":"query","required":false,"description":"Which part of the revenue analytics to download. Default: `trend`.","schema":{"type":"string","enum":["trend","content","funnel","countries","sources"],"default":"trend"}},{"name":"from","in":"query","required":false,"description":"Start of the period, same forms as in GET /analytics/revenue.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"End of the period, same forms as in GET /analytics/revenue.","schema":{"type":"string"}},{"name":"granularity","in":"query","required":false,"description":"Bucket of the trend section.","schema":{"type":"string","enum":["day","week","month"]}},{"name":"tz","in":"query","required":false,"description":"Your offset from UTC in minutes, east positive; between -840 and 840.","schema":{"type":"integer","minimum":-840,"maximum":840}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":400,"code":"INVALID_SECTION","when":"section is not one of the allowed names.","howToFix":"Use one of the sections the message lists.","retryable":false}],"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-feature":"feature.revenue_analytics","externalDocs":{"url":"https://dcast.pro/docs/revenue-analytics","description":"Revenue analytics on VIP: income by period, content, country and source"}}},"/analytics/stats":{"get":{"tags":["Analytics"],"operationId":"get_analytics_stats","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get account statistics","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"source":{"type":"string"},"tiers":{"type":"object","properties":{"total":{"type":"integer"},"active":{"type":"integer"}}},"subscribers":{"type":"object","properties":{"total":{"type":"integer"}}},"revenue":{"type":"object","properties":{"mrr":{"type":"number"},"monthly":{"type":"number"},"videoSales":{"type":"number","description":"USD. One-off sales after our fee, before refunds. Only USD sales are summed."},"currency":{"type":"string","enum":["USD"]},"videoSalesDetail":{"type":"object","properties":{"gross":{"type":"number"},"fees":{"type":"number"},"refunds":{"type":"number"},"net":{"type":"number"},"count":{"type":"integer"},"otherCurrencyCount":{"type":"integer","description":"Sales in another currency: counted here and in no sum."}},"description":"Gross, fees, refunds and net of the one-off sales, USD, as in the cabinet."}}},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/analytics/streams":{"get":{"tags":["Analytics"],"operationId":"get_analytics_streams","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List stream analytics","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `analytics:read` permission or a wider one of the same area such as `analytics:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"period","in":"query","required":false,"description":"Look-back window, case-insensitive; default 30d. `all` only drops the lower bound: `totalViewers` (qualified playback sessions, as the cabinet counts them) and `totalWatchTimeSec` are defined the same way in every window.","schema":{"type":"string","enum":["7d","30d","90d","all"],"default":"30d"}},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"period":{"type":"string"},"streams":{"type":"array","items":{"type":"object","properties":{}}},"truncated":{"type":"boolean"},"catalogTotal":{"type":"integer"},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"analytics:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/analytics/streams/{id}":{"get":{"tags":["Analytics"],"operationId":"get_analytics_streams_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get analytics of one stream","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `analytics:read` permission or a wider one of the same area such as `analytics:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"period","in":"query","required":false,"description":"Window of the playback numbers, case-insensitive; default all (the whole history). `all` only drops the lower bound; views and watch time are counted the same way in every window.","schema":{"type":"string","enum":["7d","30d","90d","all"],"default":"all"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"period":{"type":"string","description":"The window applied: 7d, 30d, 90d or all (default all)."},"totalViews":{"type":"integer","description":"Qualified playback sessions in the window, as the cabinet counts them."},"uniqueViewers":{"type":"integer"},"peakViewers":{"type":"integer"},"totalWatchTime":{"type":["number","null"],"description":"Seconds played in the window; null when it could not be measured, which is not zero."},"avgWatchTime":{"type":["number","null"],"description":"totalWatchTime divided by totalViews, seconds."},"duration":{"type":"number"},"geography":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"analytics:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/analytics/summary":{"get":{"tags":["Analytics"],"operationId":"get_analytics_summary","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get analytics summary","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"source":{"type":"string"},"tiers":{"type":"integer"},"subscribers":{"type":"integer"},"mrr":{"type":"number"},"videoSalesTotal":{"type":"number","description":"USD. One-off sales (video, ticket, tip, booking) after our fee, before refunds: videoSales.gross minus videoSales.fees. Only USD sales are summed."},"videoSalesCount":{"type":"integer","description":"Number of USD one-off sales summed."},"videoSales":{"type":"object","properties":{"currency":{"type":"string","enum":["USD"]},"gross":{"type":"number","description":"What buyers paid, USD."},"fees":{"type":"number","description":"The commission DCAST kept, USD; a refund that returned the fee gives it back."},"refunds":{"type":"number","description":"Refunded to buyers, USD."},"net":{"type":"number","description":"gross minus fees minus refunds, USD."},"count":{"type":"integer","description":"USD sales summed."},"otherCurrencyCount":{"type":"integer","description":"Sales paid in another currency: counted here and in no sum."}},"description":"The same sale ledger and definitions as the cabinet revenue figures."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/analytics/videos":{"get":{"tags":["Analytics"],"operationId":"get_analytics_videos","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List video analytics","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `analytics:read` permission or a wider one of the same area such as `analytics:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"period","in":"query","required":false,"description":"Look-back window, case-insensitive; default 30d. `all` only drops the lower bound: `views` (a qualified playback session, as the cabinet counts it; the same viewer counts again after 24 hours) and `watchTimeSec` (seconds played in those sessions) are defined the same way in every window.","schema":{"type":"string","enum":["7d","30d","90d","all"],"default":"30d"}},{"name":"sortBy","in":"query","required":false,"description":"Sort key, case-insensitive; default views.","schema":{"type":"string","enum":["views","likes","comments","watchTime"],"default":"views"}},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"period":{"type":"string"},"sortBy":{"type":"string"},"videos":{"type":"array","items":{"type":"object","properties":{}}},"truncated":{"type":"boolean"},"catalogTotal":{"type":"integer"},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"analytics:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/analytics/videos/{id}":{"get":{"tags":["Analytics"],"operationId":"get_analytics_videos_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get analytics of one video","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `analytics:read` permission or a wider one of the same area such as `analytics:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"period","in":"query","required":false,"description":"Look-back window in days, written like `7d`, `30d` or `90d` (read with parseInt; an unreadable value means 30; a value above 366 is applied as 366). In the answer, `data.period` is the window actually applied.","schema":{"type":"string","default":"30d"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"videoId":{"type":"string"},"period":{"type":"string","description":"The look-back window that was applied, like `30d`. An unreadable or non-positive period means 30d."},"totalViews":{"type":"integer","description":"Qualified playback sessions in the window, as the cabinet counts them."},"uniqueViewers":{"type":"integer","description":"Distinct viewers behind those views."},"totalWatchTime":{"type":["number","null"],"description":"Seconds played in the window; null when it could not be measured, which is not zero."},"avgWatchTime":{"type":["number","null"],"description":"totalWatchTime divided by totalViews, seconds."},"viewsByDay":{},"geography":{},"qualityBreakdown":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"analytics:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/auth/login":{"post":{"tags":["Auth"],"operationId":"post_auth_login","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Sign in with email and password","description":"Full request/response shape on the topic page; envelope shapes under components.schemas.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Signed in. NOTE the non-standard body: `tokens` and `user` sit at the TOP LEVEL, there is no `data` envelope.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthRelease"},"examples":{"signedIn":{"summary":"Signed in — `tokens` and `user` are TOP-LEVEL. Reading response.data here yields undefined","value":{"success":true,"tokens":{"accessToken":"<jwt>","expiresIn":86400},"user":{"id":"cmuser000000000000000000u1","email":"creator@example.com","name":"Alex Rivera","role":"USER"}}}}}}},"400":{"description":"HTTP 400","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"missingField":{"summary":"Either field absent or not a string","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"email and password are required"}}}}}}},"401":{"description":"HTTP 401 Codes on this operation: `INVALID_CREDENTIALS` (Email or password is wrong. Check the email and password. After repeated failures wait for the rate-limit window before trying again.) `SECOND_FACTOR_REQUIRED` (The account has two-step sign-in; the password alone is not enough. Finish the sign-in at POST /api/auth/login/2fa with the challengeId from this answer and the code from the authenticator.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"rejected":{"summary":"ONE body for unknown address, wrong password and suspended account alike — deliberately indistinguishable, so do not word your UI as \"no such user\"","value":{"success":false,"error":{"code":"INVALID_CREDENTIALS","message":"Invalid credentials"}}},"secondFactorRequired":{"summary":"Password was correct. A 401 that is NOT a failure: carry challengeId to POST /api/auth/login/2fa with the code","value":{"success":false,"twoFactorRequired":true,"challengeId":"QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZn","expiresIn":300,"error":{"code":"SECOND_FACTOR_REQUIRED","message":"Complete sign-in at POST /api/auth/login/2fa with this challengeId and your code"}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"SECOND_FACTOR_UNAVAILABLE — the password was accepted but the second-factor step could not be started. Retry. Codes on this operation: `SECOND_FACTOR_UNAVAILABLE` (Two-step verification cannot be checked right now. Try again in a few seconds.)"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","password"],"description":"Sign the account that owns your pk_ key in and get its X-User-Token. Sent with your pk_ key: the rate limit is applied per key as well as per address. The token is accepted only together with a key of the SAME account: a token of any other user makes every call answer 401 INVALID_USER_TOKEN, so this is not a way to act for many end-users through one key.","properties":{"email":{"type":"string","description":"Lower-cased before lookup."},"password":{"type":"string"}}},"examples":{"default":{"summary":"Both fields are required; either one missing or non-string is 400 BAD_REQUEST","value":{"email":"creator@example.com","password":"the-end-user-password"}}}}}},"x-dcast-errors":[{"status":401,"code":"INVALID_CREDENTIALS","when":"Email or password is wrong.","howToFix":"Check the email and password. After repeated failures wait for the rate-limit window before trying again.","retryable":false},{"status":401,"code":"SECOND_FACTOR_REQUIRED","when":"The account has two-step sign-in; the password alone is not enough.","howToFix":"Finish the sign-in at POST /api/auth/login/2fa with the challengeId from this answer and the code from the authenticator.","retryable":false},{"status":503,"code":"SECOND_FACTOR_UNAVAILABLE","when":"Two-step verification cannot be checked right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-generated-summary":true}},"/auth/register":{"post":{"tags":["Auth"],"operationId":"post_auth_register","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Register an account","description":"Full request/response shape on the topic page; envelope shapes under components.schemas.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Account created. NOTE the non-standard body: `tokens` and `user` sit at the TOP LEVEL, there is no `data` envelope.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthRelease"},"examples":{"created":{"summary":"Created — same top-level `tokens`/`user` shape as login, and 201 rather than 200","value":{"success":true,"tokens":{"accessToken":"<jwt>","expiresIn":86400},"user":{"id":"cmuser000000000000000000u1","email":"creator@example.com","name":"Alex Rivera","role":"USER"}}}}}}},"400":{"description":"HTTP 400 Codes on this operation: `INVALID_EMAIL` (The email address is malformed. Send a valid email address.) `WEAK_PASSWORD` (The password is too weak. Use a longer password; the message names the minimum.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"weakPassword":{"summary":"Length is the only password rule enforced here","value":{"success":false,"error":{"code":"WEAK_PASSWORD","message":"Password must be at least 12 characters"}}},"invalidEmail":{"summary":"Distinct code from the missing-field 400 — branch on error.code, not on the message","value":{"success":false,"error":{"code":"INVALID_EMAIL","message":"Email format is invalid"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"EMAIL_EXISTS — that address already has an account. Codes on this operation: `EMAIL_EXISTS` (An account with this email already exists. Sign in instead, or use another email.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"emailExists":{"summary":"Already registered. The same body is returned when two registrations race, so treat it as idempotent-ish and sign in instead","value":{"success":false,"error":{"code":"EMAIL_EXISTS","message":"Email already registered"}}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","password"],"properties":{"email":{"type":"string","maxLength":254,"description":"Trimmed + lower-cased; a malformed address is 400 INVALID_EMAIL."},"password":{"type":"string","minLength":12,"description":"Shorter than 12 characters is 400 WEAK_PASSWORD."},"name":{"type":["string","null"],"description":"Optional. Trimmed and truncated to 120 characters. A non-string is 400."}}},"examples":{"minimal":{"summary":"name omitted — the account is created without a display name","value":{"email":"new-creator@example.com","password":"a-long-enough-passphrase"}},"withName":{"summary":"With a display name, which is trimmed and cut to 120 characters","value":{"email":"new-creator@example.com","password":"a-long-enough-passphrase","name":"Alex Rivera"}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_EMAIL","when":"The email address is malformed.","howToFix":"Send a valid email address.","retryable":false},{"status":400,"code":"WEAK_PASSWORD","when":"The password is too weak.","howToFix":"Use a longer password; the message names the minimum.","retryable":false},{"status":409,"code":"EMAIL_EXISTS","when":"An account with this email already exists.","howToFix":"Sign in instead, or use another email.","retryable":false}],"x-dcast-generated-summary":true}},"/booking/availability":{"get":{"tags":["Booking"],"operationId":"get_booking_availability","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get availability (booking)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:read` permission or a wider one of the same area such as `booking:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}},"put":{"tags":["Booking"],"operationId":"put_booking_availability","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Replace availability (booking)","description":"Full request/response shape on the topic page; envelope shapes under components.schemas. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"timezone":{"type":"string"},"weeklyJson":{},"blackoutsJson":{},"minNoticeMin":{"type":"integer"},"maxAdvanceDays":{"type":"integer"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["weeklyJson"],"properties":{"weeklyJson":{"type":"object","description":"Object keyed by day of week (mon tue wed thu fri sat sun; any other key is refused 400) → list of {start, end} windows written as HH:MM, 00:00 to 24:00, start before end. {startMin, endMin} (minutes from midnight) is accepted too. What is stored and read back carries both spellings.","additionalProperties":false,"properties":{"mon":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"end":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}}}},"tue":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"end":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}}}},"wed":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"end":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}}}},"thu":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"end":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}}}},"fri":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"end":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}}}},"sat":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"end":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}}}},"sun":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"end":{"type":"string","pattern":"^\\d{1,2}:\\d{2}$"},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}}}}}},"timezone":{"type":"string","default":"UTC","description":"An IANA time zone name such as Europe/Berlin; any other value is refused 400."},"blackoutsJson":{"type":["array","null"],"description":"Periods with no slots. {startsAt, endsAt} are ISO 8601 timestamps, endsAt after startsAt.","items":{"type":"object","required":["startsAt","endsAt"],"properties":{"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"reason":{"type":"string","maxLength":200}}}},"minNoticeMin":{"type":"integer","minimum":0,"default":60,"description":"Shortest notice, in minutes, before a slot can be booked."},"maxAdvanceDays":{"type":"integer","minimum":1,"default":60,"description":"How many days ahead slots are offered."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"booking:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/bookings":{"get":{"tags":["Booking"],"operationId":"get_booking_bookings","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List bookings (booking)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED. The key needs the `booking:read` permission or a wider one of the same area such as `booking:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 25, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"status","in":"query","required":false,"description":"Filter by booking status. An unknown value is ignored.","schema":{"type":"string","enum":["PENDING","CONFIRMED","IN_PROGRESS","COMPLETED","CANCELED","REFUNDED","NO_SHOW"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","properties":{}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"},{"kind":"permission","permission":"booking:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/bookings/{id}":{"get":{"tags":["Booking"],"operationId":"get_booking_bookings_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one booking (booking)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED. The key needs the `booking:read` permission or a wider one of the same area such as `booking:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"},{"kind":"permission","permission":"booking:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/cohorts/{cohortId}":{"delete":{"tags":["Booking"],"operationId":"delete_booking_cohorts_cohortId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete cohort (booking)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"cohortId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `COHORT_HAS_ENROLLMENTS` (The cohort has active enrollments. Remove the enrollments first, or keep the cohort.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":409,"code":"COHORT_HAS_ENROLLMENTS","when":"The cohort has active enrollments.","howToFix":"Remove the enrollments first, or keep the cohort.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"booking:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}},"get":{"tags":["Booking"],"operationId":"get_booking_cohorts_cohortId","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one cohort (booking)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:read` permission or a wider one of the same area such as `booking:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"cohortId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}},"patch":{"tags":["Booking"],"operationId":"patch_booking_cohorts_cohortId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update cohort (booking)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"cohortId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"productId":{"type":"string"},"title":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"sessionCount":{"type":"integer"},"maxSize":{"type":"integer"},"enrolledCount":{"type":"integer"},"description":{"type":["string","null"]},"enrollmentOpensAt":{"type":["string","null"],"format":"date-time"},"enrollmentClosesAt":{"type":["string","null"],"format":"date-time"},"communityArchivedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update: send only what changes. The same rules as creating one: maxSize and sessionCount are whole numbers of at least 1, dates are ISO 8601, and the end must stay after the start (the stored one when only one end is sent); a value that breaks a rule is refused 400 naming the field.","properties":{"title":{"type":"string","description":"Non-blank text.","minLength":1},"description":{"type":["string","null"]},"startsAt":{"type":"string","description":"First day, ISO 8601.","format":"date-time"},"endsAt":{"type":"string","description":"Last day, ISO 8601.","format":"date-time"},"sessionCount":{"type":"integer","description":"Number of sessions.","minimum":1},"maxSize":{"type":"integer","description":"Seats in the cohort.","minimum":1},"enrollmentOpensAt":{"type":["string","null"],"description":"When enrolment opens; null clears it.","format":"date-time"},"enrollmentClosesAt":{"type":["string","null"],"description":"When enrolment closes; null clears it.","format":"date-time"}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"booking:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/cohorts/{cohortId}/videos":{"post":{"tags":["Booking"],"operationId":"post_booking_cohorts_cohortId_videos","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create video (cohorts)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"cohortId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"cohortId":{"type":"string"},"videoId":{"type":"string"},"revealAt":{"type":"string","format":"date-time"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"position":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `VIDEO_ALREADY_ATTACHED` (The video is already attached to the cohort. Nothing to do.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Attaches one of your videos to the cohort as drip content. The same video twice is refused 409 VIDEO_ALREADY_ATTACHED.","required":["videoId","revealAt"],"properties":{"videoId":{"type":"string","description":"Id of one of your videos."},"revealAt":{"type":"string","description":"When cohort members can watch it, ISO 8601.","format":"date-time"},"title":{"type":["string","null"],"description":"Title shown in the cohort."},"description":{"type":["string","null"]},"position":{"type":"integer","description":"Order inside the cohort, default 0.","default":0}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_REF","when":"A referenced item is not among your items.","howToFix":"List your items and send an id from the list.","retryable":false},{"status":409,"code":"VIDEO_ALREADY_ATTACHED","when":"The video is already attached to the cohort.","howToFix":"Nothing to do.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"booking:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/cohorts/{cohortId}/videos/{cvId}":{"delete":{"tags":["Booking"],"operationId":"delete_booking_cohorts_cohortId_videos_cvId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete video (cohorts)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"cohortId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cvId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/discount-codes":{"get":{"tags":["Booking"],"operationId":"get_booking_discount_codes","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List discount codes (booking)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED. The key needs the `booking:read` permission or a wider one of the same area such as `booking:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"},{"kind":"permission","permission":"booking:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}},"post":{"tags":["Booking"],"operationId":"post_booking_discount_codes","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create discount code (booking)","description":"Full request/response shape on the topic page; envelope shapes under components.schemas. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"$ref":"#/components/responses/Success","description":"Created. Body: the success envelope with the new resource in `data`."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `CODE_EXISTS` (A discount code with this name already exists. Choose another code name.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["code"],"description":"Either percentOff (1..100) OR amountCentsOff (≥1), exactly one of them. productId optional (creator-scope code if null).","properties":{"code":{"type":"string","minLength":1,"maxLength":64,"description":"Normalized to uppercase server-side. Unique per creator."},"productId":{"type":["string","null"]},"percentOff":{"type":["integer","null"],"minimum":1,"maximum":100},"amountCentsOff":{"type":["integer","null"],"minimum":1},"maxUses":{"type":["integer","null"],"minimum":1},"expiresAt":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":500},"scopeKind":{"type":"string","enum":["all","video","stream","course","booking","subscription"],"default":"all","description":"What the code applies to. `all` takes no scopeId. With productId set the scope is a booking product and scopeKind is ignored."},"scopeId":{"type":["string","null"],"description":"Id of the single item the code applies to when scopeKind is not `all`; it must belong to you."},"subscriptionDuration":{"type":"string","enum":["once","repeating","forever"],"default":"once","description":"For a subscription discount: how many billing periods it covers."},"durationMonths":{"type":["integer","null"],"minimum":1,"maximum":36,"description":"Required (1 to 36) when subscriptionDuration is `repeating`."}}}}}},"x-dcast-errors":[{"status":409,"code":"CODE_EXISTS","when":"A discount code with this name already exists.","howToFix":"Choose another code name.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"booking:write"},{"kind":"financial","mode":"write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/discount-codes/{id}":{"delete":{"tags":["Booking"],"operationId":"delete_booking_discount_codes_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete discount code (booking)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"softDeleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:delete"},{"kind":"financial","mode":"write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}},"patch":{"tags":["Booking"],"operationId":"patch_booking_discount_codes_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update discount code (booking)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Only these fields can change; the discount itself (percentOff, amountCentsOff, scope) cannot.","properties":{"enabled":{"type":"boolean","description":"false stops the code from being accepted."},"notes":{"type":"string","description":"Internal note, cut to 500 characters."},"expiresAt":{"type":["string","null"],"description":"When the code stops working; null removes the expiry.","format":"date-time"},"maxUses":{"type":["integer","null"],"description":"Total uses allowed; must be at least the number already used; null removes the cap.","minimum":1}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"booking:write"},{"kind":"financial","mode":"write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/products":{"get":{"tags":["Booking"],"operationId":"get_booking_products","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List products (booking)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:read` permission or a wider one of the same area such as `booking:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"type","in":"query","required":false,"description":"Filter by product type. An unknown value is ignored.","schema":{"type":"string","enum":["ONE_TO_ONE","LIVE_CLASS","COHORT"]}},{"name":"published","in":"query","required":false,"description":"Filter by published state: true returns only published, false only unpublished. Any other value is ignored (no filter).","schema":{"type":"string","enum":["true","false"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"type":{"type":"string","enum":["ONE_TO_ONE","LIVE_CLASS","COHORT"]},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"videoPreviewUrl":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"durationMin":{"type":"integer"},"bufferMin":{"type":"integer"},"capacity":{"type":"integer"},"recordable":{"type":"boolean"},"replayAccessDays":{"type":"integer"},"intakeFields":{},"refundPolicyDays":{"type":"integer"},"platformFeeBps":{"type":"integer"},"isPublished":{"type":"boolean"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}},"post":{"tags":["Booking"],"operationId":"post_booking_products","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create product (booking)","description":"Full request/response shape on the topic page; envelope shapes under components.schemas. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"type":{"type":"string","enum":["ONE_TO_ONE","LIVE_CLASS","COHORT"]},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"videoPreviewUrl":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"durationMin":{"type":"integer"},"bufferMin":{"type":"integer"},"capacity":{"type":"integer"},"recordable":{"type":"boolean"},"replayAccessDays":{"type":"integer"},"intakeFields":{},"refundPolicyDays":{"type":"integer"},"platformFeeBps":{"type":"integer"},"isPublished":{"type":"boolean"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title","type","priceCents","durationMin"],"description":"A value outside these bounds is refused 400 BAD_REQUEST naming the field. Omitted fields take the defaults shown.","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"type":{"type":"string","enum":["ONE_TO_ONE","LIVE_CLASS","COHORT"]},"priceCents":{"type":"integer","minimum":0},"description":{"type":["string","null"],"maxLength":2000},"thumbnailUrl":{"type":["string","null"]},"durationMin":{"type":"integer","minimum":1,"maximum":600,"description":"Required. Session length in minutes."},"bufferMin":{"type":"integer","minimum":0,"maximum":600,"default":15},"capacity":{"type":"integer","minimum":1,"default":1},"currency":{"type":"string","enum":["USD","EUR","GBP"],"default":"USD","description":"Case-insensitive; stored upper-case."},"recordable":{"type":"boolean","default":true},"replayAccessDays":{"type":"integer","minimum":0,"default":30},"refundPolicyDays":{"type":"integer","minimum":0,"default":7},"intakeFields":{"type":["array","null"]},"slug":{"type":["string","null"],"description":"Optional. Lower-cased, and every run of characters outside a-z 0-9 becomes one dash, up to 80 characters; derived from the title when omitted. A name already used by one of your products gets a short suffix. It is normalized, not refused."}}}}}},"x-dcast-errors":[{"status":400,"code":"PRICE_ABOVE_PLAN_MAX","when":"The price of one sale is above what the plan of the account allows.","howToFix":"Send a price at or below details.maxUsd, or move the account to a plan with a higher maximum. Prices already saved are not changed.","retryable":false},{"status":400,"code":"PRICE_BELOW_PLAN_MIN","when":"The price of one sale is below what the plan of the account allows.","howToFix":"Send a price at or above details.minUsd, or move the account to a plan with a lower minimum. Prices already saved are not changed.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"booking:write"},{"kind":"financial","mode":"write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/products/{id}":{"delete":{"tags":["Booking"],"operationId":"delete_booking_products_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete product (booking)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `PRODUCT_HAS_BOOKINGS` (The product has bookings and cannot be deleted. Unpublish it instead.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":409,"code":"PRODUCT_HAS_BOOKINGS","when":"The product has bookings and cannot be deleted.","howToFix":"Unpublish it instead.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"booking:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}},"get":{"tags":["Booking"],"operationId":"get_booking_products_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one product (booking)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:read` permission or a wider one of the same area such as `booking:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"type":{"type":"string","enum":["ONE_TO_ONE","LIVE_CLASS","COHORT"]},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"videoPreviewUrl":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"durationMin":{"type":"integer"},"bufferMin":{"type":"integer"},"capacity":{"type":"integer"},"recordable":{"type":"boolean"},"replayAccessDays":{"type":"integer"},"intakeFields":{},"refundPolicyDays":{"type":"integer"},"platformFeeBps":{"type":"integer"},"isPublished":{"type":"boolean"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}},"patch":{"tags":["Booking"],"operationId":"patch_booking_products_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update product (booking)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. When the body includes `priceCents`, `currency`, `refundPolicyDays`: Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"type":{"type":"string","enum":["ONE_TO_ONE","LIVE_CLASS","COHORT"]},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"videoPreviewUrl":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"durationMin":{"type":"integer"},"bufferMin":{"type":"integer"},"capacity":{"type":"integer"},"recordable":{"type":"boolean"},"replayAccessDays":{"type":"integer"},"intakeFields":{},"refundPolicyDays":{"type":"integer"},"platformFeeBps":{"type":"integer"},"isPublished":{"type":"boolean"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update: send only what changes. `type` and `slug` cannot be changed.","properties":{"title":{"type":"string","description":"Non-blank, at most 200 characters.","minLength":1,"maxLength":200},"description":{"type":["string","null"],"description":"At most 2000 characters.","maxLength":2000},"thumbnailUrl":{"type":["string","null"]},"priceCents":{"type":"integer","description":"Price in cents, 0 or more.","minimum":0},"currency":{"type":"string","enum":["USD","EUR","GBP"],"description":"Case-insensitive; stored upper-case."},"durationMin":{"type":"integer","description":"Session length in minutes, 1 to 600.","minimum":1,"maximum":600},"bufferMin":{"type":"integer","description":"Gap between sessions in minutes, 0 to 600.","minimum":0,"maximum":600},"capacity":{"type":"integer","description":"Seats per session.","minimum":1},"recordable":{"type":"boolean"},"replayAccessDays":{"type":"integer","description":"Days buyers can watch the replay.","minimum":0},"refundPolicyDays":{"type":"integer","description":"Days within which a refund is allowed.","minimum":0},"intakeFields":{"type":["array","null"],"items":{"type":"object","properties":{}},"description":"Questions asked at booking."},"videoPreviewUrl":{"type":["string","null"],"description":"Preview video address shown on the product page."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"booking:write"},{"kind":"financial","mode":"write","fields":["priceCents","currency","refundPolicyDays"]}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/products/{id}/publish":{"post":{"tags":["Booking"],"operationId":"post_booking_products_id_publish","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Publish product (booking)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"type":{"type":"string","enum":["ONE_TO_ONE","LIVE_CLASS","COHORT"]},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"videoPreviewUrl":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"durationMin":{"type":"integer"},"bufferMin":{"type":"integer"},"capacity":{"type":"integer"},"recordable":{"type":"boolean"},"replayAccessDays":{"type":"integer"},"intakeFields":{},"refundPolicyDays":{"type":"integer"},"platformFeeBps":{"type":"integer"},"isPublished":{"type":"boolean"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/products/{id}/unpublish":{"post":{"tags":["Booking"],"operationId":"post_booking_products_id_unpublish","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Unpublish product (booking)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"type":{"type":"string","enum":["ONE_TO_ONE","LIVE_CLASS","COHORT"]},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"videoPreviewUrl":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"durationMin":{"type":"integer"},"bufferMin":{"type":"integer"},"capacity":{"type":"integer"},"recordable":{"type":"boolean"},"replayAccessDays":{"type":"integer"},"intakeFields":{},"refundPolicyDays":{"type":"integer"},"platformFeeBps":{"type":"integer"},"isPublished":{"type":"boolean"},"publishedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/products/{productId}/cohorts":{"get":{"tags":["Booking"],"operationId":"get_booking_products_productId_cohorts","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List cohorts (products)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:read` permission or a wider one of the same area such as `booking:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}},"post":{"tags":["Booking"],"operationId":"post_booking_products_productId_cohorts","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create cohort (products)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"productId":{"type":"string"},"title":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"sessionCount":{"type":"integer"},"maxSize":{"type":"integer"},"enrolledCount":{"type":"integer"},"description":{"type":["string","null"]},"enrollmentOpensAt":{"type":["string","null"],"format":"date-time"},"enrollmentClosesAt":{"type":["string","null"],"format":"date-time"},"communityArchivedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Only under a product of type COHORT (else 400 WRONG_PRODUCT_TYPE). endsAt must be after startsAt.","required":["title","startsAt","endsAt","maxSize"],"properties":{"title":{"type":"string","description":"Non-empty.","minLength":1},"startsAt":{"type":"string","description":"First day, ISO 8601.","format":"date-time"},"endsAt":{"type":"string","description":"Last day, ISO 8601.","format":"date-time"},"sessionCount":{"type":"integer","description":"Number of sessions, default 1.","default":1},"maxSize":{"type":"integer","description":"Seats in the cohort.","minimum":1},"description":{"type":["string","null"]},"enrollmentOpensAt":{"type":["string","null"],"description":"When enrolment opens.","format":"date-time"},"enrollmentClosesAt":{"type":["string","null"],"description":"When enrolment closes.","format":"date-time"}}}}}},"x-dcast-errors":[{"status":400,"code":"WRONG_PRODUCT_TYPE","when":"Cohorts can only be created under a product of type COHORT.","howToFix":"Create the cohort under a COHORT product.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"booking:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/booking/waitlist":{"get":{"tags":["Booking"],"operationId":"get_booking_waitlist","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List waitlist (booking)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:read` permission or a wider one of the same area such as `booking:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 25, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"status","in":"query","required":false,"description":"Filter by waitlist status. An unknown value is ignored.","schema":{"type":"string","enum":["WAITING","OFFERED","ACCEPTED","EXPIRED","CANCELED"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","properties":{}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/bridges":{"get":{"tags":["Bridges"],"operationId":"get_bridges","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List bridges","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:read` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}},"post":{"tags":["Bridges"],"operationId":"post_bridges","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Create bridge","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. The account needs the DHUB add-on or a plan that includes it; otherwise 403 DHUB_REQUIRES_ADDON.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"$ref":"#/components/responses/Success","description":"Created. Body: the success envelope with the new resource in `data`."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Creates an idle bridge. `workerId` cannot be set (400): a bridge binds to the worker its first publish lands on.","required":["name"],"properties":{"name":{"type":"string","description":"Non-empty.","minLength":1},"kind":{"type":"string","description":"'bridge' (default) or 'srt_mount': a plain SRT relay; the response carries mount.publishUrl and mount.readUrl, both usable from creation and unchanged afterwards. A receiver that connects before the encoder is dropped after about 6 seconds, so set the decoder to retry until the encoder connects.","enum":["bridge","srt_mount"]},"primarySourceId":{"type":["string","null"],"description":"Id of one of your sources (POST /bridges/sources)."},"reconnectWindowS":{"type":"integer","description":"Seconds to wait for the source to reconnect, default 60.","default":60},"ipAllowlistCidrs":{"type":"array","items":{"type":"string"},"description":"CIDR ranges allowed to publish; empty means any."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:write"},{"kind":"dhubAddon"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}":{"delete":{"tags":["Bridges"],"operationId":"delete_bridges_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Delete bridge","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `BRIDGE_LIVE` (The bridge is live or starting and cannot be deleted. Stop the bridge first.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":409,"code":"BRIDGE_LIVE","when":"The bridge is live or starting and cannot be deleted.","howToFix":"Stop the bridge first.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"bridges:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}},"get":{"tags":["Bridges"],"operationId":"get_bridges_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one bridge","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:read` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}},"patch":{"tags":["Bridges"],"operationId":"patch_bridges_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Update bridge","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. The account needs the DHUB add-on or a plan that includes it; otherwise 403 DHUB_REQUIRES_ADDON.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `BRIDGE_FEEDBACK_LOOP` (The bridge would feed its own output back into its source. Choose a destination that is not the bridge's own source.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update. `workerId` cannot be set (400). A change that would make the bridge feed itself is refused 400 BRIDGE_FEEDBACK_LOOP.","properties":{"name":{"type":"string"},"primarySourceId":{"type":["string","null"],"description":"Id of one of your sources."},"backupSourceIds":{"type":"array","items":{"type":"string"},"description":"Ids of your sources used as backups, in order."},"reconnectWindowS":{"type":"integer","description":"Seconds to wait for the source to reconnect."},"ipAllowlistCidrs":{"type":"array","items":{"type":"string"},"description":"CIDR ranges allowed to publish."}}}}}},"x-dcast-errors":[{"status":400,"code":"BRIDGE_FEEDBACK_LOOP","when":"The bridge would feed its own output back into its source.","howToFix":"Choose a destination that is not the bridge's own source.","retryable":false},{"status":409,"code":"BRIDGE_FEEDBACK_LOOP","when":"The bridge would feed its own output back into its source.","howToFix":"Choose a destination that is not the bridge's own source.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"bridges:write"},{"kind":"dhubAddon"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/destinations":{"get":{"tags":["Bridges"],"operationId":"get_bridges_id_destinations","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List destinations (bridges)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:read` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}},"post":{"tags":["Bridges"],"operationId":"post_bridges_id_destinations","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Create destination (bridges)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. The account needs the DHUB add-on or a plan that includes it; otherwise 403 DHUB_REQUIRES_ADDON.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"$ref":"#/components/responses/Success","description":"Created. Body: the success envelope with the new resource in `data`."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","targetUrl"],"properties":{"name":{"type":"string","description":"Non-empty.","minLength":1},"targetUrl":{"type":"string","description":"Where the bridge sends the program; checked for the chosen protocol and must be a public address."},"protocol":{"type":"string","enum":["rtmps","srt_caller","hls_public","custom"],"description":"Default rtmps.","default":"rtmps"},"enabled":{"type":"boolean","description":"Default true.","default":true},"transcodeProfile":{"type":"string","description":"Encoding profile, default passthrough.","default":"passthrough"},"videoCodec":{"type":["string","null"],"description":"Video codec override."},"lufsTarget":{"type":["number","null"],"description":"Loudness target in LUFS, default -14.","default":-14}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_URL","when":"A URL field is malformed or points somewhere the platform refuses to fetch (private address, wrong scheme).","howToFix":"Send a public http(s) or rtmp(s)/srt URL as the message says.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"bridges:write"},{"kind":"dhubAddon"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/events":{"get":{"tags":["Bridges"],"operationId":"get_bridges_id_events","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List events (bridges)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:read` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"limit","in":"query","required":false,"description":"Page size, default 50, at most 200; a larger value is lowered to 200.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/mount/rotate-publish-key":{"post":{"tags":["Bridges"],"operationId":"post_bridges_id_mount_rotate_publish_key","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Set rotate publish key (mount)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/mount/rotate-read-key":{"post":{"tags":["Bridges"],"operationId":"post_bridges_id_mount_rotate_read_key","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Set rotate read key (mount)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/recording/download":{"get":{"tags":["Bridges"],"operationId":"get_bridges_id_recording_download","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get download (recording)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:read` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/bridges/{id}/recording/qualities":{"get":{"tags":["Bridges"],"operationId":"get_bridges_id_recording_qualities","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List qualities (recording)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:read` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/bridges/{id}/return-pgm/start":{"post":{"tags":["Bridges"],"operationId":"post_bridges_id_return_pgm_start","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Start return pgm (bridges)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. The account needs the DHUB add-on or a plan that includes it; otherwise 403 DHUB_REQUIRES_ADDON.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:operate"},{"kind":"dhubAddon"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/return-pgm/stop":{"post":{"tags":["Bridges"],"operationId":"post_bridges_id_return_pgm_stop","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Stop return pgm (bridges)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. The account needs the DHUB add-on or a plan that includes it; otherwise 403 DHUB_REQUIRES_ADDON.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:operate"},{"kind":"dhubAddon"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/rotate-key":{"post":{"tags":["Bridges"],"operationId":"post_bridges_id_rotate_key","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Rotate key of bridge","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `SERVICE_UNAVAILABLE` (A service the call depends on has no capacity or is not configured right now. Repeat after a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":500,"code":"SERVICE_UNAVAILABLE","when":"A service the call depends on has no capacity or is not configured right now.","howToFix":"Repeat after a few seconds.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"SERVICE_UNAVAILABLE","when":"A service the call depends on has no capacity or is not configured right now.","howToFix":"Repeat after a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"bridges:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/sources":{"get":{"tags":["Bridges"],"operationId":"get_bridges_id_sources","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List sources (bridges)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:read` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/start":{"post":{"tags":["Bridges"],"operationId":"post_bridges_id_start","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Start bridge","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. The account needs the DHUB add-on or a plan that includes it; otherwise 403 DHUB_REQUIRES_ADDON.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `BRIDGE_FEEDBACK_LOOP` (The bridge would feed its own output back into its source. Choose a destination that is not the bridge's own source.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `SERVICE_UNAVAILABLE` (A service the call depends on has no capacity or is not configured right now. Repeat after a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":400,"code":"BRIDGE_FEEDBACK_LOOP","when":"The bridge would feed its own output back into its source.","howToFix":"Choose a destination that is not the bridge's own source.","retryable":false},{"status":409,"code":"BRIDGE_FEEDBACK_LOOP","when":"The bridge would feed its own output back into its source.","howToFix":"Choose a destination that is not the bridge's own source.","retryable":false},{"status":500,"code":"SERVICE_UNAVAILABLE","when":"A service the call depends on has no capacity or is not configured right now.","howToFix":"Repeat after a few seconds.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"SERVICE_UNAVAILABLE","when":"A service the call depends on has no capacity or is not configured right now.","howToFix":"Repeat after a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"bridges:operate"},{"kind":"dhubAddon"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/stop":{"post":{"tags":["Bridges"],"operationId":"post_bridges_id_stop","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Stop bridge","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `SERVICE_UNAVAILABLE` (A service the call depends on has no capacity or is not configured right now. Repeat after a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":500,"code":"SERVICE_UNAVAILABLE","when":"A service the call depends on has no capacity or is not configured right now.","howToFix":"Repeat after a few seconds.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"SERVICE_UNAVAILABLE","when":"A service the call depends on has no capacity or is not configured right now.","howToFix":"Repeat after a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"bridges:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/{id}/tally-endpoints":{"patch":{"tags":["Bridges"],"operationId":"patch_bridges_id_tally_endpoints","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Update tally endpoint (bridges)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"tallyEndpoints":{"type":"array","items":{"type":"object","properties":{}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["tallyEndpoints"],"properties":{"tallyEndpoints":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"http(s) address that receives tally state; must be a public address."},"host":{"type":"string","description":"Host of a tally receiver that is not an http(s) URL."}}},"description":"Replaces the list of tally receivers. May be empty."}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_URL","when":"A URL field is malformed or points somewhere the platform refuses to fetch (private address, wrong scheme).","howToFix":"Send a public http(s) or rtmp(s)/srt URL as the message says.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"bridges:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/destinations/{destId}":{"delete":{"tags":["Bridges"],"operationId":"delete_bridges_destinations_destId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Delete destination (bridges)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"destId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}},"patch":{"tags":["Bridges"],"operationId":"patch_bridges_destinations_destId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Update destination (bridges)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"destId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update: send only what changes.","properties":{"name":{"type":"string"},"targetUrl":{"type":"string","description":"Checked for the destination's protocol; must be a public address."},"enabled":{"type":"boolean"},"transcodeProfile":{"type":"string"},"videoCodec":{"type":["string","null"]},"lufsTarget":{"type":"number","description":"Loudness target in LUFS."}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_URL","when":"A URL field is malformed or points somewhere the platform refuses to fetch (private address, wrong scheme).","howToFix":"Send a public http(s) or rtmp(s)/srt URL as the message says.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"bridges:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/sources":{"get":{"tags":["Bridges"],"operationId":"get_bridges_sources","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List sources (bridges)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:read` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}},"post":{"tags":["Bridges"],"operationId":"post_bridges_sources","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Create source (bridges)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. The account needs the DHUB add-on or a plan that includes it; otherwise 403 DHUB_REQUIRES_ADDON.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"$ref":"#/components/responses/Success","description":"Created. Body: the success envelope with the new resource in `data`."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Source name. Required, non-empty."},"protocol":{"type":"string","enum":["rtmps","srt_listener","srt_caller","srtla","whip","hls_pull","rtsp_pull"],"description":"How the source reaches the bridge, default rtmps.","default":"rtmps"},"config":{"type":"object","properties":{},"description":"Protocol options. For a pull protocol (srt_caller, hls_pull, rtsp_pull) `config.url` is the address a worker connects to; it must be a public address."},"passphrase":{"type":["string","null"],"description":"SRT passphrase. When omitted one is generated for the protocols that use it."}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_URL","when":"A URL field is malformed or points somewhere the platform refuses to fetch (private address, wrong scheme).","howToFix":"Send a public http(s) or rtmp(s)/srt URL as the message says.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"bridges:write"},{"kind":"dhubAddon"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/bridges/sources/{sourceId}":{"delete":{"tags":["Bridges"],"operationId":"delete_bridges_sources_sourceId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Delete source (bridges)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `bridges:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"sourceId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"bridges:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.dhub_bridges","externalDocs":{"url":"https://dcast.pro/docs/bridges","description":"DHUB bridges: multi-source, multi-destination routing"}}},"/changelog":{"get":{"tags":["Changelog"],"operationId":"get_changelog","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get changelog","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-generated-summary":true}},"/channel/{username}":{"get":{"tags":["Channels"],"operationId":"get_channel_username","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one channel","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs.","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[],"responses":{"200":{"description":"Public channel profile. Shape documented at /docs/channels.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Channel not found."}},"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_channels","externalDocs":{"url":"https://dcast.pro/docs/channels","description":"Public channel profile with its videos and playlists"}}},"/channel/{username}/playlists":{"get":{"tags":["Channels"],"operationId":"get_channel_username_playlists","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List playlists (channel)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs.","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"security":[],"responses":{"200":{"description":"Channel playlists.","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"playlists":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"isPublic":{"type":"boolean"},"userId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"itemCount":{"type":"integer","description":"Number of items. Present whenever the answer knows it."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"integer"},"videoId":{"type":["string","null"]},"streamId":{"type":["string","null"]},"video":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"duration":{}},"description":"Present on items that are videos."}}},"description":"Present on the single-playlist read."},"owner":{"type":"object","properties":{"username":{"type":"string"},"displayName":{"type":["string","null"]}},"description":"Present on the public channel reads."}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}},"headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}}},"404":{"description":"Channel not found."}},"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_channels","externalDocs":{"url":"https://dcast.pro/docs/channels","description":"Public channel profile with its videos and playlists"}}},"/channel/{username}/videos":{"get":{"tags":["Channels"],"operationId":"get_channel_username_videos","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List videos (channel)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs.","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"security":[],"responses":{"200":{"description":"Channel public videos.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Channel not found."}},"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_channels","externalDocs":{"url":"https://dcast.pro/docs/channels","description":"Public channel profile with its videos and playlists"}}},"/checkout/subscription":{"post":{"tags":["Monetization"],"operationId":"post_checkout_subscription","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Start a Stripe Checkout for a paid tier — the buyer is the key owner","description":"Full request/response shape on the topic page; envelope shapes under components.schemas.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CheckoutSession"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/OriginNotAllowed"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `SELLER_TURNOVER_LIMIT_REACHED` (The seller has reached the monthly sales limit of the plan, so this payment cannot be taken now. Try again later, or contact the seller. The seller lifts the limit at once by moving to a higher plan.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSubscriptionRequest"}}}},"x-dcast-errors":[{"status":409,"code":"SELLER_TURNOVER_LIMIT_REACHED","when":"The seller has reached the monthly sales limit of the plan, so this payment cannot be taken now.","howToFix":"Try again later, or contact the seller. The seller lifts the limit at once by moving to a higher plan.","retryable":false}],"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}}},"/health":{"get":{"tags":["Health"],"operationId":"get_health","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Liveness of the API and its dependencies — the endpoint to point monitoring at","description":"Unauthenticated, cheap, and safe to poll. The status code is the signal: 200 when every dependency answered, 503 the moment one did not. The body is the SAME report shape at both codes, and this is the trap worth reading twice — a 503 here carries `success:false` but NO `error` object, so a monitor that reads `error.code` finds undefined on exactly the response it was watching for. Branch on the HTTP status, or on `data.status` (healthy | degraded) and `data.dependencies`. Do not treat this endpoint as a check on your own key — it does not look at one.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[],"responses":{"200":{"description":"Every dependency answered.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthReport"},"examples":{"healthy":{"summary":"All dependencies answered","value":{"success":true,"data":{"status":"healthy","version":"1.0.0","timestamp":"2026-08-14T03:27:19.142Z","uptimeSec":11267,"dependencies":{"postgres":"healthy","redis":"healthy"},"probeDurationMs":1}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"At least one dependency did not answer. Note the body: `success` is false but there is NO `error` object — branch on data.status / data.dependencies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthReport"},"examples":{"degraded":{"summary":"A dependency is down — note success:false and the 503, not a 200 with a flag","value":{"success":false,"data":{"status":"degraded","version":"1.0.0","timestamp":"2026-08-14T03:27:19.142Z","uptimeSec":11267,"dependencies":{"postgres":"healthy","redis":"disconnected"},"probeDurationMs":2}}}}}}}}}},"/imports/{id}":{"get":{"tags":["Imports"],"operationId":"get_imports_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one import","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `videos:read` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"import":{"type":"object","properties":{"id":{"type":"string"}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"videos:read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.import_by_link_api","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Import video from URL with the DCAST API, from one link to a bulk video import"}}},"/me":{"get":{"tags":["Account"],"operationId":"get_me","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Identify the calling key: its scope, limits, and the account behind it","description":"The first call to make with a new key — it answers \"whose key is this, and what may it do\" without touching any resource. `permissions` is the part to read carefully: an EMPTY ARRAY and `['*']` both mean all permissions, not none (dashboard FULL_ACCESS keys carry the empty array; an owner key minted with POST /me/api-keys carries `['*']`). Other keys enumerate entries such as `videos:write`. `mode` is `live`. `rateLimit` is your per-minute ceiling, the same number the X-RateLimit-Limit response header carries. The account profile is nested under `user`. `planLimits` states what the account's plan buys, as the same object the cabinet reads: the top rung of each quality ladder (`videoTopRungHeight` for uploaded video and `streamTopRungHeight` for live, which differ by design, `maxVodFps`, `maxFps`, counts, durations) and under `features` every plan flag as true or false, so ask it whether multi-language live, backup stream, revenue analytics or a dedicated manager are open to you before calling the operation behind them. Any valid key may call this operation: it describes the key itself and its limits, so a `permissions` list on the key does not narrow it.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"keyId":{"type":"string"},"keyName":{"type":"string"},"scope":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"permissions":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"integer","description":"Absent for a connected agent without the billing_view area."},"usageCount":{"type":"integer","description":"Absent for a connected agent without the billing_view area."},"lastUsedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"embedAllowlist":{"type":"array","items":{"type":"string"}},"planLimits":{"type":"object","properties":{"maxStreams":{"type":"integer"},"maxViewers":{"type":"integer"},"maxMembers":{"type":"integer"},"maxTiers":{"type":"integer"},"maxRestreamLegs":{"type":"integer"},"transactionFee":{"type":"number","description":"Commission percent the money path charges on this plan."},"vodMaxResolution":{"type":"integer","description":"Highest resolution height the plan takes for an uploaded video."},"maxStreamQuality":{"type":"integer","description":"Highest resolution height the plan takes for a live broadcast."},"videoTopRungHeight":{"type":"integer","description":"Height in pixels of the top rung of an uploaded video's quality ladder."},"streamTopRungHeight":{"type":"integer","description":"Height in pixels of the top rung of a live broadcast's quality ladder; it can differ from the video one (PRO: 2160 of video, 1440 of live)."},"maxVodFps":{"type":"integer"},"maxFps":{"type":"integer"},"maxLiveDurationSeconds":{"type":["integer","null"]},"maxRestreamDurationSeconds":{"type":["integer","null"]},"maxRoomDurationSeconds":{"type":["integer","null"]},"monthlyActivitySeconds":{"type":["integer","null"]},"maxRoomParticipants":{"type":"integer"},"maxConcurrentRooms":{"type":"integer"},"salePriceMinUsd":{"type":"number","description":"Cheapest price of one sale the plan lets an author save, in USD."},"salePriceMaxUsd":{"type":["number","null"],"description":"Dearest price of one sale the plan lets an author save, in USD; null = no maximum."},"monthlyTurnoverCapUsd":{"type":["number","null"],"description":"Most the account may sell in one account month (all sales and donations, on every gateway), in USD; null = no cap."},"allowRoomRecording":{"type":"boolean"},"allowRoomAISummary":{"type":"boolean"},"allowRoomTranscription":{"type":"boolean"},"features":{"type":"object","properties":{},"description":"Every plan feature flag, each true or false for this plan (for example multiLanguageLive, backupStream, revenueAnalytics, dedicatedManager)."}},"description":"What the plan buys. The object the cabinet's own profile carries, built by the same function. Absent for a connected agent without the billing_view area, like `plan`."},"subscribersCount":{"type":"integer"},"totalVideosCount":{"type":"integer"},"totalLiveStreamsCount":{"type":"integer"},"publicHandle":{"type":["string","null"],"description":"The handle every public address of this account takes (`/channel/{handle}`, `/creator/{handle}`): the username, or the account id when the username is a sign-in address. Never an email."},"channelUrl":{"type":"string","description":"The public address of this account's channel: its own domain or subdomain when it has one, else the platform page of the account's brand."},"brand":{"type":"object","properties":{"face":{"type":["string","null"],"description":"Brand the account lives on, for example DCAST_TV."},"origin":{"type":["string","null"],"description":"Public origin of that brand."}}},"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"username":{"type":["string","null"]}},"description":"The profile; the same object PATCH /me returns."},"_semantics":{"type":"object","properties":{}}}}}},"examples":{"fullAccessKey":{"summary":"A FULL_ACCESS key. `permissions` is EMPTY and that means everything — do not read it as \"no rights\"","value":{"success":true,"data":{"keyId":"cmkey0000000000000000000k1","keyName":"Production integration","scope":"FULL_ACCESS","mode":"live","permissions":[],"rateLimit":1000,"usageCount":48213,"lastUsedAt":"2026-08-14T03:20:11.004Z","createdAt":"2026-06-02T09:14:00.000Z","embedAllowlist":[],"planLimits":{"maxStreams":3,"maxViewers":1000,"maxMembers":100,"maxTiers":5,"maxRestreamLegs":6,"transactionFee":3,"vodMaxResolution":2160,"maxStreamQuality":1440,"maxVodFps":120,"maxFps":60,"maxLiveDurationSeconds":null,"maxRestreamDurationSeconds":null,"maxRoomDurationSeconds":18000,"monthlyActivitySeconds":null,"maxRoomParticipants":100,"maxConcurrentRooms":5,"salePriceMinUsd":3,"salePriceMaxUsd":250,"monthlyTurnoverCapUsd":7500,"allowRoomRecording":true,"allowRoomAISummary":true,"allowRoomTranscription":true,"features":{"advancedAnalytics":true,"advancedProtection":true,"aiInsights":true,"backupStream":true,"brandWatermark":false,"complianceAudit":false,"creatorHomeNavigation":true,"customDashboards":true,"customDomain":true,"customIntegrations":false,"customPaymentFlows":false,"dedicatedManager":false,"enterpriseStreaming":false,"exportReports":true,"externalPlayer":true,"mobileApps":true,"multiLanguageLive":true,"premiumSiteTemplates":true,"prioritySupport":true,"professionalStreaming":true,"revenueAnalytics":false,"roomBrandBadge":false,"subdomain":true,"teamAccounts":true,"whiteLabel":true},"videoTopRungHeight":2160,"streamTopRungHeight":1440},"subscribersCount":1842,"totalVideosCount":96,"totalLiveStreamsCount":14,"publicHandle":"alexrivera","channelUrl":"https://dcast.tv/creator/alexrivera","brand":{"face":"DCAST_TV","origin":"https://dcast.tv"},"user":{"id":"cmuser000000000000000000u1","username":"alexrivera","email":"creator@example.com","displayName":"Alex Rivera"}}}},"scopedTestKey":{"summary":"A STANDARD key — here `permissions` really is the list, and it is short","value":{"success":true,"data":{"keyId":"cmkey0000000000000000000k2","keyName":"Staging read/write","scope":"STANDARD","mode":"live","permissions":["videos:read","videos:write","streams:read"],"rateLimit":120,"usageCount":311,"lastUsedAt":"2026-08-14T01:02:55.771Z","createdAt":"2026-07-19T16:40:00.000Z","embedAllowlist":["player.example.com"],"subscribersCount":0,"totalVideosCount":3,"totalLiveStreamsCount":0,"publicHandle":"alexrivera","channelUrl":"https://dcast.tv/creator/alexrivera","brand":{"face":"DCAST_TV","origin":"https://dcast.tv"},"user":{"id":"cmuser000000000000000000u1","username":"alexrivera","email":"creator@example.com","displayName":"Alex Rivera"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[],"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Run your videos and live broadcasts from your own site through the DCAST API"}},"patch":{"tags":["Account"],"operationId":"patch_me","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update the account profile","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"username":{"type":["string","null"]}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update: send only what changes. `null` clears a text field. Identity, plan, role and billing fields (id, email, emailVerified, username, keycloakId, role, isAdmin, permissions, plan, platformPlan, isVerified, password, passwordHash, stripeConnectAccountId, stripeCustomerId, balance, credits, planExpiresAt, subscriptionStatus) are refused 403 FORBIDDEN_FIELD.","properties":{"displayName":{"type":["string","null"],"description":"Public display name, cut to 120 characters."},"name":{"type":["string","null"],"description":"Full name, cut to 120 characters."},"tagline":{"type":["string","null"],"description":"One-line tagline, cut to 240 characters."},"bio":{"type":["string","null"],"description":"Channel biography, cut to 4000 characters."},"website":{"type":["string","null"],"description":"Website, http(s) URL. An empty string clears it.","format":"uri"},"primaryColor":{"type":["string","null"],"description":"Brand colour as #RRGGBB.","pattern":"^#[0-9a-fA-F]{6}$"},"preferredLanguage":{"type":["string","null"],"description":"Language code, 2 to 10 letters or hyphens, for example `en` or `pt-BR`.","pattern":"^[a-zA-Z-]{2,10}$"},"socials":{"type":["object","null"],"properties":{"twitter":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"x":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"instagram":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"youtube":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"tiktok":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"facebook":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"linkedin":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"github":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"twitch":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"discord":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"telegram":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"website":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"threads":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"mastodon":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."},"bluesky":{"type":["string","null"],"description":"http(s) URL; null or empty removes the link."}},"description":"Social links keyed by network; merged into the stored links. Keys outside this list are ignored, a value that is not an http(s) URL is refused 400."},"siteSettings":{"type":"object","properties":{},"description":"Storefront settings; deep-merged into the stored settings, never replaced."},"coverImage":{"type":["string","null"],"description":"Cover image: a /storage/... path or an http(s) URL. null or an empty string clears it."},"heroImageUrl":{"type":["string","null"],"description":"Hero banner image: a /storage/... path or an http(s) URL. null or an empty string clears it."},"heroImagePosition":{"type":["string","null"],"description":"CSS object-position value for the hero image, cut to 60 characters."}}}}}},"x-dcast-errors":[{"status":403,"code":"FORBIDDEN_FIELD","when":"The body carries a field this operation refuses to change (identity, plan, role).","howToFix":"Remove the field from the body; account identity is managed by sign-in and billing.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/me/api-keys":{"get":{"tags":["Account"],"operationId":"get_me_api_keys","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List api keys","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Requires an account-owner X-User-Token or a FULL_ACCESS key; otherwise 403 OWNER_SCOPE_REQUIRED. The list shows every key of the account without its secret material. The key needs the `site:read` permission or a wider one of the same area such as `site:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":403,"code":"OWNER_SCOPE_REQUIRED","when":"Only the account owner may do this (listing or creating keys, revoking another key).","howToFix":"Authenticate with a FULL_ACCESS key of the owner, or supply an X-User-Token from POST /auth/login.","retryable":false}],"x-dcast-requires":[{"kind":"ownerClass","operation":"list"},{"kind":"permission","permission":"site:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Run your videos and live broadcasts from your own site through the DCAST API"}},"post":{"tags":["Account"],"operationId":"post_me_api_keys","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create api key","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Requires an account-owner X-User-Token or a FULL_ACCESS key; otherwise 403 OWNER_SCOPE_REQUIRED. Minted grants are also checked against the caller capability ceiling.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. The key material is in `data` and is shown only in this response.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"scope":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"integer"},"isActive":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"key":{"type":"string","description":"The key itself. Shown only in this answer."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Needs a FULL_ACCESS key or an X-User-Token; a key cannot be granted more than the minting credential holds. The key value is returned once.","required":["name","role"],"properties":{"name":{"type":"string","description":"Label shown in the cabinet, 1 to 100 characters.","minLength":1,"maxLength":100},"role":{"type":"string","enum":["owner","admin","content_manager","stream_technician","moderator","viewer","observer","editor"],"description":"Access preset of the new key."},"permissions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":64},"description":"Optional advanced override: explicit `resource:action` permission strings, capped by the role. `*` and `finance:*` need role owner (400 otherwise)."}}}}}},"x-dcast-errors":[{"status":400,"code":"VALIDATION_ERROR","when":"An input failed validation.","howToFix":"Fix the input named in the message and call again.","retryable":false},{"status":403,"code":"MINT_CEILING_EXCEEDED","when":"The new key would have more access than the credential that creates it.","howToFix":"Ask for a role/permission set that is no wider than the creating credential's own.","retryable":false},{"status":403,"code":"OWNER_SCOPE_REQUIRED","when":"Only the account owner may do this (listing or creating keys, revoking another key).","howToFix":"Authenticate with a FULL_ACCESS key of the owner, or supply an X-User-Token from POST /auth/login.","retryable":false}],"x-dcast-requires":[{"kind":"ownerClass","operation":"mint"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/me/api-keys/{id}":{"delete":{"tags":["Account"],"operationId":"delete_me_api_keys_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete api key","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Requires an account-owner X-User-Token or a FULL_ACCESS key; otherwise 403 OWNER_SCOPE_REQUIRED. A key may also revoke itself; unknown or other-account ids answer 404.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":400,"code":"VALIDATION_ERROR","when":"An input failed validation.","howToFix":"Fix the input named in the message and call again.","retryable":false},{"status":403,"code":"OWNER_SCOPE_REQUIRED","when":"Only the account owner may do this (listing or creating keys, revoking another key).","howToFix":"Authenticate with a FULL_ACCESS key of the owner, or supply an X-User-Token from POST /auth/login.","retryable":false}],"x-dcast-requires":[{"kind":"ownerClass","operation":"revoke","allowSelf":true}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/me/avatar":{"delete":{"tags":["Account"],"operationId":"delete_me_avatar","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete avatar","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"avatar":{"type":"null"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}},"post":{"tags":["Account"],"operationId":"post_me_avatar","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Set avatar","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"avatar":{},"avatarUrl":{},"sizeBytes":{"type":"integer"},"mimeType":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"413":{"description":"Codes on this operation: `PAYLOAD_TOO_LARGE` (The body or file is larger than the operation accepts. Send a smaller body or file; the message names the limit.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"Codes on this operation: `UNSUPPORTED_MEDIA_TYPE` (The file type is not accepted. Send one of the types the message lists (JPEG, PNG, WebP for images).)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","description":"Profile picture. JPEG, PNG, WEBP, AVIF or GIF, 5 MB by default.","required":["file"],"properties":{"file":{"type":"string","description":"The image bytes.","format":"binary"}}}}}},"x-dcast-errors":[{"status":400,"code":"NO_FILE","when":"The upload carries no file under the field name \"file\".","howToFix":"Send multipart/form-data with the file in the \"file\" field.","retryable":false},{"status":400,"code":"UPLOAD_ERROR","when":"The upload could not be read.","howToFix":"Check the multipart body and send the file again.","retryable":false},{"status":413,"code":"PAYLOAD_TOO_LARGE","when":"The body or file is larger than the operation accepts.","howToFix":"Send a smaller body or file; the message names the limit.","retryable":false},{"status":415,"code":"UNSUPPORTED_MEDIA_TYPE","when":"The file type is not accepted.","howToFix":"Send one of the types the message lists (JPEG, PNG, WebP for images).","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}}},"/me/bookings":{"get":{"tags":["Account"],"operationId":"get_me_bookings","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List bookings","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `booking:read` permission or a wider one of the same area such as `booking:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 25, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"status","in":"query","required":false,"description":"Filter by booking status. An unknown value is ignored.","schema":{"type":"string","enum":["PENDING","CONFIRMED","IN_PROGRESS","COMPLETED","CANCELED","REFUNDED","NO_SHOW"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","properties":{}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"booking:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.booking","externalDocs":{"url":"https://dcast.pro/docs/booking","description":"Booking: sell sessions, live classes and cohorts"}}},"/me/cover":{"delete":{"tags":["Account"],"operationId":"delete_me_cover","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete cover","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"coverImage":{"type":"null"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}},"post":{"tags":["Account"],"operationId":"post_me_cover","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Set cover","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"coverImage":{},"coverImageUrl":{},"sizeBytes":{"type":"integer"},"mimeType":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"413":{"description":"Codes on this operation: `PAYLOAD_TOO_LARGE` (The body or file is larger than the operation accepts. Send a smaller body or file; the message names the limit.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"Codes on this operation: `UNSUPPORTED_MEDIA_TYPE` (The file type is not accepted. Send one of the types the message lists (JPEG, PNG, WebP for images).)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","description":"Cover image. JPEG, PNG, WEBP, AVIF or GIF, 12 MB by default.","required":["file"],"properties":{"file":{"type":"string","description":"The image bytes.","format":"binary"}}}}}},"x-dcast-errors":[{"status":400,"code":"NO_FILE","when":"The upload carries no file under the field name \"file\".","howToFix":"Send multipart/form-data with the file in the \"file\" field.","retryable":false},{"status":400,"code":"UPLOAD_ERROR","when":"The upload could not be read.","howToFix":"Check the multipart body and send the file again.","retryable":false},{"status":413,"code":"PAYLOAD_TOO_LARGE","when":"The body or file is larger than the operation accepts.","howToFix":"Send a smaller body or file; the message names the limit.","retryable":false},{"status":415,"code":"UNSUPPORTED_MEDIA_TYPE","when":"The file type is not accepted.","howToFix":"Send one of the types the message lists (JPEG, PNG, WebP for images).","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}}},"/me/custom-domain":{"delete":{"tags":["Account"],"operationId":"delete_me_custom_domain","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Delete custom domain","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"disconnected":{"type":"boolean"},"customDomain":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.custom_domain","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Run your creator site on your own domain"}},"get":{"tags":["Account"],"operationId":"get_me_custom_domain","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get custom domain","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:read` permission or a wider one of the same area such as `site:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.custom_domain","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Run your creator site on your own domain"}},"post":{"tags":["Account"],"operationId":"post_me_custom_domain","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Set custom domain","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"domain":{"type":"string"},"cloudflareZoneId":{"type":["string","null"]},"nameservers":{"type":"array","items":{"type":"string"}},"zoneStatus":{"type":"string"},"verified":{"type":"boolean"},"sslStatus":{"type":"string"},"instructions":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `DOMAIN_TAKEN` (The domain is used by another creator. Use a domain you own and that is not attached elsewhere.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"Hostname you own, for example live.example.com. Platform hostnames are refused; needs a plan with custom domains.","pattern":"^([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\\.)+[a-zA-Z]{2,}$"}}}}}},"x-dcast-errors":[{"status":403,"code":"PLAN_LIMIT","when":"The feature or count is above what the plan of the account allows.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false},{"status":404,"code":"USER_NOT_FOUND","when":"The user does not exist.","howToFix":"Check the username or user id.","retryable":false},{"status":409,"code":"DOMAIN_TAKEN","when":"The domain is used by another creator.","howToFix":"Use a domain you own and that is not attached elsewhere.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.custom_domain","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Run your creator site on your own domain"}}},"/me/custom-domain/nameservers":{"get":{"tags":["Account"],"operationId":"get_me_custom_domain_nameservers","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Get the nameservers for the custom domain — creates the Cloudflare zone on the first call","description":"Takes no query parameters and no request body. NOT a pure read: when the account has no nameservers stored yet, this call creates a Cloudflare zone for the configured domain and writes the zone id, nameservers and zone status to the account. Once they are stored, repeated calls only read them. Needs a custom domain configured first (POST /me/custom-domain), otherwise 404 NO_CUSTOM_DOMAIN. If Cloudflare did not answer, `nameservers` is empty and `instructions` says provisioning failed. The key needs the `site:read` permission or a wider one of the same area such as `site:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"domain":{},"zoneId":{},"nameservers":{},"zoneStatus":{},"instructions":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-side-effect":"writes","x-dcast-errors":[{"status":404,"code":"NO_CUSTOM_DOMAIN","when":"The account has no custom domain yet.","howToFix":"Create one with POST /me/custom-domain first.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:read","via":"route-area"}],"x-dcast-feature":"feature.custom_domain","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Run your creator site on your own domain"}}},"/me/custom-domain/verify":{"get":{"tags":["Account"],"operationId":"get_me_custom_domain_verify","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Check the custom domain verification — stores the verdict on the account","description":"Takes no query parameters and no request body. NOT a pure read: it asks Cloudflare for the zone status and, when the answer differs from the stored one, writes `verified`, the SSL status and the zone status to the account. When Cloudflare did not answer, `zoneAnswered` is false and nothing is changed. Needs a custom domain configured first (POST /me/custom-domain), otherwise 404 NO_CUSTOM_DOMAIN. The key needs the `site:read` permission or a wider one of the same area such as `site:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-side-effect":"writes","x-dcast-errors":[{"status":404,"code":"NO_CUSTOM_DOMAIN","when":"The account has no custom domain yet.","howToFix":"Create one with POST /me/custom-domain first.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:read","via":"route-area"}],"x-dcast-feature":"feature.custom_domain","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Run your creator site on your own domain"}}},"/me/embed-allowlist":{"patch":{"tags":["Account"],"operationId":"patch_me_embed_allowlist","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update embed allowlist","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"embedAllowlist":{"type":"array","items":{"type":"string"}},"scope":{"type":"string","enum":["account"]}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Replaces the account-wide list of sites that may embed your players.","required":["domains"],"properties":{"domains":{"type":"array","items":{"type":"string"},"description":"Hostnames such as example.com, www.example.com or *.example.com; scheme and port are ignored. At most 50 entries, an empty array removes the restriction. A malformed entry refuses the whole call 400.","maxItems":50}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.embed_allowlist_api","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Restrict video embedding to your own sites through the DCAST API"}}},"/me/export":{"get":{"tags":["Account"],"operationId":"get_me_export","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get the account data export","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.account_data_export","externalDocs":{"url":"https://dcast.pro/docs/data-export","description":"Export all your account data as a ZIP through the API"}},"post":{"tags":["Account"],"operationId":"post_me_export","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Request an account data export","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Accepted: the export is queued (or one is already in progress); an account.export.ready webhook fires when the ZIP is ready.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"requestedAt":{"type":"string","format":"date-time"},"message":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.account_data_export","externalDocs":{"url":"https://dcast.pro/docs/data-export","description":"Export all your account data as a ZIP through the API"}}},"/me/hero":{"delete":{"tags":["Account"],"operationId":"delete_me_hero","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete hero","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"hero":{"type":"null"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}},"post":{"tags":["Account"],"operationId":"post_me_hero","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Set hero","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"hero":{},"heroUrl":{},"sizeBytes":{"type":"integer"},"mimeType":{"type":"string"},"heroImagePosition":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"413":{"description":"Codes on this operation: `PAYLOAD_TOO_LARGE` (The body or file is larger than the operation accepts. Send a smaller body or file; the message names the limit.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"Codes on this operation: `UNSUPPORTED_MEDIA_TYPE` (The file type is not accepted. Send one of the types the message lists (JPEG, PNG, WebP for images).)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","description":"Hero banner image. JPEG, PNG, WEBP, AVIF or GIF, 12 MB by default.","required":["file"],"properties":{"file":{"type":"string","description":"The image bytes.","format":"binary"},"position":{"type":"string","description":"Optional CSS object-position for the banner, cut to 60 characters; saves a follow-up PATCH /me."}}}}}},"x-dcast-errors":[{"status":400,"code":"NO_FILE","when":"The upload carries no file under the field name \"file\".","howToFix":"Send multipart/form-data with the file in the \"file\" field.","retryable":false},{"status":400,"code":"UPLOAD_ERROR","when":"The upload could not be read.","howToFix":"Check the multipart body and send the file again.","retryable":false},{"status":413,"code":"PAYLOAD_TOO_LARGE","when":"The body or file is larger than the operation accepts.","howToFix":"Send a smaller body or file; the message names the limit.","retryable":false},{"status":415,"code":"UNSUPPORTED_MEDIA_TYPE","when":"The file type is not accepted.","howToFix":"Send one of the types the message lists (JPEG, PNG, WebP for images).","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}}},"/me/hero-video":{"delete":{"tags":["Account"],"operationId":"delete_me_hero_video","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete hero video","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"heroVideo":{"type":"null"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}},"post":{"tags":["Account"],"operationId":"post_me_hero_video","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Set hero video","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"heroVideo":{},"heroVideoUrl":{},"sizeBytes":{"type":"integer"},"mimeType":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"413":{"description":"Codes on this operation: `PAYLOAD_TOO_LARGE` (The body or file is larger than the operation accepts. Send a smaller body or file; the message names the limit.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"Codes on this operation: `UNSUPPORTED_MEDIA_TYPE` (The file type is not accepted. Send one of the types the message lists (JPEG, PNG, WebP for images).)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","description":"Hero banner video. MP4, WEBM or MOV (video/quicktime), 100 MB by default.","required":["file"],"properties":{"file":{"type":"string","description":"The video bytes.","format":"binary"}}}}}},"x-dcast-errors":[{"status":400,"code":"NO_FILE","when":"The upload carries no file under the field name \"file\".","howToFix":"Send multipart/form-data with the file in the \"file\" field.","retryable":false},{"status":400,"code":"UPLOAD_ERROR","when":"The upload could not be read.","howToFix":"Check the multipart body and send the file again.","retryable":false},{"status":413,"code":"PAYLOAD_TOO_LARGE","when":"The body or file is larger than the operation accepts.","howToFix":"Send a smaller body or file; the message names the limit.","retryable":false},{"status":415,"code":"UNSUPPORTED_MEDIA_TYPE","when":"The file type is not accepted.","howToFix":"Send one of the types the message lists (JPEG, PNG, WebP for images).","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}}},"/me/navigation-logo":{"delete":{"tags":["Account"],"operationId":"delete_me_navigation_logo","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete navigation logo","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}},"post":{"tags":["Account"],"operationId":"post_me_navigation_logo","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Set navigation logo","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"413":{"description":"Codes on this operation: `PAYLOAD_TOO_LARGE` (The body or file is larger than the operation accepts. Send a smaller body or file; the message names the limit.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"Codes on this operation: `UNSUPPORTED_MEDIA_TYPE` (The file type is not accepted. Send one of the types the message lists (JPEG, PNG, WebP for images).)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","description":"Header logo. JPEG, PNG, WEBP, AVIF or GIF, 12 MB by default.","required":["file"],"properties":{"file":{"type":"string","description":"The image bytes.","format":"binary"}}}}}},"x-dcast-errors":[{"status":400,"code":"NO_FILE","when":"The upload carries no file under the field name \"file\".","howToFix":"Send multipart/form-data with the file in the \"file\" field.","retryable":false},{"status":400,"code":"UPLOAD_ERROR","when":"The upload could not be read.","howToFix":"Check the multipart body and send the file again.","retryable":false},{"status":413,"code":"PAYLOAD_TOO_LARGE","when":"The body or file is larger than the operation accepts.","howToFix":"Send a smaller body or file; the message names the limit.","retryable":false},{"status":415,"code":"UNSUPPORTED_MEDIA_TYPE","when":"The file type is not accepted.","howToFix":"Send one of the types the message lists (JPEG, PNG, WebP for images).","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}}},"/me/notifications":{"get":{"tags":["Account"],"operationId":"get_me_notifications","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List notifications (same operation as GET /notifications)","description":"Same handler, same request and same response as GET /notifications; that is the path to call. The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 25, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"unread","in":"query","required":false,"description":"true returns only unread, false only read. Omit for all. Any other value is ignored (no filter).","schema":{"type":"string","enum":["true","false"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"type":{"type":"string"},"notificationType":{"type":["string","null"],"enum":["SUBSCRIPTION_PAYMENT_SUCCESS","SUBSCRIPTION_TRIAL_ENDING","ACCOUNT_SUSPENDED","ACCOUNT_RESTORED","ACCOUNT_APPEAL_DENIED","VIDEO_PURCHASE_SUCCESS","STREAM_PURCHASE_SUCCESS","TEAM_INVITATION_SENT","TEAM_INVITATION_ACCEPTED","TEAM_INVITATION_DECLINED","TEAM_MEMBER_ADDED","TEAM_MEMBER_REMOVED","TEAM_ROLE_CHANGED","TEAM_CHAT_MESSAGE","TEAM_CHAT_MENTION","TASK_CREATED","TASK_ASSIGNED","TASK_STATUS_CHANGED","TASK_DUE_SOON","TASK_OVERDUE","STREAM_STARTED","STREAM_ENDED","STREAM_ERROR","CONTENT_PUBLISHED","CONTENT_NEEDS_REVIEW","CONTENT_UNDER_REVIEW","CONTENT_ACTIONED","CONTENT_RESTORED","SUPPORT_TICKET_CREATED","SUPPORT_TICKET_REPLY","SUPPORT_TICKET_STATUS_CHANGED","SUPPORT_CHAT_MESSAGE","SUPPORT_CHAT_STARTED","SUPPORT_CHAT_ENDED","USER_REGISTERED","USER_UPGRADED","USER_DELETED","CREATOR_APPLICATION","MIGRATION_PROOF_SUBMITTED","QOE_CRITICAL_DROP","QOE_CDN_SERVER_DOWN","QOE_ORIGIN_OVERLOAD","QOE_REGIONAL_PROBLEM","QOE_HARDWARE_MISMATCH","VIDEO_PLAYBACK_ERROR","STREAM_ERROR_ADMIN","VIDEO_BUFFERING_ADMIN","UPLOAD_FAILED","PROCESSING_FAILED","HOMEPAGE_VISIT","DCAST_PRO_PAGE_VISIT","DCAST_PRO_NEWSLETTER_SUBSCRIBE","SYSTEM_ERROR","PERFORMANCE_ALERT","CONTENT_FLAGGED","CONTENT_APPEAL_SUBMITTED","CONTENT_REPORTED","ACCOUNT_AUTO_BANNED","ACCOUNT_APPEAL_SUBMITTED","SUPPORT_TICKET_NEW","SUPPORT_TICKET_URGENT","SUPPORT_TICKET_REPLY_NEW","SUPPORT_CHAT_NEW","PAYMENT_FAILED","SUBSCRIPTION_EXPIRED","REFUND_ISSUED","FINANCE_DISPUTE_CREATED","FINANCE_REFUND_FAILED","FINANCE_RECONCILIATION_MISMATCH","FINANCE_NEGATIVE_BALANCE","FINANCE_REFUND_SPIKE","SYSTEM_ANNOUNCEMENT","SECURITY_ALERT"]},"category":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"link":{"type":["string","null"]},"metadata":{},"read":{"type":"boolean"},"readAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"},"unreadCount":{"type":"integer","description":"Unread notifications of the account, regardless of the filter."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-feature":"feature.notifications","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"In-app notifications and their preferences"}}},"/me/og-image":{"delete":{"tags":["Account"],"operationId":"delete_me_og_image","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete og image","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}},"post":{"tags":["Account"],"operationId":"post_me_og_image","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Set og image","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"413":{"description":"Codes on this operation: `PAYLOAD_TOO_LARGE` (The body or file is larger than the operation accepts. Send a smaller body or file; the message names the limit.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"Codes on this operation: `UNSUPPORTED_MEDIA_TYPE` (The file type is not accepted. Send one of the types the message lists (JPEG, PNG, WebP for images).)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","description":"Social share (Open Graph) image. JPEG, PNG, WEBP, AVIF or GIF, 12 MB by default.","required":["file"],"properties":{"file":{"type":"string","description":"The image bytes.","format":"binary"}}}}}},"x-dcast-errors":[{"status":400,"code":"NO_FILE","when":"The upload carries no file under the field name \"file\".","howToFix":"Send multipart/form-data with the file in the \"file\" field.","retryable":false},{"status":400,"code":"UPLOAD_ERROR","when":"The upload could not be read.","howToFix":"Check the multipart body and send the file again.","retryable":false},{"status":413,"code":"PAYLOAD_TOO_LARGE","when":"The body or file is larger than the operation accepts.","howToFix":"Send a smaller body or file; the message names the limit.","retryable":false},{"status":415,"code":"UNSUPPORTED_MEDIA_TYPE","when":"The file type is not accepted.","howToFix":"Send one of the types the message lists (JPEG, PNG, WebP for images).","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}}},"/me/payouts":{"get":{"tags":["Account"],"operationId":"get_me_payouts","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List payouts","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"connected":{"type":"boolean"},"chargesEnabled":{"type":"boolean"},"payoutsEnabled":{"type":"boolean"},"detailsSubmitted":{"type":"boolean"},"requirements":{},"stripeAccountId":{"type":["string","null"]},"onboardingUrl":{"type":["string","null"]},"message":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.paid_access_api","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Video paywall API: sell access to your videos from your own code"}}},"/me/playlists":{"get":{"tags":["Account"],"operationId":"get_me_playlists","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List playlists","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `playlists:read` permission or a wider one of the same area such as `playlists:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"playlists":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"isPublic":{"type":"boolean"},"userId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"itemCount":{"type":"integer","description":"Number of items. Present whenever the answer knows it."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"integer"},"videoId":{"type":["string","null"]},"streamId":{"type":["string","null"]},"video":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"duration":{}},"description":"Present on items that are videos."}}},"description":"Present on the single-playlist read."},"owner":{"type":"object","properties":{"username":{"type":"string"},"displayName":{"type":["string","null"]}},"description":"Present on the public channel reads."}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"playlists:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.playlists","externalDocs":{"url":"https://dcast.pro/docs/playlists","description":"Playlists API: group videos and live streams into ordered collections"}}},"/me/restream-accounts":{"get":{"tags":["Account"],"operationId":"get_me_restream_accounts","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List restream accounts","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:read` permission or a wider one of the same area such as `restreams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/me/site/activate":{"post":{"tags":["Account"],"operationId":"post_me_site_activate","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Activate site","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `NO_HOSTNAME` (The site cannot be activated without a subdomain or a verified custom domain. Create one with POST /me/subdomain or POST /me/custom-domain (and verify the domain), then activate.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["active"],"properties":{"active":{"type":"boolean","description":"true turns the storefront on (needs a subdomain or a verified custom domain first, else 409 NO_HOSTNAME); false turns it off."}}}}}},"x-dcast-errors":[{"status":404,"code":"USER_NOT_FOUND","when":"The user does not exist.","howToFix":"Check the username or user id.","retryable":false},{"status":409,"code":"NO_HOSTNAME","when":"The site cannot be activated without a subdomain or a verified custom domain.","howToFix":"Create one with POST /me/subdomain or POST /me/custom-domain (and verify the domain), then activate.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}}},"/me/site/apply-template":{"post":{"tags":["Account"],"operationId":"post_me_site_apply_template","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Apply a site template","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"applied":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}}},"user":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Send `templateId` or `slug` (one is required); `templateId` wins when both are present.","properties":{"templateId":{"type":"string","description":"Template id from GET /me/site/templates."},"slug":{"type":"string","description":"Template slug from GET /me/site/templates."}}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.premium_site_templates","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Premium creator site templates"}}},"/me/site/status":{"get":{"tags":["Account"],"operationId":"get_me_site_status","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get status (site)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:read` permission or a wider one of the same area such as `site:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":404,"code":"USER_NOT_FOUND","when":"The user does not exist.","howToFix":"Check the username or user id.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}}},"/me/site/templates":{"get":{"tags":["Account"],"operationId":"get_me_site_templates","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List templates (site)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:read` permission or a wider one of the same area such as `site:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.premium_site_templates","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Premium creator site templates"}}},"/me/slider-images":{"delete":{"tags":["Account"],"operationId":"delete_me_slider_images","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete slider image","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"image","in":"query","required":false,"description":"Public path of the slider image to remove, exactly as listed in GET /me `sliderImages` (for example /storage/creators/<id>/slider/slider-....jpg). May be sent in the JSON body instead.","schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"sliderImages":{"type":"array","items":{"type":"string"}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Alternative to the `image` query parameter.","properties":{"image":{"type":"string","description":"Same value as the `image` query parameter."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}},"post":{"tags":["Account"],"operationId":"post_me_slider_images","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create slider image","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"sliderImages":{"type":"array","items":{"type":"string"}},"added":{"type":"array","items":{"type":"string"}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"413":{"description":"Codes on this operation: `PAYLOAD_TOO_LARGE` (The body or file is larger than the operation accepts. Send a smaller body or file; the message names the limit.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"415":{"description":"Codes on this operation: `UNSUPPORTED_MEDIA_TYPE` (The file type is not accepted. Send one of the types the message lists (JPEG, PNG, WebP for images).)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","description":"Slider images, at most 10 files per request. JPEG, PNG, WEBP, AVIF or GIF, 12 MB each by default.","required":["files"],"properties":{"files":{"type":"array","items":{"type":"string","format":"binary"},"description":"One part per image, all under the field name `files`.","minItems":1,"maxItems":10}}}}}},"x-dcast-errors":[{"status":400,"code":"NO_FILE","when":"The upload carries no file under the field name \"file\".","howToFix":"Send multipart/form-data with the file in the \"file\" field.","retryable":false},{"status":400,"code":"TOO_MANY_FILES","when":"More files than the operation accepts per request.","howToFix":"Send fewer files per request; the message names the maximum.","retryable":false},{"status":400,"code":"UPLOAD_ERROR","when":"The upload could not be read.","howToFix":"Check the multipart body and send the file again.","retryable":false},{"status":413,"code":"PAYLOAD_TOO_LARGE","when":"The body or file is larger than the operation accepts.","howToFix":"Send a smaller body or file; the message names the limit.","retryable":false},{"status":415,"code":"UNSUPPORTED_MEDIA_TYPE","when":"The file type is not accepted.","howToFix":"Send one of the types the message lists (JPEG, PNG, WebP for images).","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_site","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Your own video site on DCAST"}}},"/me/subdomain":{"delete":{"tags":["Account"],"operationId":"delete_me_subdomain","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete subdomain","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"disconnected":{"type":"boolean"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.site_subdomain","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Creator site on a DCAST subdomain"}},"get":{"tags":["Account"],"operationId":"get_me_subdomain","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get subdomain","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:read` permission or a wider one of the same area such as `site:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"site:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.site_subdomain","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Creator site on a DCAST subdomain"}},"post":{"tags":["Account"],"operationId":"post_me_subdomain","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Set subdomain","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"$ref":"#/components/responses/Success","description":"Created. Body: the success envelope with the new resource in `data`."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `SUBDOMAIN_RESERVED` (The subdomain is reserved. Choose another subdomain.) `SUBDOMAIN_TAKEN` (The subdomain is in use. Choose another subdomain.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["subdomain"],"properties":{"subdomain":{"type":"string","description":"Lowercase letters, digits and hyphens, 1 to 32 characters, not starting or ending with a hyphen. Reserved names (www, api, app, admin, mail, docs, ...) answer 409 SUBDOMAIN_RESERVED, a name in use 409 SUBDOMAIN_TAKEN.","maxLength":32,"pattern":"^[a-z0-9](?:[a-z0-9-]{1,30}[a-z0-9])?$"}}}}}},"x-dcast-errors":[{"status":403,"code":"PLAN_LIMIT","when":"The feature or count is above what the plan of the account allows.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false},{"status":404,"code":"USER_NOT_FOUND","when":"The user does not exist.","howToFix":"Check the username or user id.","retryable":false},{"status":409,"code":"SUBDOMAIN_RESERVED","when":"The subdomain is reserved.","howToFix":"Choose another subdomain.","retryable":false},{"status":409,"code":"SUBDOMAIN_TAKEN","when":"The subdomain is in use.","howToFix":"Choose another subdomain.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.site_subdomain","externalDocs":{"url":"https://dcast.pro/docs/account","description":"Creator site on a DCAST subdomain"}}},"/me/subscribers":{"get":{"tags":["Subscriptions"],"operationId":"get_me_subscribers","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List subscribers (same operation as GET /subscribers)","description":"Same handler, same request and same response as GET /subscribers; that is the path to call. The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED. The key needs the `site:read` permission or a wider one of the same area such as `site:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 50, at most 200; a larger value is lowered to 200.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"tierId","in":"query","required":false,"description":"Only subscribers of this tier (must be your tier, else 404).","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"Case-insensitive; any other value is refused 400.","schema":{"type":"string","enum":["ACTIVE","CANCELLED","EXPIRED","PAST_DUE"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"subscribers":{"type":"array","items":{"type":"object","properties":{}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"},{"kind":"permission","permission":"site:read","via":"route-area"}],"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}}},"/me/subscriptions":{"get":{"tags":["Subscriptions"],"operationId":"get_me_subscriptions","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List subscriptions","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"subscriptions":{"type":"array","items":{"type":"object","properties":{}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}}},"/me/tiers":{"get":{"tags":["Account"],"operationId":"get_me_tiers","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List tiers (same operation as GET /tiers)","description":"Same handler, same request and same response as GET /tiers; that is the path to call. The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `billing_view:read` permission or a wider one of the same area such as `billing_view:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 50, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"tiers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"priceMonthly":{"type":"string","description":"Decimal number written as a string."},"priceAnnual":{"type":["string","null"],"description":"Decimal number written as a string."},"benefits":{"type":"array","items":{"type":"string"}},"position":{"type":"integer"},"isActive":{"type":"boolean"},"trialDays":{"type":"integer"},"isMostPopular":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"stripePriceId":{"type":["string","null"],"description":"Stripe Price id (price_...) of the monthly price; null when the tier was created without a Stripe sync. An identifier of a Stripe object, not a credential; no call of this API needs it."},"stripePriceAnnualId":{"type":["string","null"],"description":"Stripe Price id (price_...) of the yearly price; null when the tier has no yearly price or no Stripe sync. An identifier of a Stripe object, not a credential."},"stripeProductId":{"type":["string","null"],"description":"Stripe Product id (prod_...) of the tier; null when the tier was created without a Stripe sync. An identifier of a Stripe object, not a credential."},"subscribersCount":{"type":"integer"}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"billing_view:read","via":"route-area"}],"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}}},"/me/webhooks":{"get":{"tags":["Webhooks"],"operationId":"get_me_webhooks","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List webhooks","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:read` permission or a wider one of the same area such as `webhooks:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"webhooks:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}},"post":{"tags":["Webhooks"],"operationId":"post_me_webhooks","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Create webhook","description":"Full request/response shape on the topic page; envelope shapes under components.schemas. The key needs the `webhooks:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WebhookEndpointCreated"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreateRequest"}}}},"x-dcast-errors":[{"status":400,"code":"UNKNOWN_EVENT","when":"The webhook event name is not in the catalogue.","howToFix":"Use GET /me/webhooks/event-types for the allowed names, or a wildcard such as * or video.*.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"webhooks:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}}},"/me/webhooks/{id}":{"delete":{"tags":["Webhooks"],"operationId":"delete_me_webhooks_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete webhook","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"deletedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"webhooks:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}},"get":{"tags":["Webhooks"],"operationId":"get_me_webhooks_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one webhook","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:read` permission or a wider one of the same area such as `webhooks:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WebhookEndpoint"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"webhooks:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}},"patch":{"tags":["Webhooks"],"operationId":"patch_me_webhooks_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Update webhook","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WebhookEndpoint"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update: send only what changes.","properties":{"url":{"type":"string","description":"New receiver URL: https only, must resolve to a public address.","format":"uri"},"events":{"type":"array","items":{"type":"string"},"description":"Event names from GET /me/webhooks/events, or `*`, or a `prefix.*` wildcard. An empty array subscribes to every event. Event names: webhook.test, video.upload.completed, video.processing.completed, video.processing.failed, stream.live, stream.ended, stream.broadcast_started, stream.broadcast_stopped, restream.started, restream.ended, restream.failed, subscription.created, subscription.cancelled, subscription.renewed, purchase.completed, purchase.refunded, account.export.ready."},"isActive":{"type":"boolean","description":"false pauses deliveries without deleting the endpoint."},"description":{"type":["string","null"],"description":"Free text, at most 500 characters.","maxLength":500}}}}}},"x-dcast-errors":[{"status":400,"code":"UNKNOWN_EVENT","when":"The webhook event name is not in the catalogue.","howToFix":"Use GET /me/webhooks/event-types for the allowed names, or a wildcard such as * or video.*.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"webhooks:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}}},"/me/webhooks/{id}/deliveries":{"get":{"tags":["Webhooks"],"operationId":"get_me_webhooks_id_deliveries","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List deliveries (webhooks)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:read` permission or a wider one of the same area such as `webhooks:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"limit","in":"query","required":false,"description":"Page size, default 25, from 1 to 100 (values outside are brought into the range).","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","in":"query","required":false,"description":"Delivery id of the last row of the previous page; the page starts after it. Take it from the previous answer (`pagination.nextCursor`). A value that is not a delivery of this webhook is refused 400 INVALID_CURSOR.","schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","properties":{}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":400,"code":"INVALID_CURSOR","when":"cursor is not the nextCursor of a previous page.","howToFix":"Pass the nextCursor of the previous page unchanged, or omit cursor for the first page.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"webhooks:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}}},"/me/webhooks/{id}/deliveries/{deliveryId}/replay":{"post":{"tags":["Webhooks"],"operationId":"post_me_webhooks_id_deliveries_deliveryId_replay","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"summary":"Replay delivery (webhooks)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"webhookId":{"type":"string"},"originalDeliveryId":{"type":"string"},"eventId":{"type":"string"},"eventType":{"type":"string"},"ok":{"type":"boolean"},"responseStatus":{},"durationMs":{},"error":{},"note":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"webhooks:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}}},"/me/webhooks/{id}/rotate-secret":{"post":{"tags":["Webhooks"],"operationId":"post_me_webhooks_id_rotate_secret","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Rotate secret of webhook","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"webhooks:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}}},"/me/webhooks/{id}/simulate":{"post":{"tags":["Webhooks"],"operationId":"post_me_webhooks_id_simulate","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Simulate webhook","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deliveryUrl":{"type":"string"},"renderedRequest":{"type":"object","properties":{}},"wouldDeliver":{"type":"boolean"},"note":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Dry run. Renders the request a real delivery would make and returns it in the answer (`renderedRequest`: method, url, headers including `Dcast-Signature`, `Dcast-Event-Id`, `Dcast-Event-Type` and `Dcast-Event-Timestamp`, and the body). Nothing is sent to your endpoint, and the sample `data` is one placeholder for every event unless you replace it.","required":["event"],"properties":{"event":{"type":"string","enum":["webhook.test","video.upload.completed","video.processing.completed","video.processing.failed","stream.live","stream.ended","stream.broadcast_started","stream.broadcast_stopped","restream.started","restream.ended","restream.failed","subscription.created","subscription.cancelled","subscription.renewed","purchase.completed","purchase.refunded","account.export.ready"],"description":"Event to simulate. Any catalogue event, whether or not the endpoint subscribes to it."},"payload":{"type":"object","properties":{},"description":"Optional replacement for the sample `data` block of the event. An object; a string, a number or a list is refused 400 BAD_REQUEST."}}}}}},"x-dcast-errors":[{"status":400,"code":"UNKNOWN_EVENT","when":"The webhook event name is not in the catalogue.","howToFix":"Use GET /me/webhooks/event-types for the allowed names, or a wildcard such as * or video.*.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"webhooks:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}}},"/me/webhooks/{id}/test":{"post":{"tags":["Webhooks"],"operationId":"post_me_webhooks_id_test","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Test webhook","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Accepted: a webhook.test event is delivered to THIS webhook only (never to your other endpoints, and whatever its event filter says), asynchronously; read GET /me/webhooks/{id}/deliveries for the outcome. An inactive endpoint is refused 400 WEBHOOK_INACTIVE.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"eventId":{"type":"string"},"eventType":{"type":"string","enum":["webhook.test"]},"note":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"webhooks:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}}},"/me/webhooks/event-types":{"get":{"tags":["Webhooks"],"operationId":"get_me_webhooks_event_types","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List webhook event types (same operation as GET /me/webhooks/events)","description":"Same handler, same request and same response as GET /me/webhooks/events; that is the path to call. Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:read` permission or a wider one of the same area such as `webhooks:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"events":{"type":"array","items":{"type":"string"}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"webhooks:read","via":"route-area"}],"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}}},"/me/webhooks/events":{"get":{"tags":["Webhooks"],"operationId":"get_me_webhooks_events","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List webhook event types","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `webhooks:read` permission or a wider one of the same area such as `webhooks:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"events":{"type":"array","items":{"type":"string"}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"webhooks:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}}},"/monetization/connect-status":{"get":{"tags":["Monetization"],"operationId":"get_monetization_connect_status","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List connect status (monetization)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"connected":{"type":"boolean"},"accountId":{"type":["string","null"]},"detailsSubmitted":{"type":"boolean"},"chargesEnabled":{"type":"boolean"},"payoutsEnabled":{"type":"boolean"},"requirements":{}},"description":"The last four fields are present when an account is connected."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.paid_access_api","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Video paywall API: sell access to your videos from your own code"}}},"/monetization/payments":{"get":{"tags":["Monetization"],"operationId":"get_monetization_payments","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List payments (monetization)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"payments":{"type":"array","items":{"type":"object","properties":{}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.paid_access_api","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Video paywall API: sell access to your videos from your own code"}}},"/monetization/revenue":{"get":{"tags":["Monetization"],"operationId":"get_monetization_revenue","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get revenue (monetization)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"period","in":"query","required":false,"description":"Look-back window; any other value means 30d.","schema":{"type":"string","enum":["7d","30d","90d"],"default":"30d"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"period":{"type":"string"},"subscriptionRevenue":{"type":"number"},"videoSalesRevenue":{"type":"number"},"total":{"type":"number"},"currency":{"type":"string","enum":["USD"]}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.paid_access_api","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Video paywall API: sell access to your videos from your own code"}}},"/notifications":{"delete":{"tags":["Notifications"],"operationId":"delete_notifications","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete notification","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deletedCount":{"type":"integer"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.notifications","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"In-app notifications and their preferences"}},"get":{"tags":["Notifications"],"operationId":"get_notifications","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List notifications","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"unreadOnly","in":"query","required":false,"description":"true returns only unread notifications. Any other value returns all.","schema":{"type":"string","enum":["true","false"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"notifications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"type":{"type":"string"},"notificationType":{"type":["string","null"],"enum":["SUBSCRIPTION_PAYMENT_SUCCESS","SUBSCRIPTION_TRIAL_ENDING","ACCOUNT_SUSPENDED","ACCOUNT_RESTORED","ACCOUNT_APPEAL_DENIED","VIDEO_PURCHASE_SUCCESS","STREAM_PURCHASE_SUCCESS","TEAM_INVITATION_SENT","TEAM_INVITATION_ACCEPTED","TEAM_INVITATION_DECLINED","TEAM_MEMBER_ADDED","TEAM_MEMBER_REMOVED","TEAM_ROLE_CHANGED","TEAM_CHAT_MESSAGE","TEAM_CHAT_MENTION","TASK_CREATED","TASK_ASSIGNED","TASK_STATUS_CHANGED","TASK_DUE_SOON","TASK_OVERDUE","STREAM_STARTED","STREAM_ENDED","STREAM_ERROR","CONTENT_PUBLISHED","CONTENT_NEEDS_REVIEW","CONTENT_UNDER_REVIEW","CONTENT_ACTIONED","CONTENT_RESTORED","SUPPORT_TICKET_CREATED","SUPPORT_TICKET_REPLY","SUPPORT_TICKET_STATUS_CHANGED","SUPPORT_CHAT_MESSAGE","SUPPORT_CHAT_STARTED","SUPPORT_CHAT_ENDED","USER_REGISTERED","USER_UPGRADED","USER_DELETED","CREATOR_APPLICATION","MIGRATION_PROOF_SUBMITTED","QOE_CRITICAL_DROP","QOE_CDN_SERVER_DOWN","QOE_ORIGIN_OVERLOAD","QOE_REGIONAL_PROBLEM","QOE_HARDWARE_MISMATCH","VIDEO_PLAYBACK_ERROR","STREAM_ERROR_ADMIN","VIDEO_BUFFERING_ADMIN","UPLOAD_FAILED","PROCESSING_FAILED","HOMEPAGE_VISIT","DCAST_PRO_PAGE_VISIT","DCAST_PRO_NEWSLETTER_SUBSCRIBE","SYSTEM_ERROR","PERFORMANCE_ALERT","CONTENT_FLAGGED","CONTENT_APPEAL_SUBMITTED","CONTENT_REPORTED","ACCOUNT_AUTO_BANNED","ACCOUNT_APPEAL_SUBMITTED","SUPPORT_TICKET_NEW","SUPPORT_TICKET_URGENT","SUPPORT_TICKET_REPLY_NEW","SUPPORT_CHAT_NEW","PAYMENT_FAILED","SUBSCRIPTION_EXPIRED","REFUND_ISSUED","FINANCE_DISPUTE_CREATED","FINANCE_REFUND_FAILED","FINANCE_RECONCILIATION_MISMATCH","FINANCE_NEGATIVE_BALANCE","FINANCE_REFUND_SPIKE","SYSTEM_ANNOUNCEMENT","SECURITY_ALERT"]},"category":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"link":{"type":["string","null"]},"metadata":{},"read":{"type":"boolean"},"readAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.notifications","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"In-app notifications and their preferences"}}},"/notifications/{id}":{"delete":{"tags":["Notifications"],"operationId":"delete_notifications_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete notification","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.notifications","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"In-app notifications and their preferences"}}},"/notifications/{id}/read":{"put":{"tags":["Notifications"],"operationId":"put_notifications_id_read","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Mark a notification as read","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"type":{"type":"string"},"notificationType":{"type":["string","null"],"enum":["SUBSCRIPTION_PAYMENT_SUCCESS","SUBSCRIPTION_TRIAL_ENDING","ACCOUNT_SUSPENDED","ACCOUNT_RESTORED","ACCOUNT_APPEAL_DENIED","VIDEO_PURCHASE_SUCCESS","STREAM_PURCHASE_SUCCESS","TEAM_INVITATION_SENT","TEAM_INVITATION_ACCEPTED","TEAM_INVITATION_DECLINED","TEAM_MEMBER_ADDED","TEAM_MEMBER_REMOVED","TEAM_ROLE_CHANGED","TEAM_CHAT_MESSAGE","TEAM_CHAT_MENTION","TASK_CREATED","TASK_ASSIGNED","TASK_STATUS_CHANGED","TASK_DUE_SOON","TASK_OVERDUE","STREAM_STARTED","STREAM_ENDED","STREAM_ERROR","CONTENT_PUBLISHED","CONTENT_NEEDS_REVIEW","CONTENT_UNDER_REVIEW","CONTENT_ACTIONED","CONTENT_RESTORED","SUPPORT_TICKET_CREATED","SUPPORT_TICKET_REPLY","SUPPORT_TICKET_STATUS_CHANGED","SUPPORT_CHAT_MESSAGE","SUPPORT_CHAT_STARTED","SUPPORT_CHAT_ENDED","USER_REGISTERED","USER_UPGRADED","USER_DELETED","CREATOR_APPLICATION","MIGRATION_PROOF_SUBMITTED","QOE_CRITICAL_DROP","QOE_CDN_SERVER_DOWN","QOE_ORIGIN_OVERLOAD","QOE_REGIONAL_PROBLEM","QOE_HARDWARE_MISMATCH","VIDEO_PLAYBACK_ERROR","STREAM_ERROR_ADMIN","VIDEO_BUFFERING_ADMIN","UPLOAD_FAILED","PROCESSING_FAILED","HOMEPAGE_VISIT","DCAST_PRO_PAGE_VISIT","DCAST_PRO_NEWSLETTER_SUBSCRIBE","SYSTEM_ERROR","PERFORMANCE_ALERT","CONTENT_FLAGGED","CONTENT_APPEAL_SUBMITTED","CONTENT_REPORTED","ACCOUNT_AUTO_BANNED","ACCOUNT_APPEAL_SUBMITTED","SUPPORT_TICKET_NEW","SUPPORT_TICKET_URGENT","SUPPORT_TICKET_REPLY_NEW","SUPPORT_CHAT_NEW","PAYMENT_FAILED","SUBSCRIPTION_EXPIRED","REFUND_ISSUED","FINANCE_DISPUTE_CREATED","FINANCE_REFUND_FAILED","FINANCE_RECONCILIATION_MISMATCH","FINANCE_NEGATIVE_BALANCE","FINANCE_REFUND_SPIKE","SYSTEM_ANNOUNCEMENT","SECURITY_ALERT"]},"category":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"link":{"type":["string","null"]},"metadata":{},"read":{"type":"boolean"},"readAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.notifications","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"In-app notifications and their preferences"}}},"/notifications/preferences":{"get":{"tags":["Notifications"],"operationId":"get_notifications_preferences","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get notification preferences","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.notifications","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"In-app notifications and their preferences"}},"put":{"tags":["Notifications"],"operationId":"put_notifications_preferences","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Replace notification preferences","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Replaces the preferences: anything you leave out goes back to its default (emailFrequency instant, emailEnabled true, inAppEnabled true, pushEnabled false, every category as listed in GET /notifications/preferences). Send the complete set you want.","properties":{"email":{"type":"object","properties":{"security":{"type":"boolean"},"payment":{"type":"boolean"},"subscription":{"type":"boolean"},"content":{"type":"boolean"},"social":{"type":"boolean"},"system":{"type":"boolean"}},"description":"Email categories on or off."},"push":{"type":"object","properties":{"security":{"type":"boolean"},"payment":{"type":"boolean"},"subscription":{"type":"boolean"},"content":{"type":"boolean"},"social":{"type":"boolean"},"system":{"type":"boolean"}},"description":"Push categories on or off."},"inApp":{"type":"object","properties":{"security":{"type":"boolean"},"payment":{"type":"boolean"},"subscription":{"type":"boolean"},"content":{"type":"boolean"},"social":{"type":"boolean"},"system":{"type":"boolean"}},"description":"In-app categories on or off."},"emailFrequency":{"type":"string","enum":["instant","daily","weekly"],"description":"How often email is sent; any other value means instant.","default":"instant"},"emailEnabled":{"type":"boolean","description":"Master switch for email, default true."},"inAppEnabled":{"type":"boolean","description":"Master switch for in-app notices, default true."},"pushEnabled":{"type":"boolean","description":"Master switch for push, default false."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.notifications","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"In-app notifications and their preferences"}}},"/notifications/read-all":{"put":{"tags":["Notifications"],"operationId":"put_notifications_read_all","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Mark all notifications as read","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"updatedCount":{"type":"integer"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.notifications","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"In-app notifications and their preferences"}}},"/notifications/unread-count":{"get":{"tags":["Notifications"],"operationId":"get_notifications_unread_count","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Count unread notifications","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"count":{"type":"integer"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.notifications","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"In-app notifications and their preferences"}}},"/playlists":{"post":{"tags":["Playlists"],"operationId":"post_playlists","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create playlist","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `playlists:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"isPublic":{"type":"boolean"},"userId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"itemCount":{"type":"integer","description":"Number of items. Present whenever the answer knows it."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"integer"},"videoId":{"type":["string","null"]},"streamId":{"type":["string","null"]},"video":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"duration":{}},"description":"Present on items that are videos."}}},"description":"Present on the single-playlist read."},"owner":{"type":"object","properties":{"username":{"type":"string"},"displayName":{"type":["string","null"]}},"description":"Present on the public channel reads."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string","description":"Playlist title, cut to 200 characters.","minLength":1},"description":{"type":"string","description":"Cut to 4000 characters."},"isPublic":{"type":"boolean","description":"Default true.","default":true}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"playlists:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.playlists","externalDocs":{"url":"https://dcast.pro/docs/playlists","description":"Playlists API: group videos and live streams into ordered collections"}}},"/playlists/{id}":{"delete":{"tags":["Playlists"],"operationId":"delete_playlists_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete playlist","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `playlists:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"playlists:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.playlists","externalDocs":{"url":"https://dcast.pro/docs/playlists","description":"Playlists API: group videos and live streams into ordered collections"}},"get":{"tags":["Playlists"],"operationId":"get_playlists_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one playlist","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"isPublic":{"type":"boolean"},"userId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"itemCount":{"type":"integer","description":"Number of items. Present whenever the answer knows it."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"integer"},"videoId":{"type":["string","null"]},"streamId":{"type":["string","null"]},"video":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"duration":{}},"description":"Present on items that are videos."}}},"description":"Present on the single-playlist read."},"owner":{"type":"object","properties":{"username":{"type":"string"},"displayName":{"type":["string","null"]}},"description":"Present on the public channel reads."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-generated-summary":true,"x-dcast-feature":"feature.playlists","externalDocs":{"url":"https://dcast.pro/docs/playlists","description":"Playlists API: group videos and live streams into ordered collections"}},"patch":{"tags":["Playlists"],"operationId":"patch_playlists_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update playlist","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `playlists:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"isPublic":{"type":"boolean"},"userId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"itemCount":{"type":"integer","description":"Number of items. Present whenever the answer knows it."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"position":{"type":"integer"},"videoId":{"type":["string","null"]},"streamId":{"type":["string","null"]},"video":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"thumbnailUrl":{"type":["string","null"]},"duration":{}},"description":"Present on items that are videos."}}},"description":"Present on the single-playlist read."},"owner":{"type":"object","properties":{"username":{"type":"string"},"displayName":{"type":["string","null"]}},"description":"Present on the public channel reads."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update: send only what changes.","properties":{"title":{"type":"string","description":"Non-empty, cut to 200 characters.","minLength":1},"description":{"type":["string","null"],"description":"Cut to 4000 characters; null clears it."},"isPublic":{"type":"boolean"}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"playlists:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.playlists","externalDocs":{"url":"https://dcast.pro/docs/playlists","description":"Playlists API: group videos and live streams into ordered collections"}}},"/playlists/{id}/videos":{"post":{"tags":["Playlists"],"operationId":"post_playlists_id_videos","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create video (playlists)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `playlists:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created: the item was appended to the playlist.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"playlistId":{"type":"string"},"videoId":{"type":["string","null"]},"streamId":{"type":["string","null"]},"position":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Send `videoId` or `streamId` (one of them is required): the card to append to the playlist. Both must belong to your account.","properties":{"videoId":{"type":"string","description":"Id of one of your videos."},"streamId":{"type":"string","description":"Id of one of your stream cards."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"playlists:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.playlists","externalDocs":{"url":"https://dcast.pro/docs/playlists","description":"Playlists API: group videos and live streams into ordered collections"}}},"/playlists/{id}/videos/{videoId}":{"delete":{"tags":["Playlists"],"operationId":"delete_playlists_id_videos_videoId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete video (playlists)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `playlists:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"videoId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"removedCount":{"type":"integer"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"playlists:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.playlists","externalDocs":{"url":"https://dcast.pro/docs/playlists","description":"Playlists API: group videos and live streams into ordered collections"}}},"/purchases":{"get":{"tags":["Purchases"],"operationId":"get_purchases","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List purchases","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.paid_access_api","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Video paywall API: sell access to your videos from your own code"}}},"/quota":{"get":{"tags":["Quota"],"operationId":"get_quota","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"How much storage the account has used, and what happens when it runs out","description":"Storage usage and headroom for the key's account. Read `quotaStatus` rather than doing your own arithmetic: OK, NEAR_LIMIT (from 80 percent), CRITICAL (from 90 percent), EXCEEDED_GRACE, EXCEEDED_HARD. Running out is not instant — there is a 14-day grace period, and `gracePeriodDaysRemaining` counts it down, staying null while `isExceeded` is false; it is a countdown of the grace period, not days until a reset. Uploads refused for space answer 403 QUOTA_EXCEEDED at POST /videos/upload. Any valid key may call this operation: it describes the key itself and its limits, so a `permissions` list on the key does not narrow it.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"withinQuota":{"summary":"Under quota — gracePeriodDaysRemaining is null","value":{"success":true,"data":{"used":10751589855,"limit":2199023255552,"available":2188271665697,"usedPercent":0,"isExceeded":false,"inGracePeriod":false,"daysSinceExceeded":0,"quotaExceededSince":null,"baseBytes":2199023255552,"extraBytes":0,"formatted":{"used":"10 GiB","limit":"2 TiB","available":"2 TiB"},"warnings":{"nearLimit":false,"critical":false,"exceeded":false},"quotaStatus":"OK","gracePeriodDaysRemaining":null}}},"inGracePeriod":{"summary":"Over quota — gracePeriodDaysRemaining counts down the 14-day grace period, not a reset","value":{"success":true,"data":{"used":2306739871744,"limit":2199023255552,"available":0,"usedPercent":105,"isExceeded":true,"inGracePeriod":true,"daysSinceExceeded":3,"quotaExceededSince":"2026-08-11T09:14:02.000Z","baseBytes":2199023255552,"extraBytes":0,"formatted":{"used":"2.1 TiB","limit":"2 TiB","available":"0 B"},"warnings":{"nearLimit":true,"critical":true,"exceeded":true},"quotaStatus":"EXCEEDED_GRACE","gracePeriodDaysRemaining":11}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[]}},"/restreams":{"get":{"tags":["Restreams"],"operationId":"get_restreams","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List restreams","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:read` permission or a wider one of the same area such as `restreams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"restreams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"createdInHub":{"type":"boolean","description":"True when the card was made from the DHUB hub in the dashboard, false for a card made in the restreams section or through this API. It only decides which dashboard list shows the card; the card starts, stops, takes a backup and counts against the plan like any other restream. Set when the card is made, never changed."},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string"}}}}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}},"post":{"tags":["Restreams"],"operationId":"post_restreams","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Create restream","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Destination keys are masked in the response.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"sourceStreamKey":{"type":"string"},"sourceType":{"type":"string"},"sourceStreamId":{"type":["string","null"]},"status":{"type":"string","description":"Upper-case restream state, for example INACTIVE or ACTIVE."},"createdInHub":{"type":"boolean","description":"True when the card was made from the DHUB hub in the dashboard, false for a card made in the restreams section or through this API. It only decides which dashboard list shows the card; the card starts, stops, takes a backup and counts against the plan like any other restream. Set when the card is made, never changed."},"sourceRtmpUrl":{"type":["string","null"]},"sourceIngress":{"type":["object","null"],"properties":{}},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string"}}}},"createdAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Creates the restream card with its destinations. Nothing is sent to the platforms until POST /restreams/{id}/start.","required":["title"],"properties":{"title":{"type":"string","description":"Non-empty.","minLength":1},"description":{"type":"string","description":"Stored as an empty string when omitted."},"sourceType":{"type":"string","enum":["rtmp","rtmps","srt","whip","webrtc","hls","http","stream","file","srt-pull"],"description":"Where the restream takes its input from, case-insensitive. Default `stream` when sourceStreamId is sent, else `rtmp`. `stream` needs sourceStreamId; any other type conflicts with sourceStreamId (400)."},"sourceStreamId":{"type":"string","description":"Id of one of your own stream cards to restream. Omit it to get a standalone ingest key."},"sourceUrl":{"type":"string","description":"The source address DCAST pulls for sourceType `http` (http(s)://, e.g. an HLS playlist) or `srt-pull` (an address with the srt scheme, a host and a port; query `mode=caller|rendezvous`, optional `latency` in microseconds and `passphrase`). Required for those types; must be a public address."},"sourceVideoId":{"type":"string","description":"Id of one of your own videos, played as the input for sourceType `file`. Required for that type."},"streamId":{"type":"string","description":"Alias of sourceStreamId."},"destinations":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["CUSTOM","YOUTUBE","TWITCH","FACEBOOK","INSTAGRAM","TIKTOK","KICK","TELEGRAM"],"description":"Target platform, case-insensitive; default CUSTOM.","default":"CUSTOM"},"streamKey":{"type":"string","description":"Stream key issued by the target platform."},"rtmpUrl":{"type":"string","description":"RTMP(S) address of the target; defaults to the platform's standard ingest for YOUTUBE, TWITCH and FACEBOOK. CUSTOM, INSTAGRAM, TIKTOK, KICK and TELEGRAM have no standard ingest: without an rtmpUrl (or without a streamKey) the destination is created with enabled false and cannot start until both are set. INSTAGRAM and TELEGRAM accept only an rtmps:// address. Must be a public address."},"enabled":{"type":"boolean","description":"Whether the destination is used when the restream starts. A destination missing its address or key is stored with enabled false whatever is sent here."}}},"description":"Targets to send to. May be empty and added later with PUT /restreams/{id}."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/restreams/{id}":{"delete":{"tags":["Restreams"],"operationId":"delete_restreams_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Delete restream","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}},"get":{"tags":["Restreams"],"operationId":"get_restreams_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one restream","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:read` permission or a wider one of the same area such as `restreams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"sourceStreamKey":{"type":"string"},"sourceType":{"type":"string"},"sourceStreamId":{"type":["string","null"]},"status":{"type":"string","description":"Upper-case restream state, for example INACTIVE or ACTIVE."},"createdInHub":{"type":"boolean","description":"True when the card was made from the DHUB hub in the dashboard, false for a card made in the restreams section or through this API. It only decides which dashboard list shows the card; the card starts, stops, takes a backup and counts against the plan like any other restream. Set when the card is made, never changed."},"sourceRtmpUrl":{"type":["string","null"]},"sourceIngress":{"type":["object","null"],"properties":{}},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string"},"rtmpUrl":{"type":["string","null"]},"streamKey":{"type":"string","description":"Always masked."},"enabled":{"type":"boolean"},"status":{"type":"string"},"lastError":{"type":["string","null"],"description":"The last error text of this destination; null for a READ_ONLY key."},"lastErrorAt":{"type":["string","null"],"format":"date-time"}}}},"createdAt":{"type":"string","format":"date-time"},"sourceStream":{},"backupEnabled":{"type":"boolean","description":"A feed on the backup address is taken: the owner's plan includes the backup input and this input type carries one. Not a setting."},"backupStreamKey":{"type":["string","null"],"description":"The key the backup encoder publishes under, present on every plan; masked for a READ_ONLY key, null for an input type that carries no backup."},"backupSourceIngress":{"type":["object","null"],"properties":{}},"backupReturnMode":{"type":"string","enum":["auto","stay","manual"],"description":"When the backup gives the card back to the primary: auto, stay or manual. Change it with PUT /restreams/{id}."},"failoverActive":{"type":"boolean","description":"The backup program is running for this card now."},"startedAt":{"type":["string","null"],"format":"date-time"},"stoppedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}},"put":{"tags":["Restreams"],"operationId":"put_restreams_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"summary":"Replace restream","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"sourceStreamKey":{"type":"string"},"sourceType":{"type":"string"},"sourceStreamId":{"type":["string","null"]},"status":{"type":"string","description":"Upper-case restream state, for example INACTIVE or ACTIVE."},"createdInHub":{"type":"boolean","description":"True when the card was made from the DHUB hub in the dashboard, false for a card made in the restreams section or through this API. It only decides which dashboard list shows the card; the card starts, stops, takes a backup and counts against the plan like any other restream. Set when the card is made, never changed."},"sourceRtmpUrl":{"type":["string","null"]},"sourceIngress":{"type":["object","null"],"properties":{}},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string"}}}},"createdAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"PLAN_RESTREAM_LEG_LIMIT_REACHED — the write would put more outgoing restream legs on air than the plan allows at once, counted over the whole account, not per restream (FREE 2, STAR 4, PRO 6, VIP 10). A leg counts while it is switched on (`enabled: true`) on a running restream. `limit` is the plan's allowance, `current` the legs the account's other running restreams hold, `wanted` the legs this restream would hold, `total` their sum, `plan` the account plan. Switch a leg off, stop another restream or upgrade the plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"planRestreamLegLimit":{"summary":"Switching a leg on while this restream is running would exceed the account-wide leg allowance: 2 legs on other live restreams plus 1 here is 3 against FREE's 2. Nothing was written","value":{"success":false,"error":{"code":"PLAN_RESTREAM_LEG_LIMIT_REACHED","current":2,"wanted":1,"total":3,"limit":2,"plan":"FREE","message":"PLAN_RESTREAM_LEG_LIMIT_REACHED"}}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"502":{"description":"Codes on this operation: `PROGRAM_UNAVAILABLE` (The backup program did not accept the change; the return mode is stored. Try the switch again shortly.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update despite the verb: send only what changes. Destinations are matched by `id`; an entry without `id` adds a new destination.","properties":{"title":{"type":"string","description":"Non-blank text; an empty or blank title is refused 400.","minLength":1},"description":{"type":"string"},"sourceType":{"type":"string","enum":["rtmp","rtmps","srt","whip","webrtc","hls","http","stream","file","srt-pull"],"description":"Change the input type, case-insensitive. On a restream that is on air, switching between any of `rtmp`, `rtmps`, `srt`, `whip`, `http`, `srt-pull` and `file` happens live and destinations keep running (a push input waits for the new publisher on the same address); switching to or from a linked stream while on air is refused 409 `RESTREAM_LIVE_SWITCH_NEEDS_FORWARDER_RESTART`."},"sourceStreamId":{"type":["string","null"],"description":"Id of one of your own stream cards (sets sourceType `stream`); null detaches it and is required to switch a linked restream to another sourceType."},"sourceUrl":{"type":"string","description":"The source address DCAST pulls for sourceType `http` (http(s)://, e.g. an HLS playlist) or `srt-pull` (an address with the srt scheme, a host and a port; query `mode=caller|rendezvous`, optional `latency` in microseconds and `passphrase`). Required for those types; must be a public address."},"sourceVideoId":{"type":"string","description":"Id of one of your own videos, played as the input for sourceType `file`. Required for that type."},"backupReturnMode":{"type":"string","enum":["auto","stay","manual"],"description":"When the backup gives the card back to the primary: `auto` as soon as the primary is stable, `stay` never by itself, `manual` only on request. Refused 403 on an input type or plan without a backup."},"backupSource":{"type":"string","enum":["A","B"],"description":"Switch the running backup program to the primary (`A`) or the backup (`B`). Refused 409 while no backup program runs."},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Existing destination id. Omit to add a new destination."},"platform":{"type":"string","enum":["CUSTOM","YOUTUBE","TWITCH","FACEBOOK","INSTAGRAM","TIKTOK","KICK","TELEGRAM"],"description":"Target platform, case-insensitive."},"streamKey":{"type":"string","description":"New stream key. Omit or send `***` to keep the stored one."},"rtmpUrl":{"type":"string","description":"Target address; a public address only, a private or loopback one is refused 400."},"enabled":{"type":"boolean","description":"Turns the destination on or off. Omitted keeps the stored value. A destination missing its address or key stays off whatever is sent."}}},"description":"Destinations to update or add. Not a list is refused 400."}}}}}},"x-dcast-errors":[{"status":502,"code":"PROGRAM_UNAVAILABLE","when":"The backup program did not accept the change; the return mode is stored.","howToFix":"Try the switch again shortly.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"restreams:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/restreams/{id}/destinations/{destId}":{"patch":{"tags":["Restreams"],"operationId":"patch_restreams_id_destinations_destId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Update destination (restreams)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"destId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"restreamId":{"type":"string"},"platform":{"type":"string"},"enabled":{"type":"boolean"},"displayName":{"type":["string","null"]},"rtmpUrl":{"type":["string","null"]},"status":{"type":"string","description":"Upper-case destination state."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"PLAN_RESTREAM_LEG_LIMIT_REACHED — the write would put more outgoing restream legs on air than the plan allows at once, counted over the whole account, not per restream (FREE 2, STAR 4, PRO 6, VIP 10). A leg counts while it is switched on (`enabled: true`) on a running restream. `limit` is the plan's allowance, `current` the legs the account's other running restreams hold, `wanted` the legs this restream would hold, `total` their sum, `plan` the account plan. Switch a leg off, stop another restream or upgrade the plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"planRestreamLegLimit":{"summary":"Switching a leg on while this restream is running would exceed the account-wide leg allowance: 2 legs on other live restreams plus 1 here is 3 against FREE's 2. Nothing was written","value":{"success":false,"error":{"code":"PLAN_RESTREAM_LEG_LIMIT_REACHED","current":2,"wanted":1,"total":3,"limit":2,"plan":"FREE","message":"PLAN_RESTREAM_LEG_LIMIT_REACHED"}}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update; send at least one field.","properties":{"enabled":{"type":"boolean","description":"Turns the destination on or off."},"displayName":{"type":["string","null"],"description":"Label shown in the cabinet."},"rtmpUrl":{"type":"string","description":"Target address, non-empty, public address only."},"platform":{"type":"string","enum":["CUSTOM","YOUTUBE","TWITCH","FACEBOOK","INSTAGRAM","TIKTOK","KICK","TELEGRAM"],"description":"Target platform, case-insensitive."}}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"restreams:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/restreams/{id}/destinations/{destId}/rotate-key":{"post":{"tags":["Restreams"],"operationId":"post_restreams_id_destinations_destId_rotate_key","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Rotate key of destination (restreams)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"destId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"restreamId":{"type":"string"},"platform":{"type":["string","null"]},"rtmpUrl":{"type":["string","null"]},"status":{"type":"string"},"streamKey":{"type":"string"},"runtimeApplied":{"type":"boolean"},"note":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["streamKey"],"properties":{"streamKey":{"type":"string","description":"The new stream key issued by the platform. Non-empty.","minLength":1}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/restreams/{id}/encoder-urls":{"get":{"tags":["Restreams"],"operationId":"get_restreams_id_encoder_urls","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List encoder urls (restreams)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:read` permission or a wider one of the same area such as `restreams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamKey":{"type":"string"},"urls":{"type":"object","properties":{"rtmp":{},"rtmps":{},"srt":{}}},"sourceIngress":{"type":"object","properties":{}},"backup":{"type":["object","null"],"properties":{"planAllows":{"type":"boolean","description":"The owner's plan includes the backup input; the address exists on every plan."},"streamKey":{"type":"string"},"urls":{"type":"object","properties":{"rtmp":{},"rtmps":{},"srt":{}}}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/restreams/{id}/input/start":{"post":{"tags":["Restreams"],"operationId":"post_restreams_id_input_start","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"summary":"Start input (restreams)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"connected":{"type":"boolean","description":"The input is running on the worker."},"kind":{"type":"string","description":"http, srt-pull or file."},"workerId":{"type":["string","null"]},"alreadyRunning":{"type":"boolean","description":"True when the restream is on air and already owns the input; nothing was restarted."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/restreams/{id}/input/stop":{"post":{"tags":["Restreams"],"operationId":"post_restreams_id_input_stop","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Stop input (restreams)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"stopped":{"type":"boolean"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/restreams/{id}/preview-url":{"get":{"tags":["Restreams"],"operationId":"get_restreams_id_preview_url","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get a preview link for a restream","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:read` permission or a wider one of the same area such as `restreams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Preview URL ready.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"httpFlvUrl":{"type":["string","null"],"description":"Playable address; null while the preview is not ready (the call then answers 202)."},"expiresAt":{"type":["string","null"],"format":"date-time"},"isLive":{"type":"boolean"},"reason":{"type":"string","description":"Present while the preview is not ready: why."}}}}}}}},"202":{"$ref":"#/components/responses/Success","description":"Not ready yet: `httpFlvUrl` is null and `reason` says why. Poll again."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/restreams/{id}/preview.flv":{"get":{"tags":["Restreams"],"operationId":"get_restreams_id_preview_flv","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Watch the live preview of a restream","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"token","in":"query","required":true,"schema":{"type":"string","minLength":16,"maxLength":512}}],"security":[{"previewToken":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `LINKED_RESTREAM_HAS_NO_OWN_PREVIEW` (A linked restream shows the preview of its source stream. Request the preview of the source stream instead.) `NOT_PUBLISHING` (The stream receives no signal. Start the encoder, check get_stream_status, then repeat.) `NOT_READY` (The thing asked for is not ready yet (the preview is still being prepared, the video is still processing). Wait a few seconds and repeat.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `NOT_READY` (The thing asked for is not ready yet (the preview is still being prepared, the video is still processing). Wait a few seconds and repeat.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":401,"code":"INVALID_TOKEN","when":"The token in the path or query (upload token, preview token, or the playback pass on a master address) does not belong to this resource, expired or was altered.","howToFix":"Request a fresh token from the operation that hands it out (for an upload: POST /videos/upload; for a playback pass: the access-token address of the card) and use it unchanged.","retryable":false},{"status":409,"code":"LINKED_RESTREAM_HAS_NO_OWN_PREVIEW","when":"A linked restream shows the preview of its source stream.","howToFix":"Request the preview of the source stream instead.","retryable":false},{"status":409,"code":"NOT_PUBLISHING","when":"The stream receives no signal.","howToFix":"Start the encoder, check get_stream_status, then repeat.","retryable":false},{"status":409,"code":"NOT_READY","when":"The thing asked for is not ready yet (the preview is still being prepared, the video is still processing).","howToFix":"Wait a few seconds and repeat.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"NOT_READY","when":"The thing asked for is not ready yet (the preview is still being prepared, the video is still processing).","howToFix":"Wait a few seconds and repeat.","retryable":true,"retryAfterSeconds":5}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/restreams/{id}/record/start":{"post":{"tags":["Restreams"],"operationId":"post_restreams_id_record_start","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Start record (restreams)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"startedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/restreams/{id}/record/status":{"get":{"tags":["Restreams"],"operationId":"get_restreams_id_record_status","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get status (record)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:read` permission or a wider one of the same area such as `restreams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"recording":{"type":["object","null"],"properties":{}},"restream":{"type":"object","properties":{}},"download":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/restreams/{id}/record/stop":{"post":{"tags":["Restreams"],"operationId":"post_restreams_id_record_stop","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Stop record (restreams)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"mkvPath":{},"status":{"type":"string","enum":["completed"]}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/restreams/{id}/recording/download":{"get":{"tags":["Restreams"],"operationId":"get_restreams_id_recording_download","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get download (recording)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:read` permission or a wider one of the same area such as `restreams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/restreams/{id}/recording/qualities":{"get":{"tags":["Restreams"],"operationId":"get_restreams_id_recording_qualities","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List qualities (recording)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:read` permission or a wider one of the same area such as `restreams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/restreams/{id}/start":{"post":{"tags":["Restreams"],"operationId":"post_restreams_id_start","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"summary":"Start restream","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"workerId":{"type":["string","null"]},"acceptedDestinations":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"CONFLICT — another start of this restream is in flight, or it is already ACTIVE. PLAN_RESTREAM_LEG_LIMIT_REACHED — the write would put more outgoing restream legs on air than the plan allows at once, counted over the whole account, not per restream (FREE 2, STAR 4, PRO 6, VIP 10). A leg counts while it is switched on (`enabled: true`) on a running restream. `limit` is the plan's allowance, `current` the legs the account's other running restreams hold, `wanted` the legs this restream would hold, `total` their sum, `plan` the account plan. Switch a leg off, stop another restream or upgrade the plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"planRestreamLegLimit":{"summary":"Starting would put more outgoing legs on air than the plan allows across the whole account: 1 on another live restream plus the 2 switched on here is 3 against FREE's 2","value":{"success":false,"error":{"code":"PLAN_RESTREAM_LEG_LIMIT_REACHED","current":1,"wanted":2,"total":3,"limit":2,"plan":"FREE","message":"PLAN_RESTREAM_LEG_LIMIT_REACHED"}}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceType":{"type":"string","enum":["rtmp","rtmps","srt","whip","webrtc","hls","http","stream","file","srt-pull"],"description":"Start with this input type instead of the stored one."}}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"restreams:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/restreams/{id}/stop":{"post":{"tags":["Restreams"],"operationId":"post_restreams_id_stop","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Stop restream","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `restreams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"restreams:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.restream_api","externalDocs":{"url":"https://dcast.pro/docs/restreams","description":"Restream API: create and control multistream destinations from your own code"}}},"/rooms":{"get":{"tags":["Rooms"],"operationId":"get_rooms","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List your rooms, newest first","description":"A page of the rooms hosted by the key's account, newest first, with a `pagination` block. Cancelled rooms are excluded from this list — including rooms that were \"deleted\" while holding recordings, since that path cancels rather than removes (see DELETE /rooms/{id}). One field to ignore: `currentParticipants` is always 0 in this list, it is not live presence; for who is actually in a room call GET /rooms/{id}/participants. `joinUrl` is the ready-made page a guest can open; a programmatic client joins with a token from POST /rooms/{id}/token instead. The key needs the `rooms:read` permission or a wider one of the same area such as `rooms:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"status","in":"query","required":false,"description":"Filter by room status, case-insensitive; any other value is refused 400. Cancelled rooms are never listed.","schema":{"type":"string","enum":["SCHEDULED","WAITING","LIVE","ENDED"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"rooms":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["INSTANT","SCHEDULED","RECURRING","WEBINAR","BREAKOUT","TRANSLATION","BROADCAST"]},"status":{"type":"string","enum":["SCHEDULED","WAITING","LIVE","ENDED","CANCELLED"]},"maxParticipants":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"slug":{"type":"string"},"currentParticipants":{"type":"integer"},"recordingEnabled":{"type":"boolean"},"joinUrl":{"type":"string"},"scheduledStart":{"type":["string","null"],"format":"date-time"}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}},"examples":{"page":{"summary":"A live room and a scheduled one. currentParticipants is 0 on BOTH rows because the field is a constant here, not live presence","value":{"success":true,"data":{"rooms":[{"id":"c4d5e6f708192a3b4c5d6e7f80912a3b","title":"Office hours","slug":"k7m2p9x4t6qz","type":"INSTANT","status":"LIVE","maxParticipants":10,"currentParticipants":0,"recordingEnabled":false,"joinUrl":"https://dcast.tv/rooms/k7m2p9x4t6qz","createdAt":"2026-08-14T03:30:00.000Z","scheduledStart":null},{"id":"3b2a1908f7e6d5c4b3a2918070f6e5d4","title":"Product launch","slug":"w3n8b5v1r7hd","type":"BROADCAST","status":"SCHEDULED","maxParticipants":100,"currentParticipants":0,"recordingEnabled":true,"joinUrl":"https://dcast.tv/rooms/w3n8b5v1r7hd","createdAt":"2026-08-14T03:31:12.006Z","scheduledStart":"2026-08-20T17:00:00.000Z"}],"pagination":{"page":1,"limit":20,"total":2,"pages":1}}}},"empty":{"summary":"No rooms — and cancelled ones never appear here, so a room \"deleted\" while holding recordings drops out of this list too","value":{"success":true,"data":{"rooms":[],"pagination":{"page":1,"limit":20,"total":0,"pages":1}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:read","via":"route-area"}],"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}},"post":{"tags":["Rooms"],"operationId":"post_rooms","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create a video room and get its join URL","description":"Creates a LiveKit-backed room and answers 201. There is no need to start it: a meeting starts when the first person is connected — through `joinUrl` (the host, or a guest the host admitted) or with a token from POST /rooms/{id}/token — and the room is LIVE while it runs. When everyone has left, the meeting closes after a 2-minute pause and the room becomes ENDED; the room and its `joinUrl` stay, and the next entry opens a new meeting. POST /rooms/{id}/end ends the meeting for everyone at once. `type` only sets the status it is created with: INSTANT (the default) is created LIVE, every other type SCHEDULED; an INSTANT room nobody enters becomes ENDED after the same pause. With a planned `scheduledStart`, guests can open `joinUrl` from 15 minutes before it, the host at any time. The first token taken for a room with no meeting running is the room's entry too: it takes one of the plan's active-room places (the room becomes WAITING) and is refused 403 when the plan has none left. Guest access: a room created here admits no one without a DCAST account — such a guest is refused at `joinUrl` with 403 \"This room requires authentication\" — and its waiting room is off (`waitingRoomEnabled` false), so a signed-in person with the link joins at once. Guest access and a room password cannot be set through this API; the waiting room (the host admits each person, POST /rooms/{id}/participants/{participantId}/admit) can be switched on with PATCH /rooms/{id}. Tokens from POST /rooms/{id}/token are not affected by either. `description` is not read on create (set it with PATCH /rooms/{id}), and the API has no repeat schedule: type RECURRING by itself schedules nothing. The room is a database record at this point — the actual conference is materialised lazily on the first POST /rooms/{id}/token call, which is also what binds the room to a server, so a recording started before anyone has taken a token is refused. `hostToken` in this response is ALWAYS null by design; tokens come from POST /rooms/{id}/token. Set `allowParticipantVideo` and `allowParticipantAudio` to false to mint a broadcast-style room where guests watch but cannot publish. `maxParticipants` above the account plan's seat ceiling (FREE 10, STAR 50, PRO 100, VIP 200) is lowered to it rather than refused, and `planAdjustments` in the answer says so. Send an `Idempotency-Key` header so a retry returns the first room instead of creating a second one. The key needs the `rooms:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Room created. An INSTANT room is created LIVE, every other type SCHEDULED; any room goes LIVE when the first person is connected, through `joinUrl` or with a token. `hostToken` is null here — take participant tokens from POST /rooms/{id}/token, which is also what materialises the room on a server.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["INSTANT","SCHEDULED","RECURRING","WEBINAR","BREAKOUT","TRANSLATION","BROADCAST"]},"status":{"type":"string","enum":["SCHEDULED","WAITING","LIVE","ENDED","CANCELLED"]},"maxParticipants":{"type":"integer"},"recordingEnabled":{"type":"boolean"},"chatEnabled":{"type":"boolean"},"screenShareEnabled":{"type":"boolean"},"allowParticipantVideo":{"type":"boolean"},"allowParticipantAudio":{"type":"boolean"},"waitingRoomEnabled":{"type":"boolean"},"raiseHandOpensMic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"slug":{"type":"string"},"currentParticipants":{"type":"integer"},"joinUrl":{"type":"string","description":"The page a guest opens to join."},"scheduledStart":{"type":["string","null"],"description":"Planned start; the field PATCH writes as `scheduledStart` or `scheduledStartAt`.","format":"date-time"},"scheduledEnd":{"type":["string","null"],"description":"Planned end; the field PATCH writes as `scheduledEnd` or `scheduledEndAt`.","format":"date-time"},"startedAt":{"type":["string","null"],"format":"date-time"},"endedAt":{"type":["string","null"],"format":"date-time"},"livekitRoomName":{"type":["string","null"]},"actualStartAt":{"type":["string","null"],"format":"date-time"},"planAdjustments":{"type":"array","items":{"type":"object","properties":{}}},"hostToken":{"type":["string","null"]}}}}},"examples":{"instant":{"summary":"The default INSTANT room — created already LIVE. hostToken is null by design; take one from POST /rooms/{id}/token","value":{"success":true,"data":{"id":"c4d5e6f708192a3b4c5d6e7f80912a3b","title":"Office hours","slug":"k7m2p9x4t6qz","type":"INSTANT","status":"LIVE","maxParticipants":10,"recordingEnabled":false,"chatEnabled":true,"screenShareEnabled":true,"allowParticipantVideo":true,"allowParticipantAudio":true,"joinUrl":"https://dcast.tv/rooms/k7m2p9x4t6qz","hostToken":null,"livekitRoomName":"procast-k7m2p9x4t6qz","actualStartAt":"2026-08-14T03:30:00.000Z","createdAt":"2026-08-14T03:30:00.000Z"}}},"broadcastViewersOnly":{"summary":"A BROADCAST room with publishing switched off for guests, and SCHEDULED rather than LIVE — actualStartAt stays null until the first person is in the room","value":{"success":true,"data":{"id":"3b2a1908f7e6d5c4b3a2918070f6e5d4","title":"Product launch","slug":"w3n8b5v1r7hd","type":"BROADCAST","status":"SCHEDULED","maxParticipants":100,"recordingEnabled":true,"chatEnabled":true,"screenShareEnabled":false,"allowParticipantVideo":false,"allowParticipantAudio":false,"joinUrl":"https://dcast.tv/rooms/w3n8b5v1r7hd","hostToken":null,"livekitRoomName":"procast-w3n8b5v1r7hd","actualStartAt":null,"createdAt":"2026-08-14T03:31:12.006Z"}}}}}}},"400":{"description":"HTTP 400","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"noTitle":{"summary":"title is the only required field","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"title is required"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string","minLength":1,"description":"Required; a missing or empty title is 400 BAD_REQUEST."},"type":{"type":"string","enum":["INSTANT","SCHEDULED","RECURRING","WEBINAR","BREAKOUT","TRANSLATION","BROADCAST"],"default":"INSTANT","description":"An unrecognised value falls back to INSTANT rather than being refused. The type sets only the status the room is created with: INSTANT is created LIVE, every other type SCHEDULED. There is no start step: a SCHEDULED room goes LIVE by itself when the first person is connected, through `joinUrl` or with a token."},"maxParticipants":{"type":"integer","minimum":1,"default":10,"description":"Seats. A value above the account plan's seat ceiling (FREE 10, STAR 50, PRO 100, VIP 200) is lowered to it, not rejected; `planAdjustments` in the answer lists the change."},"scheduledStart":{"type":["string","null"],"format":"date-time","description":"Planned start, ISO 8601; a value that is not a date is 400 on this field. Answers carry it as `scheduledStart`. `scheduledStartAt` is the same field."},"scheduledStartAt":{"type":["string","null"],"format":"date-time","description":"Alias of `scheduledStart`; `scheduledStart` wins when both are sent."},"scheduledEnd":{"type":["string","null"],"format":"date-time","description":"Planned end, ISO 8601, after the start. Answers carry it as `scheduledEnd`. `scheduledEndAt` is the same field."},"scheduledEndAt":{"type":["string","null"],"format":"date-time","description":"Alias of `scheduledEnd`; `scheduledEnd` wins when both are sent."},"enableRecording":{"type":"boolean","default":false,"description":"POST /rooms/{id}/record/start turns this on by itself if it is off."},"enableChat":{"type":"boolean","default":true},"allowParticipantVideo":{"type":"boolean","default":true,"description":"false mints a room where guests cannot publish video."},"allowParticipantAudio":{"type":"boolean","default":true,"description":"false mints a room where guests cannot publish audio."},"allowParticipantScreenShare":{"type":"boolean","default":true,"description":"Canonical name; `enableScreenShare` is accepted as an alias and loses to this one when both are sent."}}},"examples":{"instant":{"summary":"The whole first call — type defaults to INSTANT, which is the one type created already LIVE","value":{"title":"Weekly standup"}},"broadcast":{"summary":"Guests watch but cannot publish, and recording is on from creation","value":{"title":"Product launch","type":"BROADCAST","maxParticipants":100,"enableRecording":true,"allowParticipantVideo":false,"allowParticipantAudio":false}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:write"}],"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}},"put":{"tags":["Rooms"],"operationId":"put_rooms","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create a video room (same handler as POST /rooms, no Idempotency-Key)","description":"Creates a NEW room on every call, with the same request, the same 201 answer and the same permission check as POST /rooms. Despite the PUT verb it replaces nothing, and unlike POST /rooms it does not honour `Idempotency-Key`, so a retried call makes a second room. Use POST /rooms. The key needs the `rooms:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Room created. An INSTANT room is created LIVE, every other type SCHEDULED; any room goes LIVE when the first person is connected, through `joinUrl` or with a token. `hostToken` is null here — take participant tokens from POST /rooms/{id}/token, which is also what materialises the room on a server.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["INSTANT","SCHEDULED","RECURRING","WEBINAR","BREAKOUT","TRANSLATION","BROADCAST"]},"status":{"type":"string","enum":["SCHEDULED","WAITING","LIVE","ENDED","CANCELLED"]},"maxParticipants":{"type":"integer"},"recordingEnabled":{"type":"boolean"},"chatEnabled":{"type":"boolean"},"screenShareEnabled":{"type":"boolean"},"allowParticipantVideo":{"type":"boolean"},"allowParticipantAudio":{"type":"boolean"},"waitingRoomEnabled":{"type":"boolean"},"raiseHandOpensMic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"slug":{"type":"string"},"currentParticipants":{"type":"integer"},"joinUrl":{"type":"string","description":"The page a guest opens to join."},"scheduledStart":{"type":["string","null"],"description":"Planned start; the field PATCH writes as `scheduledStart` or `scheduledStartAt`.","format":"date-time"},"scheduledEnd":{"type":["string","null"],"description":"Planned end; the field PATCH writes as `scheduledEnd` or `scheduledEndAt`.","format":"date-time"},"startedAt":{"type":["string","null"],"format":"date-time"},"endedAt":{"type":["string","null"],"format":"date-time"},"livekitRoomName":{"type":["string","null"]},"actualStartAt":{"type":["string","null"],"format":"date-time"},"planAdjustments":{"type":"array","items":{"type":"object","properties":{}}},"hostToken":{"type":["string","null"]}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string","minLength":1,"description":"Required; a missing or empty title is 400 BAD_REQUEST."},"type":{"type":"string","enum":["INSTANT","SCHEDULED","RECURRING","WEBINAR","BREAKOUT","TRANSLATION","BROADCAST"],"default":"INSTANT","description":"An unrecognised value falls back to INSTANT rather than being refused. The type sets only the status the room is created with: INSTANT is created LIVE, every other type SCHEDULED. There is no start step: a SCHEDULED room goes LIVE by itself when the first person is connected, through `joinUrl` or with a token."},"maxParticipants":{"type":"integer","minimum":1,"default":10,"description":"Seats. A value above the account plan's seat ceiling (FREE 10, STAR 50, PRO 100, VIP 200) is lowered to it, not rejected; `planAdjustments` in the answer lists the change."},"scheduledStart":{"type":["string","null"],"format":"date-time","description":"Planned start, ISO 8601; a value that is not a date is 400 on this field. Answers carry it as `scheduledStart`. `scheduledStartAt` is the same field."},"scheduledStartAt":{"type":["string","null"],"format":"date-time","description":"Alias of `scheduledStart`; `scheduledStart` wins when both are sent."},"scheduledEnd":{"type":["string","null"],"format":"date-time","description":"Planned end, ISO 8601, after the start. Answers carry it as `scheduledEnd`. `scheduledEndAt` is the same field."},"scheduledEndAt":{"type":["string","null"],"format":"date-time","description":"Alias of `scheduledEnd`; `scheduledEnd` wins when both are sent."},"enableRecording":{"type":"boolean","default":false,"description":"POST /rooms/{id}/record/start turns this on by itself if it is off."},"enableChat":{"type":"boolean","default":true},"allowParticipantVideo":{"type":"boolean","default":true,"description":"false mints a room where guests cannot publish video."},"allowParticipantAudio":{"type":"boolean","default":true,"description":"false mints a room where guests cannot publish audio."},"allowParticipantScreenShare":{"type":"boolean","default":true,"description":"Canonical name; `enableScreenShare` is accepted as an alias and loses to this one when both are sent."}}},"examples":{"instant":{"summary":"The whole first call — type defaults to INSTANT, which is the one type created already LIVE","value":{"title":"Weekly standup"}},"broadcast":{"summary":"Guests watch but cannot publish, and recording is on from creation","value":{"title":"Product launch","type":"BROADCAST","maxParticipants":100,"enableRecording":true,"allowParticipantVideo":false,"allowParticipantAudio":false}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:write"}],"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}":{"delete":{"tags":["Rooms"],"operationId":"delete_rooms_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete a room — or cancel it, when it holds recordings","description":"Two different outcomes share the 200, and `data.type` is what tells them apart. `complete-deletion` means the room had no recordings and is gone. `soft-delete` means it HAD recordings, so nothing was removed: the room was set to CANCELLED and its recordings kept, and `recordingsCount` says how many. Read that field before reporting \"deleted\" to anyone — a room that comes back cancelled is retained, not erased, though it does drop out of GET /rooms either way. Deleting a room that is already gone is 404. The key needs the `rooms:delete` permission. The key needs the `rooms:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"completeDeletion":{"summary":"No recordings, so the room is really gone","value":{"success":true,"data":{"id":"c4d5e6f708192a3b4c5d6e7f80912a3b","type":"complete-deletion","deletedAt":"2026-08-14T03:44:07.512Z"}}},"softDeleteKeptRecordings":{"summary":"It had recordings, so NOTHING was removed — the room is CANCELLED and the recordings kept. Read data.type before telling anyone it was deleted","value":{"success":true,"data":{"id":"3b2a1908f7e6d5c4b3a2918070f6e5d4","type":"soft-delete","status":"CANCELLED","deletedAt":"2026-08-14T03:45:19.880Z","hasRecordings":true,"recordingsCount":3}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:delete"}],"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}},"get":{"tags":["Rooms"],"operationId":"get_rooms_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one room","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:read` permission or a wider one of the same area such as `rooms:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["INSTANT","SCHEDULED","RECURRING","WEBINAR","BREAKOUT","TRANSLATION","BROADCAST"]},"status":{"type":"string","enum":["SCHEDULED","WAITING","LIVE","ENDED","CANCELLED"]},"maxParticipants":{"type":"integer"},"recordingEnabled":{"type":"boolean"},"chatEnabled":{"type":"boolean"},"screenShareEnabled":{"type":"boolean"},"allowParticipantVideo":{"type":"boolean"},"allowParticipantAudio":{"type":"boolean"},"waitingRoomEnabled":{"type":"boolean"},"raiseHandOpensMic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"slug":{"type":"string"},"currentParticipants":{"type":"integer"},"joinUrl":{"type":"string","description":"The page a guest opens to join."},"scheduledStart":{"type":["string","null"],"description":"Planned start; the field PATCH writes as `scheduledStart` or `scheduledStartAt`.","format":"date-time"},"scheduledEnd":{"type":["string","null"],"description":"Planned end; the field PATCH writes as `scheduledEnd` or `scheduledEndAt`.","format":"date-time"},"startedAt":{"type":["string","null"],"format":"date-time"},"endedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}},"patch":{"tags":["Rooms"],"operationId":"patch_rooms_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update room","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["INSTANT","SCHEDULED","RECURRING","WEBINAR","BREAKOUT","TRANSLATION","BROADCAST"]},"status":{"type":"string","enum":["SCHEDULED","WAITING","LIVE","ENDED","CANCELLED"]},"maxParticipants":{"type":"integer"},"recordingEnabled":{"type":"boolean"},"chatEnabled":{"type":"boolean"},"screenShareEnabled":{"type":"boolean"},"allowParticipantVideo":{"type":"boolean"},"allowParticipantAudio":{"type":"boolean"},"waitingRoomEnabled":{"type":"boolean"},"raiseHandOpensMic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"slug":{"type":"string"},"currentParticipants":{"type":"integer"},"joinUrl":{"type":"string","description":"The page a guest opens to join."},"scheduledStart":{"type":["string","null"],"description":"Planned start; the field PATCH writes as `scheduledStart` or `scheduledStartAt`.","format":"date-time"},"scheduledEnd":{"type":["string","null"],"description":"Planned end; the field PATCH writes as `scheduledEnd` or `scheduledEndAt`.","format":"date-time"},"startedAt":{"type":["string","null"],"format":"date-time"},"endedAt":{"type":["string","null"],"format":"date-time"},"planAdjustments":{"type":"array","items":{"type":"object","properties":{}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update: send only what changes. Seats and recording are reduced to what the plan allows (see planAdjustments in the answer).","properties":{"title":{"type":"string","description":"Non-blank text; an empty or blank title is refused 400.","minLength":1},"description":{"type":["string","null"]},"maxParticipants":{"type":"integer","description":"Seats.","minimum":1},"recordingEnabled":{"type":"boolean"},"chatEnabled":{"type":"boolean"},"screenShareEnabled":{"type":"boolean"},"allowParticipantScreenShare":{"type":"boolean","description":"Alias of screenShareEnabled; screenShareEnabled wins when both are sent."},"allowParticipantVideo":{"type":"boolean"},"allowParticipantAudio":{"type":"boolean"},"waitingRoomEnabled":{"type":"boolean"},"raiseHandOpensMic":{"type":"boolean"},"scheduledStart":{"type":["string","null"],"description":"Planned start, ISO 8601; null clears it. This is the name the room answers use; `scheduledStartAt` is the same field.","format":"date-time"},"scheduledStartAt":{"type":["string","null"],"description":"Planned start, ISO 8601. Alias of `scheduledStart`; `scheduledStart` wins when both are sent.","format":"date-time"},"scheduledEnd":{"type":["string","null"],"description":"Planned end, ISO 8601; null clears it. It must be after the planned start (the stored one when only the end is sent), else 400 on this field. This is the name the room answers use; `scheduledEndAt` is the same field.","format":"date-time"},"scheduledEndAt":{"type":["string","null"],"description":"Planned end, ISO 8601. Alias of `scheduledEnd`; `scheduledEnd` wins when both are sent.","format":"date-time"}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}},"put":{"tags":["Rooms"],"operationId":"put_rooms_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update room (same operation as PATCH /rooms/{id})","description":"Same handler, same request and same response as PATCH /rooms/{id}; that is the path to call. The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["INSTANT","SCHEDULED","RECURRING","WEBINAR","BREAKOUT","TRANSLATION","BROADCAST"]},"status":{"type":"string","enum":["SCHEDULED","WAITING","LIVE","ENDED","CANCELLED"]},"maxParticipants":{"type":"integer"},"recordingEnabled":{"type":"boolean"},"chatEnabled":{"type":"boolean"},"screenShareEnabled":{"type":"boolean"},"allowParticipantVideo":{"type":"boolean"},"allowParticipantAudio":{"type":"boolean"},"waitingRoomEnabled":{"type":"boolean"},"raiseHandOpensMic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"slug":{"type":"string"},"currentParticipants":{"type":"integer"},"joinUrl":{"type":"string","description":"The page a guest opens to join."},"scheduledStart":{"type":["string","null"],"description":"Planned start; the field PATCH writes as `scheduledStart` or `scheduledStartAt`.","format":"date-time"},"scheduledEnd":{"type":["string","null"],"description":"Planned end; the field PATCH writes as `scheduledEnd` or `scheduledEndAt`.","format":"date-time"},"startedAt":{"type":["string","null"],"format":"date-time"},"endedAt":{"type":["string","null"],"format":"date-time"},"planAdjustments":{"type":"array","items":{"type":"object","properties":{}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update: send only what changes. Seats and recording are reduced to what the plan allows (see planAdjustments in the answer).","properties":{"title":{"type":"string","description":"Non-blank text; an empty or blank title is refused 400.","minLength":1},"description":{"type":["string","null"]},"maxParticipants":{"type":"integer","description":"Seats.","minimum":1},"recordingEnabled":{"type":"boolean"},"chatEnabled":{"type":"boolean"},"screenShareEnabled":{"type":"boolean"},"allowParticipantScreenShare":{"type":"boolean","description":"Alias of screenShareEnabled; screenShareEnabled wins when both are sent."},"allowParticipantVideo":{"type":"boolean"},"allowParticipantAudio":{"type":"boolean"},"waitingRoomEnabled":{"type":"boolean"},"raiseHandOpensMic":{"type":"boolean"},"scheduledStart":{"type":["string","null"],"description":"Planned start, ISO 8601; null clears it. This is the name the room answers use; `scheduledStartAt` is the same field.","format":"date-time"},"scheduledStartAt":{"type":["string","null"],"description":"Planned start, ISO 8601. Alias of `scheduledStart`; `scheduledStart` wins when both are sent.","format":"date-time"},"scheduledEnd":{"type":["string","null"],"description":"Planned end, ISO 8601; null clears it. It must be after the planned start (the stored one when only the end is sent), else 400 on this field. This is the name the room answers use; `scheduledEndAt` is the same field.","format":"date-time"},"scheduledEndAt":{"type":["string","null"],"description":"Planned end, ISO 8601. Alias of `scheduledEnd`; `scheduledEnd` wins when both are sent.","format":"date-time"}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:write"}],"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/end":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_end","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"End the meeting for everyone","description":"Takes no body. Ends the running meeting for everyone in it, like \"End meeting for all\" in Zoom or Teams: every connected participant is disconnected, the meeting's time is charged to the account's monthly activity pool and its participant-minutes to this API key, and the room answers with status ENDED. The room is not deleted: its `joinUrl` and new tokens open a new meeting, which takes the plan's place and pool again. When everyone simply leaves, the meeting closes by itself after a 2-minute pause, so this call is only needed to end it while people are still inside. Repeating it answers the same room and charges nothing again. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["INSTANT","SCHEDULED","RECURRING","WEBINAR","BREAKOUT","TRANSLATION","BROADCAST"]},"status":{"type":"string","enum":["SCHEDULED","WAITING","LIVE","ENDED","CANCELLED"]},"maxParticipants":{"type":"integer"},"recordingEnabled":{"type":"boolean"},"chatEnabled":{"type":"boolean"},"screenShareEnabled":{"type":"boolean"},"allowParticipantVideo":{"type":"boolean"},"allowParticipantAudio":{"type":"boolean"},"waitingRoomEnabled":{"type":"boolean"},"raiseHandOpensMic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"slug":{"type":"string"},"currentParticipants":{"type":"integer"},"joinUrl":{"type":"string","description":"The page a guest opens to join."},"scheduledStart":{"type":["string","null"],"description":"Planned start; the field PATCH writes as `scheduledStart` or `scheduledStartAt`.","format":"date-time"},"scheduledEnd":{"type":["string","null"],"description":"Planned end; the field PATCH writes as `scheduledEnd` or `scheduledEndAt`.","format":"date-time"},"startedAt":{"type":["string","null"],"format":"date-time"},"endedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/participants":{"get":{"tags":["Rooms"],"operationId":"get_rooms_id_participants","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List participants (rooms)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:read` permission or a wider one of the same area such as `rooms:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 50, at most 200; a larger value is lowered to 200.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"participants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"roomId":{"type":"string"},"userId":{"type":["string","null"]},"displayName":{"type":"string"},"email":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"role":{"type":"string","enum":["HOST","CO_HOST","PRESENTER","PARTICIPANT","VIEWER","TRANSLATOR","GUEST"]},"status":{"type":"string","enum":["INVITED","WAITING","JOINED","LEFT","KICKED"]},"canPublishVideo":{"type":"boolean"},"canPublishAudio":{"type":"boolean"},"canShareScreen":{"type":"boolean"},"canChat":{"type":"boolean"},"canRecord":{"type":"boolean"},"isVideoEnabled":{"type":"boolean"},"isAudioEnabled":{"type":"boolean"},"isScreenSharing":{"type":"boolean"},"isHandRaised":{"type":"boolean"},"livekitIdentity":{"type":["string","null"]},"livekitParticipantSid":{"type":["string","null"]},"invitedAt":{"type":"string","format":"date-time"},"joinedAt":{"type":["string","null"],"format":"date-time"},"leftAt":{"type":["string","null"],"format":"date-time"},"totalDuration":{"type":"integer"},"deviceType":{"type":["string","null"]},"browserName":{"type":["string","null"]},"connectionQuality":{"type":["string","null"]},"user":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"avatar":{"type":["string","null"]}}}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/participants/{participantId}/admit":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_participants_participantId_admit","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Admit participant (rooms)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"participantId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `LIVEKIT_UNAVAILABLE` (The live call could not give access right now. Repeat; the participant is still waiting.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":403,"code":"FORBIDDEN","when":"The credential is valid but is not the owner or host of this resource.","howToFix":"Act on resources of your own account, or ask the owner to do it.","retryable":false},{"status":503,"code":"LIVEKIT_UNAVAILABLE","when":"The live call could not give access right now.","howToFix":"Repeat; the participant is still waiting.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/participants/{participantId}/kick":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_participants_participantId_kick","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Kick participant (rooms)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"participantId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":403,"code":"FORBIDDEN","when":"The credential is valid but is not the owner or host of this resource.","howToFix":"Act on resources of your own account, or ask the owner to do it.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/participants/{participantId}/mute":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_participants_participantId_mute","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Mute participant (rooms)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"participantId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `LIVEKIT_UNAVAILABLE` (The live call could not give access right now. Repeat; the participant is still waiting.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"audio":{"type":"boolean","description":"Mute the microphone track, default true.","default":true},"video":{"type":"boolean","description":"Mute the camera track, default false.","default":false}}}}}},"x-dcast-errors":[{"status":403,"code":"FORBIDDEN","when":"The credential is valid but is not the owner or host of this resource.","howToFix":"Act on resources of your own account, or ask the owner to do it.","retryable":false},{"status":503,"code":"LIVEKIT_UNAVAILABLE","when":"The live call could not give access right now.","howToFix":"Repeat; the participant is still waiting.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/polls":{"get":{"tags":["Rooms"],"operationId":"get_rooms_id_polls","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List polls (rooms)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:read` permission or a wider one of the same area such as `rooms:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}},"post":{"tags":["Rooms"],"operationId":"post_rooms_id_polls","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create poll (rooms)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"roomId":{"type":"string"},"creatorId":{"type":"string"},"question":{"type":"string"},"options":{},"allowMultiple":{"type":"boolean"},"showResults":{"type":"boolean"},"isAnonymous":{"type":"boolean"},"isActive":{"type":"boolean"},"totalVotes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"closedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["question","options"],"properties":{"question":{"type":"string","description":"The question.","minLength":1},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"]}]},"description":"At least 2 answer options. A plain string becomes {id: \"opt_<n>\", text}; send {id, text} objects to choose your own ids.","minItems":2},"allowMultiple":{"type":"boolean","description":"A voter may pick several options, default false.","default":false},"showResults":{"type":"boolean","description":"Show results to participants, default true.","default":true},"isAnonymous":{"type":"boolean","description":"Hide who voted for what, default false.","default":false}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/polls/{pollId}/close":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_polls_pollId_close","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Close poll (rooms)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"pollId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"roomId":{"type":"string"},"creatorId":{"type":"string"},"question":{"type":"string"},"options":{},"allowMultiple":{"type":"boolean"},"showResults":{"type":"boolean"},"isAnonymous":{"type":"boolean"},"isActive":{"type":"boolean"},"totalVotes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"closedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":404,"code":"POLL_NOT_FOUND","when":"No such poll in this room.","howToFix":"List the room's polls and use an id from the list.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/polls/{pollId}/vote":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_polls_pollId_vote","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Vote in poll (rooms)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"pollId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Vote recorded.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"pollId":{"type":"string"},"participantId":{"type":"string"},"optionId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `POLL_CLOSED` (The poll is closed. Open a new poll.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["optionId"],"properties":{"optionId":{"type":"string","description":"Id of one of the poll options."},"participantId":{"type":"string","description":"Voter id; defaults to the key owner. A second vote by the same id replaces the first."}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_OPTION","when":"optionId does not match any option.","howToFix":"Read the poll or quiz and send an optionId from it.","retryable":false},{"status":404,"code":"POLL_NOT_FOUND","when":"No such poll in this room.","howToFix":"List the room's polls and use an id from the list.","retryable":false},{"status":409,"code":"POLL_CLOSED","when":"The poll is closed.","howToFix":"Open a new poll.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/quizzes":{"get":{"tags":["Rooms"],"operationId":"get_rooms_id_quizzes","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List quizzes (rooms)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:read` permission or a wider one of the same area such as `rooms:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}},"post":{"tags":["Rooms"],"operationId":"post_rooms_id_quizzes","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create quiz (rooms)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"roomId":{"type":"string"},"creatorId":{"type":"string"},"question":{"type":"string"},"options":{},"correctOptionId":{"type":"string"},"points":{"type":"integer"},"timeLimit":{"type":"integer"},"isActive":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"closedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["question","options","correctOptionId"],"properties":{"question":{"type":"string","description":"The question.","minLength":1},"options":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["id","text"]}]},"description":"At least 2 answer options. A plain string becomes {id: \"opt_<n>\", text}; send {id, text} objects to choose your own ids.","minItems":2},"correctOptionId":{"type":"string","description":"Id of the correct option: `opt_<n>` (n counting from 1) for plain-string options, or the id you gave."},"points":{"type":"integer","description":"Points for a correct answer, default 10.","default":10},"timeLimit":{"type":"integer","description":"Seconds allowed to answer, default 30.","default":30}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/quizzes/{quizId}/answer":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_quizzes_quizId_answer","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Answer in quiz (rooms)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"quizId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Answer recorded.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"quizId":{"type":"string"},"participantId":{"type":"string"},"optionId":{"type":"string"},"isCorrect":{"type":"boolean"},"pointsEarned":{"type":"integer"},"responseTime":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `ALREADY_ANSWERED` (This participant already answered the quiz. Nothing to do; one answer per participant.) `QUIZ_CLOSED` (The quiz is closed. Open a new quiz.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["optionId"],"properties":{"optionId":{"type":"string","description":"Id of one of the quiz options."},"participantId":{"type":"string","description":"Answering participant; defaults to the key owner. One answer per participant, a second is refused 409."},"responseTimeMs":{"type":"integer","description":"Milliseconds the participant took."}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_OPTION","when":"optionId does not match any option.","howToFix":"Read the poll or quiz and send an optionId from it.","retryable":false},{"status":404,"code":"QUIZ_NOT_FOUND","when":"No such quiz in this room.","howToFix":"List the room's quizzes and use an id from the list.","retryable":false},{"status":409,"code":"ALREADY_ANSWERED","when":"This participant already answered the quiz.","howToFix":"Nothing to do; one answer per participant.","retryable":false},{"status":409,"code":"QUIZ_CLOSED","when":"The quiz is closed.","howToFix":"Open a new quiz.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/quizzes/{quizId}/close":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_quizzes_quizId_close","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Close quiz (rooms)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"quizId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"roomId":{"type":"string"},"creatorId":{"type":"string"},"question":{"type":"string"},"options":{},"correctOptionId":{"type":"string"},"points":{"type":"integer"},"timeLimit":{"type":"integer"},"isActive":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"closedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":404,"code":"QUIZ_NOT_FOUND","when":"No such quiz in this room.","howToFix":"List the room's quizzes and use an id from the list.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/reactions":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_reactions","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Send a reaction in a room","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"emoji":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `ROOM_NOT_ACTIVE` (Nobody has joined the room yet. Repeat after a participant joins.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `LIVEKIT_UNAVAILABLE` (The live call could not give access right now. Repeat; the participant is still waiting.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Send `emoji`; it is required. Answers 409 ROOM_NOT_ACTIVE while nobody has joined the room yet (the conference does not exist until the first participant joins) and 503 LIVEKIT_UNAVAILABLE when the media server cannot be reached; the reaction is not delivered in either case.","properties":{"emoji":{"type":"string","description":"The reaction, for example 👏 👍 ❤️ 😂 🎉 🔥."}}}}}},"x-dcast-errors":[{"status":409,"code":"ROOM_NOT_ACTIVE","when":"Nobody has joined the room yet.","howToFix":"Repeat after a participant joins.","retryable":true},{"status":503,"code":"LIVEKIT_UNAVAILABLE","when":"The live call could not give access right now.","howToFix":"Repeat; the participant is still waiting.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/record/start":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_record_start","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Start recording a live room","description":"Begins a composite recording of the room and answers 200 with the recording id. Three preconditions have to hold, and each fails with its own status rather than a generic error. The room must be LIVE (400 if not). It must already be bound to a server, which happens on the first POST /rooms/{id}/token — a room nobody has taken a token for yet is 422 PRECONDITION_FAILED, and the fix is to mint a token and retry. And at least one participant must actually be PUBLISHING, not merely connected: a room full of silent viewers is also 422. Recording being switched off is not an obstacle — this endpoint enables it. Read the 422 apart from the 503: 422 is a precondition you can fix, while 503 RECORDING_UNAVAILABLE means our recorder failed and the right response is to retry and report it. Stop with POST /rooms/{id}/record/stop; poll GET /rooms/{id}/record/status meanwhile. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"startedAt":{"type":"string","format":"date-time"}}}}},"examples":{"started":{"summary":"Recording is running. Stop it with POST /rooms/{id}/record/stop","value":{"success":true,"data":{"id":"rec_room_c4d5e6f708192a3b4c5d6e7f80912a3b_1755140444120","status":"recording","startedAt":"2026-08-14T03:50:44.120Z"}}}}}}},"400":{"description":"HTTP 400","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"notLive":{"summary":"The room is not LIVE: nobody is connected yet. It becomes LIVE when the first participant connects, through joinUrl or with a token","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"Room is not live"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"422":{"description":"PRECONDITION_FAILED — something about the room has to change before it can be recorded: nobody is publishing yet, or the room is not bound to a server because no token has been minted for it. The message names which. Fix it and retry; this is not a fleet fault. Codes on this operation: `PRECONDITION_FAILED` (A precondition is not met (restream: no destination passed the pre-flight; room recording: nobody is connected). Fix what the message names (each destination needs enabled true, a stream key and an rtmp address; a recording needs a connected participant), then start again.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"nobodyPublishing":{"summary":"Connected is not the same as publishing — a room of silent viewers cannot be composited","value":{"success":false,"error":{"code":"PRECONDITION_FAILED","message":"Room composite recording requires at least one connected participant. LiveKit reports 2 connected and 0 publishing. Wait for a publisher to join the room (POST /rooms/:id/token then connect) and retry."}}},"notBoundToAnEdge":{"summary":"Nobody has taken a token yet, so the room exists only in the database. Call POST /rooms/{id}/token, then retry","value":{"success":false,"error":{"code":"PRECONDITION_FAILED","message":"Room is not bound to a LiveKit edge yet (no routing). Call POST /rooms/:id/token so the room is assigned to a worker, then retry."}}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"RECORDING_UNAVAILABLE — the preconditions held and our recorder still would not take the job. Distinct from the 422 on purpose: nothing you send differently will change it. Retry, and report it if it persists. Codes on this operation: `RECORDING_UNAVAILABLE` (The recording could not be started right now. Repeat in a few seconds; if it persists contact DCAST support.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"recorderFailed":{"summary":"Our side, not yours: participants were there and the recorder still refused. Retry, and report it if it persists","value":{"success":false,"error":{"code":"RECORDING_UNAVAILABLE","message":"Recording could not be started: LiveKit had 1 publishing participant(s) of 3 connected (asked LiveKit), and the recording egress on the room worker did not accept the job (unreachable). This is a recording-service failure on that worker, not a missing participant. Retry, and report it if it persists."}}}}}}}},"x-dcast-errors":[{"status":403,"code":"RECORDING_PLAN_LOCKED","when":"Cloud recording of rooms is a paid feature.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false},{"status":422,"code":"PRECONDITION_FAILED","when":"A precondition is not met (restream: no destination passed the pre-flight; room recording: nobody is connected).","howToFix":"Fix what the message names (each destination needs enabled true, a stream key and an rtmp address; a recording needs a connected participant), then start again.","retryable":false},{"status":503,"code":"RECORDING_UNAVAILABLE","when":"The recording could not be started right now.","howToFix":"Repeat in a few seconds; if it persists contact DCAST support.","retryable":true,"retryAfterSeconds":10}],"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/rooms/{id}/record/status":{"get":{"tags":["Rooms"],"operationId":"get_rooms_id_record_status","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get status (record)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:read` permission or a wider one of the same area such as `rooms:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"recording":{"type":["object","null"],"properties":{}},"room":{"type":"object","properties":{}},"download":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/rooms/{id}/record/stop":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_record_stop","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Stop the room recording and get the file name","description":"Ends the recording started by POST /rooms/{id}/record/start and answers 200 with `status: completed` and the recording's file name in `mkvPath` — which for a room is an .mp4 file despite the field name, so do not filter on the extension. Completed here means the capture has stopped, not that a downloadable file is ready — transcoding continues afterwards, so poll GET /rooms/{id}/record/status and take the download from there once it appears. Calling stop on a room that is not recording is 400 BAD_REQUEST, which makes it safe to call defensively as long as you do not read that 400 as a lost recording. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"mkvPath":{},"status":{"type":"string","enum":["completed"]}}}}},"examples":{"stopped":{"summary":"Capture stopped. \"completed\" does NOT mean downloadable — transcoding follows, so poll GET /rooms/{id}/record/status for the download","value":{"success":true,"data":{"id":"rec_room_c4d5e6f708192a3b4c5d6e7f80912a3b_1755140444120","mkvPath":"rec_room_c4d5e6f708192a3b4c5d6e7f80912a3b_1755140444120.mp4","status":"completed"}}}}}}},"400":{"description":"HTTP 400","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"notRecording":{"summary":"Nothing was running. Safe to call defensively — just do not read this as a lost recording","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"Room is not currently recording"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/rooms/{id}/recording/download":{"get":{"tags":["Rooms"],"operationId":"get_rooms_id_recording_download","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get download (recording)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:read` permission or a wider one of the same area such as `rooms:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/rooms/{id}/recording/qualities":{"get":{"tags":["Rooms"],"operationId":"get_rooms_id_recording_qualities","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List qualities (recording)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `rooms:read` permission or a wider one of the same area such as `rooms:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/rooms/{id}/start":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_start","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Admit a room under the plan (kept for compatibility)","description":"Takes no body and answers the room as it is. It is not needed: a meeting starts when the first participant is connected, through `joinUrl` or with a token from POST /rooms/{id}/token, and that is when the room becomes LIVE — which POST /rooms/{id}/record/start needs. This call does not set it LIVE. For a room with no meeting running it takes the room's place under the plan exactly as the first token does (the room becomes WAITING); repeating it changes nothing. Admission uses the account plan: streams, restreams and rooms share its monthly activity pool (403 PLAN_MONTHLY_ACTIVITY_EXHAUSTED), and the plan limits active WAITING/LIVE rooms (403 ROOM_CONCURRENCY_LIMIT). Participant-minute metering and partnerApiTier do not decide room admission. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["INSTANT","SCHEDULED","RECURRING","WEBINAR","BREAKOUT","TRANSLATION","BROADCAST"]},"status":{"type":"string","enum":["SCHEDULED","WAITING","LIVE","ENDED","CANCELLED"]},"maxParticipants":{"type":"integer"},"recordingEnabled":{"type":"boolean"},"chatEnabled":{"type":"boolean"},"screenShareEnabled":{"type":"boolean"},"allowParticipantVideo":{"type":"boolean"},"allowParticipantAudio":{"type":"boolean"},"waitingRoomEnabled":{"type":"boolean"},"raiseHandOpensMic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"slug":{"type":"string"},"currentParticipants":{"type":"integer"},"joinUrl":{"type":"string","description":"The page a guest opens to join."},"scheduledStart":{"type":["string","null"],"description":"Planned start; the field PATCH writes as `scheduledStart` or `scheduledStartAt`.","format":"date-time"},"scheduledEnd":{"type":["string","null"],"description":"Planned end; the field PATCH writes as `scheduledEnd` or `scheduledEndAt`.","format":"date-time"},"startedAt":{"type":["string","null"],"format":"date-time"},"endedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"HTTP 403","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"activityExhausted":{"summary":"The account monthly pool shared by streams, restreams and rooms is spent","value":{"success":false,"error":{"code":"PLAN_MONTHLY_ACTIVITY_EXHAUSTED","message":"Your plan's monthly live-activity time is used up. Streams, restreams and rooms share one monthly allowance; it becomes available again when your next monthly period starts, or immediately if you upgrade.","resource":"room","period":"2026-10-12T00:00:00.000Z","resetsAt":"2026-11-12T00:00:00.000Z","limitSeconds":36000,"usedSeconds":36000,"remainingSeconds":0,"spent":{"streamSeconds":12000,"restreamSeconds":12000,"roomSeconds":12000,"inFlightSeconds":0}}}},"roomConcurrency":{"summary":"The account has reached its plan limit of active rooms","value":{"success":false,"error":{"code":"ROOM_CONCURRENCY_LIMIT","message":"Your plan allows 1 active room(s) at a time. End an existing room or upgrade to create more.","limit":1}}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/rooms/{id}/token":{"post":{"tags":["Rooms"],"operationId":"post_rooms_id_token","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Mint a join token for one participant","description":"Returns the credential a client needs to connect to the room, together with the `wsUrl` to connect to and the `roomName` to pass along. Mint one token per participant — the token names that person, and `isHost` decides whether they get moderator rights. Tokens last four hours (`expiresIn`, in seconds). A token for a room with no meeting running — SCHEDULED, ENDED (its last meeting closed), or WAITING before anyone connected — is the entry of a new meeting and uses the account plan exactly like the cabinet join: the room takes one of the plan's active-room places (WAITING and LIVE rooms count) and becomes WAITING, and the new meeting draws on the shared monthly activity pool. When the plan has no place left the answer is 403 ROOM_CONCURRENCY_LIMIT, and when the pool is spent 403 PLAN_MONTHLY_ACTIVITY_EXHAUSTED; no token is issued and the room stays as it was. A CANCELLED room answers 400 ROOM_CANCELLED. A room whose meeting is running already holds its place and is not asked again. The token itself does not start the meeting: the room becomes LIVE when the participant holding it connects, and the meeting's participant-minutes are counted from that moment. This call does more than issue a credential: it is what materialises the room on a server and binds it there, which is why a recording started before any token has ever been minted is refused with \"not bound to an edge yet\". So call this at least once before POST /rooms/{id}/record/start, even for a room you created as INSTANT. `participantName` is required and is limited to 1-64 printable characters (`name` is accepted as an alias, as is `identity` for `participantId`). `wsUrl` is the server the room is bound to; when no server is available for the room the answer is 503 ROOM_LIVEKIT_EDGE_UNAVAILABLE and no `wsUrl` is returned, so retry shortly. The key needs the `rooms:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"token":{"type":"string","description":"LiveKit access token."},"roomName":{"type":"string"},"identity":{"type":"string"},"participantName":{"type":"string"},"wsUrl":{"type":"string"},"expiresIn":{"type":"integer","description":"Seconds the token stays valid."}}}}},"examples":{"guest":{"summary":"A viewer token. Mint one PER participant — and note this call is also what binds the room to a server, which recording later depends on","value":{"success":true,"data":{"token":"<livekit-access-jwt>","roomName":"procast-k7m2p9x4t6qz","identity":"guest-7f3a91","participantName":"Sam Okafor","wsUrl":"wss://lk-720.dcast.pro","expiresIn":14400}}},"host":{"summary":"Same call with isHost:true — the difference is inside the token, so the body looks the same","value":{"success":true,"data":{"token":"<livekit-access-jwt>","roomName":"procast-k7m2p9x4t6qz","identity":"host-alexrivera","participantName":"Alex Rivera","wsUrl":"wss://lk-720.dcast.pro","expiresIn":14400}}}}}}},"400":{"description":"HTTP 400","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"missingName":{"summary":"participantName is required (alias: name)","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"participantName is required (alias: name)"}}},"unusableName":{"summary":"Rejected on content, not length alone — control bytes, angle brackets and backticks are refused","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"participantName must be 1-64 characters and contain only printable letters/numbers/punctuation (no control bytes, no < > or backticks)","field":"participantName"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"HTTP 403","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"activityExhausted":{"summary":"The first token of a room that has not started while the shared monthly pool of streams, restreams and rooms is spent. No token is issued","value":{"success":false,"error":{"code":"PLAN_MONTHLY_ACTIVITY_EXHAUSTED","message":"Your plan's monthly live-activity time is used up. Streams, restreams and rooms share one monthly allowance; it becomes available again when your next monthly period starts, or immediately if you upgrade.","resource":"room","period":"2026-10-12T00:00:00.000Z","resetsAt":"2026-11-12T00:00:00.000Z","limitSeconds":36000,"usedSeconds":36000,"remainingSeconds":0,"spent":{"streamSeconds":12000,"restreamSeconds":12000,"roomSeconds":12000,"inFlightSeconds":0}}}},"roomConcurrency":{"summary":"Another room of the account already holds the plan's active-room place. No token is issued and this room stays SCHEDULED","value":{"success":false,"error":{"code":"ROOM_CONCURRENCY_LIMIT","message":"Your plan allows 1 active room(s) at a time. End an existing room or upgrade to create more.","limit":1}}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.) `ROOM_LIVEKIT_EDGE_UNAVAILABLE` (No call server is available for this room right now. Repeat shortly.) `SERVICE_UNAVAILABLE` (A service the call depends on has no capacity or is not configured right now. Repeat after a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["participantName"],"properties":{"participantName":{"type":"string","minLength":1,"maxLength":64,"description":"Display name. Alias: `name`. Control bytes, angle brackets and backticks are refused 400."},"participantId":{"type":"string","description":"Your own stable identifier for this person. Alias: `identity`. Generated when omitted."},"isHost":{"type":"boolean","default":false,"description":"true grants moderator rights in the room."}}},"examples":{"guest":{"summary":"The minimum — participantId is generated when you do not send one","value":{"participantName":"Alex Rivera"}},"host":{"summary":"Your own stable identifier for this person, with moderator rights","value":{"participantName":"Dana Cole","participantId":"your-own-user-8842","isHost":true}}}}}},"x-dcast-errors":[{"status":500,"code":"SERVICE_UNAVAILABLE","when":"A service the call depends on has no capacity or is not configured right now.","howToFix":"Repeat after a few seconds.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"ROOM_LIVEKIT_EDGE_UNAVAILABLE","when":"No call server is available for this room right now.","howToFix":"Repeat shortly.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"SERVICE_UNAVAILABLE","when":"A service the call depends on has no capacity or is not configured right now.","howToFix":"Repeat after a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"rooms:operate"}],"x-dcast-feature":"feature.rooms_api","externalDocs":{"url":"https://dcast.pro/docs/rooms","description":"Video conferencing API: run meetings and webinars from your own code"}}},"/stats":{"get":{"tags":["Stats"],"operationId":"get_stats","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get account statistics (same operation as GET /analytics/stats)","description":"Same handler, same request and same response as GET /analytics/stats; that is the path to call. Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"source":{"type":"string"},"tiers":{"type":"object","properties":{"total":{"type":"integer"},"active":{"type":"integer"}}},"subscribers":{"type":"object","properties":{"total":{"type":"integer"}}},"revenue":{"type":"object","properties":{"mrr":{"type":"number"},"monthly":{"type":"number"},"videoSales":{"type":"number","description":"USD. One-off sales after our fee, before refunds. Only USD sales are summed."},"currency":{"type":"string","enum":["USD"]},"videoSalesDetail":{"type":"object","properties":{"gross":{"type":"number"},"fees":{"type":"number"},"refunds":{"type":"number"},"net":{"type":"number"},"count":{"type":"integer"},"otherCurrencyCount":{"type":"integer","description":"Sales in another currency: counted here and in no sum."}},"description":"Gross, fees, refunds and net of the one-off sales, USD, as in the cabinet."}}},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/streams":{"get":{"tags":["Streams"],"operationId":"get_streams","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List your stream cards, newest first","description":"A page of the stream cards owned by the key's account, newest first, with a `pagination` block, optionally filtered by `status` — the filter takes LIVE | OFFLINE (by `isLive`, as the rows report) or a stored state INACTIVE | HAS_SIGNAL | STARTING | ACTIVE | STOPPING | ERROR; any other value is refused 400. A card exists independently of whether anything is on air: `isLive` tells you which of them are actually broadcasting right now, and `viewersCount` is read live rather than from a stored snapshot. Every row carries its `streamKey`, which is the ingest credential — treat this response as secret material and do not put it in front of viewers. An account with no cards gets an empty array, never a 404. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"status","in":"query","required":false,"description":"LIVE and OFFLINE follow what each row reports; the other values are the stored state. Case-insensitive; any other value is refused 400.","schema":{"type":"string","enum":["LIVE","OFFLINE","INACTIVE","HAS_SIGNAL","STARTING","ACTIVE","STOPPING","ERROR"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"watchUrl":{"type":"string","description":"The public page where viewers watch this broadcast: the creator's own domain or subdomain when set, else the platform watch page."}},"description":"Stream card."}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}},"examples":{"noStreams":{"summary":"No stream cards — an empty list with a valid pagination block","value":{"success":true,"data":{"streams":[],"pagination":{"page":1,"limit":20,"total":0,"pages":1}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}},"post":{"tags":["Streams"],"operationId":"post_streams","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Create a live stream card and receive its ingest URLs","description":"Returns 201 with the ingest URLs to point an encoder at, and the playback URLs to give viewers. Creating the card does not put anything on air: publish to the ingest URL, then call POST /streams/{id}/start to open the broadcast. `streamKey` is the credential for the ingest URL — it is embedded in every one of them, so treat the whole URL as a secret. Send an `Idempotency-Key` header to make a retry return the first response instead of a second card. The key needs the `streams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Stream card created. A retry carrying the same `Idempotency-Key` re-answers this same body for 24 hours instead of creating a second card. `ingest` is absent for the HTTP and FILE protocols, which pull from a source instead of being published to.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/StreamCreated"}}},"examples":{"rtmp":{"summary":"The default. Three ingest URLs are returned for one card — publish to ONE of them; the key inside is the credential","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","title":"Season 3 opener","status":"IDLE","visibility":"PUBLIC","recording":true,"streamKey":"sk_stream_x7k2m9q4w1e6r8t3y5u0pd","protocol":"RTMP","ingest":{"rtmp":"rtmp://a.dcast.pro/live/sk_stream_x7k2m9q4w1e6r8t3y5u0pd","srt":"srt://a.dcast.pro:10080?streamid=sk_stream_x7k2m9q4w1e6r8t3y5u0pd&mode=caller&latency=500000","whip":"https://a.dcast.pro/whip/sk_stream_x7k2m9q4w1e6r8t3y5u0pd"},"playback":{"hls":"https://api.dcast.pro/api/streams/b7c8d9e0f1a2b3c4d5e6f708192a3b4c/master","embed":"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c"},"watchUrl":"https://dcast.tv/watch/b7c8d9e0f1a2b3c4d5e6f708192a3b4c","createdAt":"2026-08-16T17:29:37.490Z"}}},"srt":{"summary":"protocol SRT — `srtConfig` and a top-level `srtUrl` are added; the key and the three ingest URLs are the same shape as for RTMP","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","title":"Season 3 opener","status":"IDLE","visibility":"PUBLIC","recording":true,"streamKey":"sk_stream_h3j8c5v1n6b2a9s4f7g0ly","protocol":"SRT","ingest":{"rtmp":"rtmp://a.dcast.pro/live/sk_stream_h3j8c5v1n6b2a9s4f7g0ly","srt":"srt://a.dcast.pro:10080?streamid=sk_stream_h3j8c5v1n6b2a9s4f7g0ly&mode=caller&latency=500000","whip":"https://a.dcast.pro/whip/sk_stream_h3j8c5v1n6b2a9s4f7g0ly"},"playback":{"hls":"https://api.dcast.pro/api/streams/b7c8d9e0f1a2b3c4d5e6f708192a3b4c/master","embed":"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c"},"watchUrl":"https://dcast.tv/watch/b7c8d9e0f1a2b3c4d5e6f708192a3b4c","createdAt":"2026-08-16T17:29:37.490Z","srtConfig":{"accessKey":null,"visibility":"public","latency":500},"srtUrl":"srt://a.dcast.pro:10080?streamid=sk_stream_h3j8c5v1n6b2a9s4f7g0ly&mode=caller&latency=500000"}}},"http":{"summary":"protocol HTTP pulls from your source, so there is nothing to publish TO — `ingest` is absent entirely and httpSourceConfig replaces it","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","title":"Season 3 opener","status":"IDLE","visibility":"PUBLIC","recording":true,"streamKey":"sk_stream_m4n7b1v8c2x5z9l3k6j0hg","protocol":"HTTP","playback":{"hls":"https://api.dcast.pro/api/streams/b7c8d9e0f1a2b3c4d5e6f708192a3b4c/master","embed":"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c"},"watchUrl":"https://dcast.tv/watch/b7c8d9e0f1a2b3c4d5e6f708192a3b4c","createdAt":"2026-08-16T17:29:37.490Z","httpSourceConfig":{"protocol":"hls","sourceUrl":"https://example.com/live/index.m3u8","autoReconnect":true}}}},"webrtc":{"summary":"protocol WEBRTC — the three ingest URLs plus `webrtcPublishUrl` (the WHIP address, the same as ingest.whip) and `cameraEnabled`","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","title":"Season 3 opener","status":"IDLE","visibility":"PUBLIC","recording":true,"streamKey":"sk_stream_q9w2e5r8t1y4u7i0o3p6za","protocol":"WEBRTC","ingest":{"rtmp":"rtmp://a.dcast.pro/live/sk_stream_q9w2e5r8t1y4u7i0o3p6za","srt":"srt://a.dcast.pro:10080?streamid=sk_stream_q9w2e5r8t1y4u7i0o3p6za&mode=caller&latency=500000","whip":"https://a.dcast.pro/whip/sk_stream_q9w2e5r8t1y4u7i0o3p6za"},"playback":{"hls":"https://api.dcast.pro/api/streams/b7c8d9e0f1a2b3c4d5e6f708192a3b4c/master","embed":"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c"},"watchUrl":"https://dcast.tv/watch/b7c8d9e0f1a2b3c4d5e6f708192a3b4c","createdAt":"2026-08-16T17:29:37.490Z","webrtcPublishUrl":"https://a.dcast.pro/whip/sk_stream_q9w2e5r8t1y4u7i0o3p6za","cameraEnabled":false}}},"file":{"summary":"protocol FILE plays a file you point at — `ingest` is absent and `fileSourceUrl` echoes the address. The host is resolved when the card is created, so it must exist","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","title":"Season 3 opener","status":"IDLE","visibility":"PUBLIC","recording":true,"streamKey":"sk_stream_d2f5g8h1j4k7l0z3x6c9vb","protocol":"FILE","playback":{"hls":"https://api.dcast.pro/api/streams/b7c8d9e0f1a2b3c4d5e6f708192a3b4c/master","embed":"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c"},"watchUrl":"https://dcast.tv/watch/b7c8d9e0f1a2b3c4d5e6f708192a3b4c","createdAt":"2026-08-16T17:29:37.490Z","fileSourceUrl":"https://example.com/video.mp4"}}}}}}},"400":{"description":"HTTP 400 Codes on this operation: `INVALID_ACCESS_KEY` (accessKey is not valid (must be a string, or is missing for visibility ACCESS_KEY). Send accessKey as a string; visibility ACCESS_KEY needs the viewer password in the same call.) `INVALID_URL` (A URL field is malformed or points somewhere the platform refuses to fetch (private address, wrong scheme). Send a public http(s) or rtmp(s)/srt URL as the message says.) `INVALID_VISIBILITY` (visibility is not one of the allowed names. Use one of the names the operation lists: PUBLIC, LINK_ONLY, PRIVATE, REGISTERED, ACCESS_KEY (streams), SUBSCRIBERS and TIER_EXCLUSIVE (videos).) `UNSUPPORTED_FIELD` (The body carries a field this operation does not support (for example currency or donationsEnabled). Remove the field; the message says why or where to set it.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"titleMissing":{"summary":"Neither title nor name was sent, or one of them was blank","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"title is required (or send name as an alias)"}}},"rtmpsRejected":{"summary":"RTMPS is refused rather than quietly downgraded to RTMP — the one 400 here that also names the offending `field`","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"RTMPS ingest is not supported. Use protocol: RTMP, SRT, WEBRTC, HTTP, or FILE. For TLS-protected push, use SRT or WEBRTC.","field":"protocol"}}},"httpSourceMissing":{"summary":"protocol HTTP without httpSourceUrl. protocol FILE needs no address: it is created without a source","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"httpSourceUrl is required when protocol is HTTP"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title"],"description":"`name` is accepted as an alias for `title`; one of the two must be present and non-blank. Fields outside the protocol you chose are ignored (srtConfig is read only for SRT, isCamera only for WEBRTC).","properties":{"title":{"type":"string","minLength":1,"description":"Card title. Send this or `name`."},"name":{"type":"string","minLength":1,"description":"Alias for `title`, applied when `title` is absent."},"description":{"type":"string","description":"Stored as an empty string when omitted."},"visibility":{"type":"string","enum":["PUBLIC","LINK_ONLY","PRIVATE","REGISTERED","ACCESS_KEY"],"default":"PUBLIC","description":"Who can watch; the answers carry the same name. Case-insensitive. LINK_ONLY: anyone who has the link or the embed code, not listed on the channel. ACCESS_KEY: viewers enter the passphrase in `accessKey`. Any other value is refused 400 INVALID_VISIBILITY. ACCESS_KEY without `accessKey` is refused 400 INVALID_ACCESS_KEY."},"accessKey":{"type":"string","description":"The passphrase viewers enter. Required when visibility is ACCESS_KEY. Change it later with PATCH /streams/{id}."},"protocol":{"type":"string","enum":["RTMP","SRT","WEBRTC","HTTP","FILE"],"default":"RTMP","description":"Chooses the ingest form. RTMPS is rejected 400 rather than downgraded — for TLS-protected push use SRT or WEBRTC. An unrecognised value falls back to RTMP."},"httpSourceUrl":{"type":"string","format":"uri","description":"Required when protocol is HTTP: the HLS source we pull from."},"fileSourceUrl":{"type":"string","format":"uri","description":"Optional when protocol is FILE: a public http(s) URL of a media file that the broadcast plays out. Without it the card is created with no source, as in the dashboard: choose a library video with PUT /streams/{id}/file-broadcast; Start before a source is set answers 400 FILE_SOURCE_REQUIRED. Checked when the card is created (public unicast hosts only; a refused host answers 400 INVALID_URL) and again when the stream starts (FILE_SOURCE_INVALID). Not a DCAST video id and not a local path."},"srtConfig":{"type":"object","description":"Read only when protocol is SRT. Send it (an empty object is enough) to set the SRT options. The protocol a card reports comes from the sk_<protocol>_ prefix of its stream key.","properties":{"mode":{"type":"string","default":"caller"},"latency":{"type":"integer","default":500,"minimum":0,"maximum":7000,"description":"Milliseconds, brought into [500, 7000] before the card is created: below 500 is raised to it, above 7000 is lowered to it, and a value outside that band is answered 201 like any other rather than turned into an error. 500 is where the low end sits because that is what the receiving side declares and the connection settles on the larger of the two — a smaller number would be printed back to you without acting. So read `srtConfig.latency` off the response instead of assuming the value you sent: the two differ whenever the band moved it, and the response field is the one the ingest URL announces."},"passphrase":{"type":["string","null"],"default":null}}},"isCamera":{"type":"boolean","default":false,"description":"Read only when protocol is WEBRTC; echoed back as `cameraEnabled`."},"recording":{"type":"boolean","default":true,"description":"Whether broadcasts of this card are recorded (stored as recordingEnabled). Omitted or null keeps the default, true; false creates a card that is not recorded. Any other type is refused 400 BAD_REQUEST."},"dvr":{"type":"boolean","default":true,"description":"Accepted and checked to be a boolean (anything else is 400 BAD_REQUEST); it does not change anything today."}},"allOf":[{"if":{"properties":{"visibility":{"type":"string","pattern":"^[Aa][Cc][Cc][Ee][Ss][Ss]_[Kk][Ee][Yy]$"}},"required":["visibility"]},"then":{"required":["accessKey"]}}]},"examples":{"minimal":{"summary":"Everything else defaults — an RTMP, PUBLIC card. This is the whole first call","value":{"title":"Season 3 opener"}},"srt":{"summary":"SRT with a passphrase. srtConfig is read only because protocol says SRT","value":{"title":"Season 3 opener","description":"Weekly show","visibility":"PRIVATE","protocol":"SRT","srtConfig":{"mode":"caller","latency":2000,"passphrase":"choose-your-own-passphrase"}}},"httpPull":{"summary":"We pull from your HLS source instead of you publishing to us — httpSourceUrl is required for this protocol","value":{"title":"Rebroadcast","protocol":"HTTP","httpSourceUrl":"https://example.com/live/index.m3u8"}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_ACCESS_KEY","when":"accessKey is not valid (must be a string, or is missing for visibility ACCESS_KEY).","howToFix":"Send accessKey as a string; visibility ACCESS_KEY needs the viewer password in the same call.","retryable":false},{"status":400,"code":"INVALID_URL","when":"A URL field is malformed or points somewhere the platform refuses to fetch (private address, wrong scheme).","howToFix":"Send a public http(s) or rtmp(s)/srt URL as the message says.","retryable":false},{"status":400,"code":"INVALID_VISIBILITY","when":"visibility is not one of the allowed names.","howToFix":"Use one of the names the operation lists: PUBLIC, LINK_ONLY, PRIVATE, REGISTERED, ACCESS_KEY (streams), SUBSCRIBERS and TIER_EXCLUSIVE (videos).","retryable":false},{"status":400,"code":"UNSUPPORTED_FIELD","when":"The body carries a field this operation does not support (for example currency or donationsEnabled).","howToFix":"Remove the field; the message says why or where to set it.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"streams:write"}],"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}":{"delete":{"tags":["Streams"],"operationId":"delete_streams_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete a stream card","description":"Answers 200 when the card and its artifacts are gone, and 202 when the card is gone from the account while the storage purge continues in the background. Both are success — a client that treats anything other than 200 as a failure will retry a deletion that already happened. Owner-scoped: another account's id answers 404. The key needs the `streams:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"complete":{"summary":"The card had no recordings, so nothing survives it","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","type":"complete-deletion","deletedAt":"2026-08-16T17:30:38.226Z"}}},"softDelete":{"summary":"The card had recordings — it leaves your account, and the count of files kept is reported","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","type":"soft-delete","deletedAt":"2026-08-16T17:30:38.226Z","hasVideoFiles":true,"videoFilesCount":2}}}}}}},"202":{"description":"Accepted: the card is gone from the account and the storage purge continues in the background. A success — treat 200 and 202 alike; `retainedCanonical` names what is still being cleaned.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"accepted":{"summary":"Deleted from your account; storage purge still running. This is SUCCESS — retrying it deletes nothing twice, it just repeats the 404","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","type":"accepted","deletedAt":"2026-08-16T17:30:38.226Z","canonicalCleanup":"in_progress","retainedCanonical":["worker:<edge-id>"]}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:delete"}],"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}},"get":{"tags":["Streams"],"operationId":"get_streams_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Read one stream card — its live state, ingest URLs and playback URLs","description":"Owner-scoped: an id belonging to another account answers 404, not 403. `status` is derived from `isLive` (LIVE / OFFLINE) and is not a stored field; `hasSignal` reports whether an encoder is currently publishing, which is what distinguishes \"nothing connected\" from \"connected, not yet on air\". A READ_ONLY key receives `streamKey` as `***` and every ingest URL as null, because those URLs carry the key. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Stream"}}},"examples":{"offline":{"summary":"Created, nothing publishing yet: isLive AND hasSignal false, health null, both thumbnails null, startedAt null","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","title":"Season 3 opener","description":"","status":"OFFLINE","isLive":false,"hasSignal":false,"visibility":"PUBLIC","recording":true,"isPaid":false,"price":null,"streamKey":"sk_stream_x7k2m9q4w1e6r8t3y5u0pd","protocol":"RTMP","viewersCount":0,"peakViewers":0,"duration":0,"health":null,"thumbnails":{"live":null,"latest":null},"playback":{"hls":"https://api.dcast.pro/api/streams/b7c8d9e0f1a2b3c4d5e6f708192a3b4c/master","embed":"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c"},"watchUrl":"https://dcast.tv/watch/b7c8d9e0f1a2b3c4d5e6f708192a3b4c","assignment":{"assigned":true,"assignedAt":"2026-08-16T17:29:38.141Z"},"createdAt":"2026-08-16T17:29:37.490Z","startedAt":null,"endedAt":null,"ingest":{"rtmp":"rtmp://a.dcast.pro/live/sk_stream_x7k2m9q4w1e6r8t3y5u0pd","srt":"srt://a.dcast.pro:10080?streamid=sk_stream_x7k2m9q4w1e6r8t3y5u0pd&mode=caller&latency=500000","whip":"https://a.dcast.pro/whip/sk_stream_x7k2m9q4w1e6r8t3y5u0pd"}}}},"onAir":{"summary":"On air — `health` is an object only while isLive, and thumbnails.live is set only while isLive. Poll this shape rather than assuming the fields exist","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","title":"Season 3 opener","description":"","status":"LIVE","isLive":true,"hasSignal":true,"visibility":"PUBLIC","recording":true,"isPaid":false,"price":null,"streamKey":"sk_stream_x7k2m9q4w1e6r8t3y5u0pd","protocol":"RTMP","viewersCount":42,"peakViewers":57,"duration":0,"health":{"bitrate":4500,"fps":30,"resolution":"1920x1080","quality":"good"},"thumbnails":{"live":"https://api.dcast.pro/api/streams/b7c8d9e0f1a2b3c4d5e6f708192a3b4c/thumbnail","latest":"https://api.dcast.pro/api/streams/b7c8d9e0f1a2b3c4d5e6f708192a3b4c/thumbnail"},"playback":{"hls":"https://api.dcast.pro/api/streams/b7c8d9e0f1a2b3c4d5e6f708192a3b4c/master","embed":"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c"},"watchUrl":"https://dcast.tv/watch/b7c8d9e0f1a2b3c4d5e6f708192a3b4c","assignment":{"assigned":true,"assignedAt":"2026-08-16T17:29:38.141Z"},"createdAt":"2026-08-16T17:29:37.490Z","startedAt":"2026-08-16T18:02:11.004Z","endedAt":null,"ingest":{"rtmp":"rtmp://a.dcast.pro/live/sk_stream_x7k2m9q4w1e6r8t3y5u0pd","srt":"srt://a.dcast.pro:10080?streamid=sk_stream_x7k2m9q4w1e6r8t3y5u0pd&mode=caller&latency=500000","whip":"https://a.dcast.pro/whip/sk_stream_x7k2m9q4w1e6r8t3y5u0pd"}}}},"readOnlyKey":{"summary":"Same card read with a READ_ONLY key: streamKey is masked and every ingest URL is null, because each of those URLs contains the key","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","title":"Season 3 opener","description":"","status":"OFFLINE","isLive":false,"hasSignal":false,"visibility":"PUBLIC","recording":true,"isPaid":false,"price":null,"streamKey":"***","protocol":"RTMP","viewersCount":0,"peakViewers":0,"duration":0,"health":null,"thumbnails":{"live":null,"latest":null},"playback":{"hls":"https://api.dcast.pro/api/streams/b7c8d9e0f1a2b3c4d5e6f708192a3b4c/master","embed":"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c"},"watchUrl":"https://dcast.tv/watch/b7c8d9e0f1a2b3c4d5e6f708192a3b4c","assignment":{"assigned":true,"assignedAt":"2026-08-16T17:29:38.141Z"},"createdAt":"2026-08-16T17:29:37.490Z","startedAt":null,"endedAt":null,"ingest":{"rtmp":null,"srt":null,"whip":null}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"HTTP 404","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"notYours":{"summary":"Unknown id AND another account's id answer identically — ownership is not disclosed","value":{"success":false,"error":{"code":"NOT_FOUND","message":"Stream not found"}}}}}}},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}},"patch":{"tags":["Streams"],"operationId":"patch_streams_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update stream","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update: send only what changes; a body with nothing updatable is refused 400. `currency` and `donationsEnabled` are refused 400 UNSUPPORTED_FIELD.","properties":{"title":{"type":"string","description":"New card title, non-blank; an empty or blank title is refused 400.","minLength":1},"description":{"type":["string","null"],"description":"null or an empty string clears it. An object, a list or a boolean is refused 400."},"visibility":{"type":"string","description":"Who can watch: PUBLIC, LINK_ONLY (anyone who has the link or the embed code, not listed on the channel), PRIVATE, REGISTERED (viewer fills the registration form) or ACCESS_KEY (viewer enters the passphrase in accessKey). Case-insensitive. Any other value is refused 400 INVALID_VISIBILITY.","enum":["PUBLIC","LINK_ONLY","PRIVATE","REGISTERED","ACCESS_KEY"]},"accessKey":{"type":["string","null"],"description":"The passphrase viewers enter when the visibility after this save is ACCESS_KEY. Sent with visibility ACCESS_KEY it sets the key; sent alone on a card that is already ACCESS_KEY it changes the key and ends the passes issued with the old one. Visibility ACCESS_KEY without a key (sent or already stored) is refused 400 INVALID_ACCESS_KEY; a key on a card that is not ACCESS_KEY is refused the same way. Moving a card to another visibility drops the stored key."},"isPaid":{"type":"boolean","description":"Pay-per-view gate. false clears the price."},"price":{"type":["number","null"],"description":"Price in USD dollars, 0 to 9999. null or an empty string clears it. A positive price without isPaid sets isPaid=true.","minimum":0,"maximum":9999}},"allOf":[{"if":{"properties":{"visibility":{"type":"string","pattern":"^[Aa][Cc][Cc][Ee][Ss][Ss]_[Kk][Ee][Yy]$"}},"required":["visibility"]},"then":{"required":["accessKey"]}}]}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_ACCESS_KEY","when":"accessKey is not valid (must be a string, or is missing for visibility ACCESS_KEY).","howToFix":"Send accessKey as a string; visibility ACCESS_KEY needs the viewer password in the same call.","retryable":false},{"status":400,"code":"INVALID_VISIBILITY","when":"visibility is not one of the allowed names.","howToFix":"Use one of the names the operation lists: PUBLIC, LINK_ONLY, PRIVATE, REGISTERED, ACCESS_KEY (streams), SUBSCRIBERS and TIER_EXCLUSIVE (videos).","retryable":false},{"status":400,"code":"PRICE_ABOVE_PLAN_MAX","when":"The price of one sale is above what the plan of the account allows.","howToFix":"Send a price at or below details.maxUsd, or move the account to a plan with a higher maximum. Prices already saved are not changed.","retryable":false},{"status":400,"code":"PRICE_BELOW_PLAN_MIN","when":"The price of one sale is below what the plan of the account allows.","howToFix":"Send a price at or above details.minUsd, or move the account to a plan with a lower minimum. Prices already saved are not changed.","retryable":false},{"status":400,"code":"UNSUPPORTED_FIELD","when":"The body carries a field this operation does not support (for example currency or donationsEnabled).","howToFix":"Remove the field; the message says why or where to set it.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"streams:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}/audio-tracks":{"get":{"tags":["Streams"],"operationId":"get_streams_id_audio_tracks","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"The extra audio tracks of a stream (multi-language live) and where to publish each one","description":"Multi-language live carries several declared audio languages in one broadcast; every viewer picks the language in the player. Each entry of `tracks` has its neutral `id`, the `label` viewers see, an optional `language` (BCP-47) and `source` (`ai` when DCAST translates the original; a track you send carries none), and under `ingest` the address where its audio is published (`rtmp`, `srt`, `whip`; the card's own address built for the key `<streamKey>_<id>`), which is null for a key that may not hold the card's secrets. `allowed` says whether the account's plan carries multi-language live (PRO and VIP, `requiredPlans`), `maxTracks` is the most a card can declare. The same list the dashboard shows on the Languages tab. Owner-scoped: another account's stream answers 404. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"tracks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"language":{"type":"string","description":"Present when the track declares one."},"source":{"type":"string","enum":["ai"],"description":"Present only on a track DCAST translates (`ai`); a track you send carries none."},"ingest":{"type":"object","properties":{"rtmp":{"type":["string","null"]},"srt":{"type":["string","null"]},"whip":{"type":["string","null"]}},"description":"Where to publish this track. Every address is null for a key that may not hold the card's secrets."}}}},"maxTracks":{"type":"integer"},"allowed":{"type":"boolean","description":"True when the plan carries multi-language live; declaring a track is refused 403 otherwise."},"requiredPlans":{"type":"array","items":{"type":"string"}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-feature":"feature.multi_language_live","externalDocs":{"url":"https://dcast.pro/docs/multi-language-live","description":"Multi-language live broadcasts on PRO and VIP"}},"put":{"tags":["Streams"],"operationId":"put_streams_id_audio_tracks","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Declare the extra audio tracks of a stream, replacing the list","description":"The whole list replaces the stored one, exactly as saving the Languages tab does in the dashboard; send `audioTracks: []` to clear it. The list is checked by the dashboard's own check: at most 16 tracks, unique ids, a name of at most 64 characters, a BCP-47 `language`, and a `language` on every `ai` track; a refusal is 400 BAD_REQUEST with `field` audioTracks. Declaring at least one track needs a plan with multi-language live (PRO and VIP): otherwise 403 PLAN_UPGRADE_REQUIRED naming `requiredPlans`; clearing the list is open on every plan. On a stream that is on air the running ladder is told at once; if that delivery fails the list is stored anyway and the answer is still 200. The answer is the same object as GET /streams/{id}/audio-tracks. The key needs the `streams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"tracks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"language":{"type":"string","description":"Present when the track declares one."},"source":{"type":"string","enum":["ai"],"description":"Present only on a track DCAST translates (`ai`); a track you send carries none."},"ingest":{"type":"object","properties":{"rtmp":{"type":["string","null"]},"srt":{"type":["string","null"]},"whip":{"type":["string","null"]}},"description":"Where to publish this track. Every address is null for a key that may not hold the card's secrets."}}}},"maxTracks":{"type":"integer"},"allowed":{"type":"boolean","description":"True when the plan carries multi-language live; declaring a track is refused 403 otherwise."},"requiredPlans":{"type":"array","items":{"type":"string"}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"The whole list of the card's extra audio tracks: it replaces the stored list, and an empty list clears it (clearing is open on every plan; declaring a track needs a plan with multi-language live).","required":["audioTracks"],"properties":{"audioTracks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Neutral track id, unique in the list; the track publishes under `<streamKey>_<id>`. Starts with a letter or digit, then letters, digits, `-` and `_`, at most 64 characters in all; `pv`, `preview` and ids ending `_preview` are reserved.","minLength":1},"label":{"type":"string","description":"The name viewers see in the player, at most 64 characters, no control characters. Empty or absent: `Audio <n>` for ids like `a2`, else `Audio <id>`.","maxLength":64},"language":{"type":"string","description":"BCP-47 language of the track, for example `es` or `pt-BR`. Required for an `ai` track."},"source":{"type":"string","enum":["interpreter","ai"],"description":"`interpreter` (default): you send the track. `ai`: DCAST translates the original into `language` and publishes the track."}},"required":["id"]},"description":"At most 16 tracks.","maxItems":16}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"streams:write"}],"x-dcast-feature":"feature.multi_language_live","externalDocs":{"url":"https://dcast.pro/docs/multi-language-live","description":"Multi-language live broadcasts on PRO and VIP"}}},"/streams/{id}/backup":{"get":{"tags":["Streams"],"operationId":"get_streams_id_backup","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"The backup encoder feed of a stream: whether it is available, its address and what the program is doing","description":"A PRO or VIP broadcast takes a second encoder on a backup address and continues from it when the main feed drops. `available` is true when the card's type and the plan take a backup (a browser-camera, pull or file card never does; `planAllows` and `requiredPlans` name the plan side). `ingest` holds the backup address with the card's stream key (null for a key that may not hold the card's secrets and for a card that takes no backup). `returnMode` is what happens when the main feed returns, `programActive` and `armed` tell whether a backup program is running for this broadcast, `compatibility` is the switcher's verdict on whether the backup feed matches the main one. Owner-scoped: another account's stream answers 404. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"available":{"type":"boolean","description":"True when the card's type and the plan take a backup feed."},"planAllows":{"type":"boolean"},"requiredPlans":{"type":"array","items":{"type":"string"}},"returnMode":{"type":"string","enum":["auto","stay","manual"]},"programActive":{"type":"boolean","description":"A backup program is running for the broadcast."},"armed":{"type":"boolean","description":"The broadcast is armed for a backup feed."},"ready":{"type":"boolean"},"compatibility":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["none","compatible","incompatible","unknown"]},"mismatches":{"type":"array","items":{"type":"object","properties":{}}},"at":{"type":["string","null"],"format":"date-time"}},"description":"The switcher's verdict on whether the backup feed matches the main one; null on a card that takes no backup."},"ingest":{"type":"object","properties":{"rtmpServer":{"type":["string","null"]},"rtmp":{"type":["string","null"]},"srt":{"type":["string","null"]}},"description":"The backup address, with the card's stream key. Null for a key that may not hold the card's secrets and for a card type that takes no backup."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-feature":"feature.backup_stream","externalDocs":{"url":"https://dcast.pro/docs/backup-stream","description":"Backup encoder feed on PRO and VIP"}},"put":{"tags":["Streams"],"operationId":"put_streams_id_backup","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Choose what happens when the main feed returns after a switch to the backup","description":"Sets `returnMode`: `auto` returns to the main feed by itself, `stay` keeps the backup on air, `manual` waits for POST /streams/{id}/backup/switch. The same check as the dashboard makes: a value outside the list is 400 BAD_REQUEST, a card or plan that takes no backup is 403 BACKUP_NOT_AVAILABLE. While a backup program runs it is told the new mode; if it does not accept, the answer is 502 PROGRAM_UNAVAILABLE and the stored mode stays. The answer is the same object as GET /streams/{id}/backup. The key needs the `streams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"available":{"type":"boolean","description":"True when the card's type and the plan take a backup feed."},"planAllows":{"type":"boolean"},"requiredPlans":{"type":"array","items":{"type":"string"}},"returnMode":{"type":"string","enum":["auto","stay","manual"]},"programActive":{"type":"boolean","description":"A backup program is running for the broadcast."},"armed":{"type":"boolean","description":"The broadcast is armed for a backup feed."},"ready":{"type":"boolean"},"compatibility":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["none","compatible","incompatible","unknown"]},"mismatches":{"type":"array","items":{"type":"object","properties":{}}},"at":{"type":["string","null"],"format":"date-time"}},"description":"The switcher's verdict on whether the backup feed matches the main one; null on a card that takes no backup."},"ingest":{"type":"object","properties":{"rtmpServer":{"type":["string","null"]},"rtmp":{"type":["string","null"]},"srt":{"type":["string","null"]}},"description":"The backup address, with the card's stream key. Null for a key that may not hold the card's secrets and for a card type that takes no backup."},"program":{"type":"object","properties":{},"description":"What the running backup program answered; present only while a program runs."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["returnMode"],"properties":{"returnMode":{"type":"string","enum":["auto","stay","manual"],"description":"When the main feed comes back after a switch to the backup: `auto` returns to it by itself, `stay` keeps the backup on air, `manual` waits for POST /streams/{id}/backup/switch."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"streams:write"}],"x-dcast-feature":"feature.backup_stream","externalDocs":{"url":"https://dcast.pro/docs/backup-stream","description":"Backup encoder feed on PRO and VIP"}}},"/streams/{id}/backup/switch":{"post":{"tags":["Streams"],"operationId":"post_streams_id_backup_switch","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"summary":"Put the main feed (A) or the backup feed (B) on air","description":"Cuts the running broadcast to the feed named by `source`: `A` the main address, `B` the backup address. It works only while a backup program runs for the broadcast: otherwise 409 PROGRAM_INACTIVE; a card or plan that takes no backup is 403 BACKUP_NOT_AVAILABLE; any other `source` is 400 BAD_REQUEST. Needs the `streams:operate` permission, as starting and stopping the broadcast do. The answer is the same object as GET /streams/{id}/backup, with the program's own answer under `program`. The key needs the `streams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"available":{"type":"boolean","description":"True when the card's type and the plan take a backup feed."},"planAllows":{"type":"boolean"},"requiredPlans":{"type":"array","items":{"type":"string"}},"returnMode":{"type":"string","enum":["auto","stay","manual"]},"programActive":{"type":"boolean","description":"A backup program is running for the broadcast."},"armed":{"type":"boolean","description":"The broadcast is armed for a backup feed."},"ready":{"type":"boolean"},"compatibility":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["none","compatible","incompatible","unknown"]},"mismatches":{"type":"array","items":{"type":"object","properties":{}}},"at":{"type":["string","null"],"format":"date-time"}},"description":"The switcher's verdict on whether the backup feed matches the main one; null on a card that takes no backup."},"ingest":{"type":"object","properties":{"rtmpServer":{"type":["string","null"]},"rtmp":{"type":["string","null"]},"srt":{"type":["string","null"]}},"description":"The backup address, with the card's stream key. Null for a key that may not hold the card's secrets and for a card type that takes no backup."},"program":{"type":"object","properties":{},"description":"What the running backup program answered."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["source"],"properties":{"source":{"type":"string","enum":["A","B"],"description":"The feed to put on air: `A` the main address, `B` the backup address. Only while a backup program runs."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"streams:operate"}],"x-dcast-feature":"feature.backup_stream","externalDocs":{"url":"https://dcast.pro/docs/backup-stream","description":"Backup encoder feed on PRO and VIP"}}},"/streams/{id}/buyers/confirm":{"post":{"tags":["Streams"],"operationId":"post_streams_id_buyers_confirm","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"summary":"Import stream buyers from CSV","description":"Uses the cabinet buyer import for content owned by the API key account. Requires streams:write. Missing and foreign content both return 404 TARGET_NOT_FOUND. Call preview first and submit its digest with the same CSV. Addresses are trimmed, lowercased and deduplicated. The account, content kind, content id and normalized email identify one receipt/key across cabinet and API calls. Reordered, repeated and overlapping imports reuse existing keys and email jobs; revoked, expired or deleted keys are not restored. The shared account quota allows 3 confirms issuing new keys per hour and 2000 new recipients per 24 hours across all content and API keys. Replays spend no issuance quota. Email enqueue concurrency is 5. queued means queued, accepted means gateway acceptance, pending means delivery can be retried by confirming again, unknown means queue evidence is missing; none guarantees inbox delivery. sendEmail=false returns not_sent. Retry-After accompanies quota refusals. The key needs the `streams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Import result with per-recipient delivery state.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"issued":{"type":"integer"},"existing":{"type":"integer"},"recipients":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"state":{"type":"string","enum":["not_sent","unavailable","pending","accepted","failed","queued","unknown"]}}}}}}}}},"400":{"description":"CSV_EMPTY, CSV_MALFORMED, CSV_TOO_LARGE, CSV_TOO_MANY or CSV_PREVIEW_REQUIRED.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"TARGET_NOT_FOUND: content is missing or belongs to another account.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}},"429":{"description":"BUYER_CSV_HOURLY_LIMIT or BUYER_CSV_DAILY_LIMIT; the API key rate limit also applies.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"CSV_IMPORT_FAILED: import could not be completed.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}}},"x-dcast-side-effect":"sends email","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["csv","digest"],"properties":{"csv":{"type":"string","description":"CSV text, up to 256 KiB and 1000 nonblank data rows before deduplication. Optional email/e-mail header; comma or semicolon delimiter. Invalid addresses are reported by physical row and excluded."},"digest":{"type":"string","description":"Digest from preview for this account, content and exact CSV text."},"sendEmail":{"type":"boolean","default":true,"description":"Send each personal key by email. false issues keys without sending mail."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"streams:write"}],"x-dcast-feature":"feature.access_keys","externalDocs":{"url":"https://dcast.pro/docs/paid-catalog","description":"Invite viewers with access keys"}}},"/streams/{id}/buyers/preview":{"post":{"tags":["Streams"],"operationId":"post_streams_id_buyers_preview","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Preview import of stream buyers from CSV","description":"Uses the cabinet buyer import for content owned by the API key account. Requires streams:write. Missing and foreign content both return 404 TARGET_NOT_FOUND. Validates and returns normalized addresses, duplicate count, invalid row numbers and a digest; creates no keys and sends no email. Review these results before calling confirm. At least one valid address is required to confirm. The key needs the `streams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"CSV preview, without side effects.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"emails":{"type":"array","items":{"type":"string"}},"invalidRows":{"type":"array","items":{"type":"integer"}},"duplicates":{"type":"integer"},"total":{"type":"integer"},"digest":{"type":"string"}}}}}},"400":{"description":"CSV_EMPTY, CSV_MALFORMED, CSV_TOO_LARGE, CSV_TOO_MANY or CSV_PREVIEW_REQUIRED.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"TARGET_NOT_FOUND: content is missing or belongs to another account.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}},"429":{"description":"BUYER_CSV_HOURLY_LIMIT or BUYER_CSV_DAILY_LIMIT; the API key rate limit also applies.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"CSV_IMPORT_FAILED: import could not be completed.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["csv"],"properties":{"csv":{"type":"string","description":"CSV text, up to 256 KiB and 1000 nonblank data rows before deduplication. Optional email/e-mail header; comma or semicolon delimiter. Invalid addresses are reported by physical row and excluded."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"streams:write"}],"x-dcast-feature":"feature.access_keys","externalDocs":{"url":"https://dcast.pro/docs/paid-catalog","description":"Invite viewers with access keys"}}},"/streams/{id}/chat":{"get":{"tags":["Streams"],"operationId":"get_streams_id_chat","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List chat messages of a stream","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `comments:read` permission or a wider one of the same area such as `comments:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"limit","in":"query","required":false,"description":"Page size, default 50, at most 200; a larger value is lowered to 200.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"since","in":"query","required":false,"description":"Only messages created after this time, oldest first. Without it the newest messages come first.","schema":{"type":"string","format":"date-time"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}},"pagination":{"type":"object","properties":{"limit":{"type":"integer"},"order":{"type":"string","enum":["asc","desc"]},"nextCursor":{"type":["string","null"]}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"comments:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_chat","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live chat on a broadcast, with moderation"}},"post":{"tags":["Streams"],"operationId":"post_streams_id_chat","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Post a chat message to a stream","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:moderate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"$ref":"#/components/responses/Success","description":"Created. Body: the success envelope with the new resource in `data`."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"One of text / content / message is required and must be non-empty. At most 60 posts per minute per key and stream, 1000 per day per stream.","properties":{"text":{"type":"string","description":"The message, cut to 2000 characters."},"content":{"type":"string","description":"Alias of `text`."},"message":{"type":"string","description":"Alias of `text`."},"authorName":{"type":"string","description":"Name shown with the message, cut to 80 characters; defaults to your channel name."},"username":{"type":"string","description":"Alias of authorName.","maxLength":80}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"streams:moderate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_chat","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live chat on a broadcast, with moderation"}}},"/streams/{id}/chat/{messageId}":{"delete":{"tags":["Streams"],"operationId":"delete_streams_id_chat_messageId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete chat (streams)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:moderate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:moderate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_chat","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live chat on a broadcast, with moderation"}}},"/streams/{id}/chat/moderation/{messageId}/approve":{"post":{"tags":["Streams"],"operationId":"post_streams_id_chat_moderation_messageId_approve","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Approve moderation (chat)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:moderate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `NOT_PENDING` (The chat message is not waiting for moderation. Read the moderation queue.) `QUEUE_ORDER` (An older message in the moderation queue must be handled first. Approve or reject the oldest pending message first.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":409,"code":"NOT_PENDING","when":"The chat message is not waiting for moderation.","howToFix":"Read the moderation queue.","retryable":false},{"status":409,"code":"QUEUE_ORDER","when":"An older message in the moderation queue must be handled first.","howToFix":"Approve or reject the oldest pending message first.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"streams:moderate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_chat","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live chat on a broadcast, with moderation"}}},"/streams/{id}/chat/moderation/{messageId}/reject":{"post":{"tags":["Streams"],"operationId":"post_streams_id_chat_moderation_messageId_reject","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Reject moderation (chat)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:moderate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `NOT_PENDING` (The chat message is not waiting for moderation. Read the moderation queue.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Why the message was rejected, cut to 500 characters."}}}}}},"x-dcast-errors":[{"status":409,"code":"NOT_PENDING","when":"The chat message is not waiting for moderation.","howToFix":"Read the moderation queue.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"streams:moderate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_chat","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live chat on a broadcast, with moderation"}}},"/streams/{id}/chat/moderation/queue":{"get":{"tags":["Streams"],"operationId":"get_streams_id_chat_moderation_queue","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get queue (moderation)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:moderate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"limit","in":"query","required":false,"description":"Page size, default 100, at most 300; a larger value is refused 400 INVALID_LIMIT.","schema":{"type":"integer","minimum":1,"maximum":300,"default":100}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:moderate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_chat","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live chat on a broadcast, with moderation"}}},"/streams/{id}/chat/stream":{"get":{"tags":["Streams"],"operationId":"get_streams_id_chat_stream","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Follow stream chat live","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `comments:read` permission or a wider one of the same area such as `comments:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":429,"code":"SSE_PER_KEY_CAP","when":"More concurrent event-stream connections than the cap per key (25).","howToFix":"Close idle streams and repeat.","retryable":true}],"x-dcast-requires":[{"kind":"permission","permission":"comments:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_chat","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live chat on a broadcast, with moderation"}}},"/streams/{id}/embed":{"get":{"tags":["Streams"],"operationId":"get_streams_id_embed","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Embed code for a stream card — the player, the live chat, and the two in one block","description":"The codes the cabinet's Embed window shows, ready to paste: `responsive` (the default: the player filling the width of its container at 16:9, no fixed size), `iframe` (fixed-size player, `width`/`height` query overrides it), `chat.iframe` (the live chat, a separate 360x405 column that is as high as the player when the code is pasted as returned, with its small height script) and `withChat` (the player and the chat in one self-contained block filling the width of its container: from a 900px wide window the player on the left at 16:9 and the chat on the right at the same height, below that the player on top and the chat under it, as wide and as high as the player; no stylesheet to load, its classes all start with `dcast-pc-`). The chat opens light; on a dark site ask for `theme=dark` (or `auto` to follow the visitor's system setting, `light` to say it outright): `chat.iframe`, `chat.url` and `withChat` then carry `?theme=` on the chat address, and any other value answers 400. Paste them as returned, without an extra frame or a fixed height around the player, and never edit the chat address by hand: the theme is asked for, not edited in. The addresses are on the account's own site — a verified custom domain, else an active subdomain, else dcast.tv. The iframes load only on sites in the account's embed allowlist (PATCH /me/embed-allowlist; empty = every site) and show only what the card's access mode lets the viewer open. Owner-scoped: another account's card answers 404. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"width","in":"query","required":false,"description":"Player embed width in pixels; above 4096 is lowered to 4096, a value that is not a positive number is ignored. Alone, it sizes the height at 16:9. Default: 720.","schema":{"type":"integer","minimum":1}},{"name":"height","in":"query","required":false,"description":"Player embed height in pixels; above 4096 is lowered to 4096, a value that is not a positive number is ignored. Alone, it sizes the width at 16:9. Default: 405.","schema":{"type":"integer","minimum":1}},{"name":"theme","in":"query","required":false,"description":"The skin of the live chat: `dark` for a dark site, `light`, or `auto` to follow the visitor's system setting. It puts `?theme=` on the chat address in `chat.iframe`, `chat.url` and `withChat`, so paste the answer as returned instead of editing the code. Case-insensitive; any other value is refused 400. Default: no theme in the address, the chat opens light.","schema":{"type":"string","enum":["light","dark","auto"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"embed":{"summary":"Embed code for a stream card — the player (`responsive` fills a container, the default; `iframe` is fixed-size), the live chat (`chat.iframe`) and both in one block (`withChat`)","value":{"success":true,"data":{"streamId":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","responsive":"<div style=\"position:relative;width:100%;padding-bottom:56.25%;height:0;border-radius:16px;overflow:hidden;\"><iframe src=\"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;border:0;\" title=\"Video player\" frameborder=\"0\" allow=\"autoplay; fullscreen; encrypted-media; picture-in-picture; payment; clipboard-write\" allowfullscreen webkitallowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\"></iframe></div>","iframe":"<iframe src=\"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c\" width=\"720\" height=\"405\" title=\"Video player\" frameborder=\"0\" allow=\"autoplay; fullscreen; encrypted-media; picture-in-picture; payment; clipboard-write\" allowfullscreen webkitallowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\" style=\"border:0;border-radius:16px;overflow:hidden;max-width:100%;height:auto;aspect-ratio:16/9\"></iframe>","url":"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c","width":720,"height":405,"aspectRatio":"16/9","chat":{"iframe":"<iframe src=\"https://dcast.tv/embed/chat/b7c8d9e0f1a2b3c4d5e6f708192a3b4c\" width=\"360\" height=\"405\" title=\"Live chat\" frameborder=\"0\" allow=\"autoplay; clipboard-write\" referrerpolicy=\"strict-origin-when-cross-origin\" style=\"border:0;border-radius:16px;overflow:hidden;max-width:100%;height:min(405px,56.25vw)\"></iframe><script src=\"https://dcast.tv/player/embed-height-sync.js\" async></script>","url":"https://dcast.tv/embed/chat/b7c8d9e0f1a2b3c4d5e6f708192a3b4c"},"withChat":"<div class=\"dcast-pc-root\" style=\"box-sizing:border-box;width:100%;\"><style>.dcast-pc-row{display:block}.dcast-pc-player{position:relative;width:100%}.dcast-pc-chat{position:relative;width:100%;height:0;padding-bottom:56.25%;margin-top:16px}@media (min-width:900px){.dcast-pc-row{display:flex;flex-direction:row;align-items:stretch}.dcast-pc-player{flex:0 0 auto;width:calc(100% - 376px)}.dcast-pc-chat{flex:0 0 360px;width:360px;height:auto;padding-bottom:0;margin-top:0;margin-left:16px}}</style><svg class=\"dcast-pc-span\" aria-hidden=\"true\" focusable=\"false\" style=\"display:block;width:100vw;max-width:100%;height:0;\"></svg><div class=\"dcast-pc-row\"><div class=\"dcast-pc-player\"><div style=\"position:relative;width:100%;height:0;padding-bottom:56.25%;border-radius:16px;overflow:hidden;\"><iframe src=\"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;border:0;\" title=\"Video player\" frameborder=\"0\" allow=\"autoplay; fullscreen; encrypted-media; picture-in-picture; payment; clipboard-write\" allowfullscreen webkitallowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\"></iframe></div></div><div class=\"dcast-pc-chat\" style=\"border-radius:16px;overflow:hidden;\"><iframe src=\"https://dcast.tv/embed/chat/b7c8d9e0f1a2b3c4d5e6f708192a3b4c\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;border:0;\" title=\"Live chat\" frameborder=\"0\" allow=\"autoplay; clipboard-write\" referrerpolicy=\"strict-origin-when-cross-origin\"></iframe></div></div></div>"}}},"darkChat":{"summary":"The same card asked with `?theme=dark`: `chat.iframe`, `chat.url` and `withChat` carry `?theme=dark` on the chat address","value":{"success":true,"data":{"streamId":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","responsive":"<div style=\"position:relative;width:100%;padding-bottom:56.25%;height:0;border-radius:16px;overflow:hidden;\"><iframe src=\"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;border:0;\" title=\"Video player\" frameborder=\"0\" allow=\"autoplay; fullscreen; encrypted-media; picture-in-picture; payment; clipboard-write\" allowfullscreen webkitallowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\"></iframe></div>","iframe":"<iframe src=\"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c\" width=\"720\" height=\"405\" title=\"Video player\" frameborder=\"0\" allow=\"autoplay; fullscreen; encrypted-media; picture-in-picture; payment; clipboard-write\" allowfullscreen webkitallowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\" style=\"border:0;border-radius:16px;overflow:hidden;max-width:100%;height:auto;aspect-ratio:16/9\"></iframe>","url":"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c","width":720,"height":405,"aspectRatio":"16/9","chat":{"iframe":"<iframe src=\"https://dcast.tv/embed/chat/b7c8d9e0f1a2b3c4d5e6f708192a3b4c?theme=dark\" width=\"360\" height=\"405\" title=\"Live chat\" frameborder=\"0\" allow=\"autoplay; clipboard-write\" referrerpolicy=\"strict-origin-when-cross-origin\" style=\"border:0;border-radius:16px;overflow:hidden;max-width:100%;height:min(405px,56.25vw)\"></iframe><script src=\"https://dcast.tv/player/embed-height-sync.js\" async></script>","url":"https://dcast.tv/embed/chat/b7c8d9e0f1a2b3c4d5e6f708192a3b4c?theme=dark"},"withChat":"<div class=\"dcast-pc-root\" style=\"box-sizing:border-box;width:100%;\"><style>.dcast-pc-row{display:block}.dcast-pc-player{position:relative;width:100%}.dcast-pc-chat{position:relative;width:100%;height:0;padding-bottom:56.25%;margin-top:16px}@media (min-width:900px){.dcast-pc-row{display:flex;flex-direction:row;align-items:stretch}.dcast-pc-player{flex:0 0 auto;width:calc(100% - 376px)}.dcast-pc-chat{flex:0 0 360px;width:360px;height:auto;padding-bottom:0;margin-top:0;margin-left:16px}}</style><svg class=\"dcast-pc-span\" aria-hidden=\"true\" focusable=\"false\" style=\"display:block;width:100vw;max-width:100%;height:0;\"></svg><div class=\"dcast-pc-row\"><div class=\"dcast-pc-player\"><div style=\"position:relative;width:100%;height:0;padding-bottom:56.25%;border-radius:16px;overflow:hidden;\"><iframe src=\"https://dcast.tv/embed/b7c8d9e0f1a2b3c4d5e6f708192a3b4c\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;border:0;\" title=\"Video player\" frameborder=\"0\" allow=\"autoplay; fullscreen; encrypted-media; picture-in-picture; payment; clipboard-write\" allowfullscreen webkitallowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\"></iframe></div></div><div class=\"dcast-pc-chat\" style=\"border-radius:16px;overflow:hidden;\"><iframe src=\"https://dcast.tv/embed/chat/b7c8d9e0f1a2b3c4d5e6f708192a3b4c?theme=dark\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;border:0;\" title=\"Live chat\" frameborder=\"0\" allow=\"autoplay; clipboard-write\" referrerpolicy=\"strict-origin-when-cross-origin\"></iframe></div></div></div>"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-feature":"feature.embed_player","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Embed your player on any website, or only on the sites you choose"}}},"/streams/{id}/end":{"post":{"tags":["Streams"],"operationId":"post_streams_id_end","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Close the broadcast (alias of POST /streams/{id}/stop)","description":"Same handler, same request and same response as POST /streams/{id}/stop, and both check the `streams:operate` permission. The key needs the `streams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"stopped":{"summary":"Stopped after a real broadcast — `endedAt` is present because the card had started","value":{"success":true,"data":{"message":"Broadcast stopped","isLive":false,"hasSignal":true,"endedAt":"2026-08-16T18:44:52.310Z"}}},"stoppedNeverStarted":{"summary":"Stopping a card that never started is accepted, and `endedAt` is ABSENT — do not read it unconditionally","value":{"success":true,"data":{"message":"Broadcast stopped","isLive":false,"hasSignal":false}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:operate"}],"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}/file-broadcast":{"get":{"tags":["Streams"],"operationId":"get_streams_id_file_broadcast","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"The file broadcast settings of a FILE stream: source video, loop, playback window and scheduled start","description":"A stream created with `protocol: FILE` plays a video instead of taking an encoder. This reads what the dashboard shows on the stream from a file: `videoId` (the library video it plays, null for a card made with `fileSourceUrl`), `loopEnabled`, the playback window `startTime` and `endTime` in seconds, `scheduledStartAt` (when it starts by itself, null when nothing is scheduled), `ready` (a source is set, so Start will work) and `isLive`. A stream whose protocol is not FILE answers 400 BAD_REQUEST only on the writes; this read answers its (empty) settings. Owner-scoped: another account's stream answers 404. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"videoId":{"type":["string","null"],"description":"The library video the card plays; null for a card made with `fileSourceUrl`."},"fileSourceUrl":{"type":["string","null"],"description":"The address a card made with `fileSourceUrl` plays; null for a library video."},"loopEnabled":{"type":"boolean","description":"The video repeats until the broadcast is stopped."},"startTime":{"type":"number","description":"Playback start, seconds from the beginning of the file."},"endTime":{"type":["number","null"],"description":"Playback end, seconds from the beginning of the file; null plays to the end."},"scheduledStartAt":{"type":["string","null"],"description":"The moment the broadcast starts by itself; null when none is scheduled.","format":"date-time"},"ready":{"type":"boolean","description":"The card has a source and can be started."},"isLive":{"type":"boolean","description":"The broadcast is on air now."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-feature":"feature.file_broadcast","externalDocs":{"url":"https://dcast.pro/docs/file-broadcast","description":"Broadcast a video from your library as a live stream: on a loop, or at a set time, through the API"}},"put":{"tags":["Streams"],"operationId":"put_streams_id_file_broadcast","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Choose the video a FILE stream plays, with loop and playback window, replacing the settings","description":"The way to run a 24/7 channel or a repeated programme: set the source here, then start it with POST /streams/{id}/start and stop it with POST /streams/{id}/stop. `videoId` (required) is a video of your own library; the whole settings object is replaced, and a field left out takes its default (`loopEnabled` false, `startTime` 0, `endTime` null = to the end). With `loopEnabled: true` the video repeats until you stop the broadcast, and the stream is kept as a 24/7 broadcast without recording (a rolling live window, no recording, no VOD) because every circle repeats a video you already hold; that mode is taken while the stream is off air. On a stream that is on air the source cannot change (409 FILE_SOURCE_LOCKED_ON_AIR); a loop switch is passed to the running broadcast and the answer says in `loopOnAir.applied` whether it took it. Refused with the dashboard's own checks: a video that is not yours or is the source of another card is 403 FILE_SOURCE_FORBIDDEN; a stream that has used its free session is 403 FREE_PLAN_CARD_SESSION_USED; a stream whose protocol is not FILE is 400 BAD_REQUEST; a number that is not a valid window is 400 BAD_REQUEST naming the field; `playbackSpeed`, `filePath` and `sourceUrl` are 400 UNSUPPORTED_FIELD (a file broadcast plays at its original speed from a library video). Starting is judged by the same limits as the dashboard: the plan's number of broadcasts at once and its live-duration cap apply at POST /streams/{id}/start. Needs the `streams:write` permission. The answer is the same object as GET /streams/{id}/file-broadcast. The key needs the `streams:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"videoId":{"type":["string","null"],"description":"The library video the card plays; null for a card made with `fileSourceUrl`."},"fileSourceUrl":{"type":["string","null"],"description":"The address a card made with `fileSourceUrl` plays; null for a library video."},"loopEnabled":{"type":"boolean","description":"The video repeats until the broadcast is stopped."},"startTime":{"type":"number","description":"Playback start, seconds from the beginning of the file."},"endTime":{"type":["number","null"],"description":"Playback end, seconds from the beginning of the file; null plays to the end."},"scheduledStartAt":{"type":["string","null"],"description":"The moment the broadcast starts by itself; null when none is scheduled.","format":"date-time"},"ready":{"type":"boolean","description":"The card has a source and can be started."},"isLive":{"type":"boolean","description":"The broadcast is on air now."},"loopOnAir":{"type":"object","properties":{"applied":{"type":"boolean","description":"True when the running broadcast took the loop change; false means it applies from the next start."}},"description":"Present only when the loop was switched while the broadcast is on air."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["videoId"],"properties":{"videoId":{"type":"string","description":"The video of your library the card plays. It must be yours and finished processing; the card plays it from the start of its own file."},"loopEnabled":{"type":"boolean","description":"Play the video again and again until you stop the broadcast. A looped broadcast is kept as a 24/7 broadcast without recording (a rolling live window, no recording and no VOD), because every circle repeats a video you already hold. Default false."},"startTime":{"type":"number","description":"Where playback starts, in seconds from the beginning of the file. Default 0.","minimum":0},"endTime":{"type":["number","null"],"description":"Where playback ends, in seconds from the beginning of the file, greater than `startTime`. Null (default) plays to the end.","minimum":0}}}}}},"x-dcast-errors":[{"status":400,"code":"UNSUPPORTED_FIELD","when":"The body carries a field this operation does not support (for example currency or donationsEnabled).","howToFix":"Remove the field; the message says why or where to set it.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"streams:write"}],"x-dcast-feature":"feature.file_broadcast","externalDocs":{"url":"https://dcast.pro/docs/file-broadcast","description":"Broadcast a video from your library as a live stream: on a loop, or at a set time, through the API"}}},"/streams/{id}/file-broadcast/schedule":{"delete":{"tags":["Streams"],"operationId":"delete_streams_id_file_broadcast_schedule","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Cancel the scheduled start of a FILE stream","description":"Clears the time set by PUT /streams/{id}/file-broadcast/schedule. Calling it when nothing is scheduled is not an error: the answer is 200 with `cancelled: false`. Needs the `streams:operate` permission. The answer is the same object as GET /streams/{id}/file-broadcast, with `cancelled`. The key needs the `streams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"videoId":{"type":["string","null"],"description":"The library video the card plays; null for a card made with `fileSourceUrl`."},"fileSourceUrl":{"type":["string","null"],"description":"The address a card made with `fileSourceUrl` plays; null for a library video."},"loopEnabled":{"type":"boolean","description":"The video repeats until the broadcast is stopped."},"startTime":{"type":"number","description":"Playback start, seconds from the beginning of the file."},"endTime":{"type":["number","null"],"description":"Playback end, seconds from the beginning of the file; null plays to the end."},"scheduledStartAt":{"type":["string","null"],"description":"The moment the broadcast starts by itself; null when none is scheduled.","format":"date-time"},"ready":{"type":"boolean","description":"The card has a source and can be started."},"isLive":{"type":"boolean","description":"The broadcast is on air now."},"cancelled":{"type":"boolean","description":"True when a scheduled start was cleared; false when none was pending."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:operate"}],"x-dcast-feature":"feature.file_broadcast","externalDocs":{"url":"https://dcast.pro/docs/file-broadcast","description":"Broadcast a video from your library as a live stream: on a loop, or at a set time, through the API"}},"put":{"tags":["Streams"],"operationId":"put_streams_id_file_broadcast_schedule","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Start a FILE stream by itself at a set time","description":"Arms the start of a FILE stream for `scheduledStartAt` (ISO 8601, at most 5 minutes in the past). At that moment the platform presses Start for you through the same go-live as POST /streams/{id}/start, so the plan's limits are judged then; if Start is refused at that moment the stream stays off air. The stream needs its source first: without `videoId` set by PUT /streams/{id}/file-broadcast the answer is 409 FILE_SOURCE_REQUIRED; a stream that is already on air is 409 BROADCAST_ON_AIR; a stream that has used its free session is 403 FREE_PLAN_CARD_SESSION_USED. A new call replaces the earlier time. Needs the `streams:operate` permission, as starting does. The answer is the same object as GET /streams/{id}/file-broadcast. The key needs the `streams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"videoId":{"type":["string","null"],"description":"The library video the card plays; null for a card made with `fileSourceUrl`."},"fileSourceUrl":{"type":["string","null"],"description":"The address a card made with `fileSourceUrl` plays; null for a library video."},"loopEnabled":{"type":"boolean","description":"The video repeats until the broadcast is stopped."},"startTime":{"type":"number","description":"Playback start, seconds from the beginning of the file."},"endTime":{"type":["number","null"],"description":"Playback end, seconds from the beginning of the file; null plays to the end."},"scheduledStartAt":{"type":["string","null"],"description":"The moment the broadcast starts by itself; null when none is scheduled.","format":"date-time"},"ready":{"type":"boolean","description":"The card has a source and can be started."},"isLive":{"type":"boolean","description":"The broadcast is on air now."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["scheduledStartAt"],"properties":{"scheduledStartAt":{"type":"string","description":"When the broadcast starts by itself, ISO 8601 with a time zone. At most 5 minutes in the past. The card must already have its source video (PUT /streams/{id}/file-broadcast).","format":"date-time"}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"streams:operate"}],"x-dcast-feature":"feature.file_broadcast","externalDocs":{"url":"https://dcast.pro/docs/file-broadcast","description":"Broadcast a video from your library as a live stream: on a loop, or at a set time, through the API"}}},"/streams/{id}/preview-url":{"get":{"tags":["Streams"],"operationId":"get_streams_id_preview_url","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get a preview link for a stream","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Preview URL ready.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"httpFlvUrl":{"type":["string","null"],"description":"Playable address; null while the preview is not ready (the call then answers 202)."},"expiresAt":{"type":["string","null"],"format":"date-time"},"isLive":{"type":"boolean"},"reason":{"type":"string","description":"Present while the preview is not ready: why."}}}}}}}},"202":{"$ref":"#/components/responses/Success","description":"Not ready yet: `httpFlvUrl` is null and `reason` says why (stream_not_publishing, preview_warming_up). Poll again."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}/preview.flv":{"get":{"tags":["Streams"],"operationId":"get_streams_id_preview_flv","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Watch the live preview of a stream","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"token","in":"query","required":true,"schema":{"type":"string","minLength":16,"maxLength":512}}],"security":[{"previewToken":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `LINKED_RESTREAM_HAS_NO_OWN_PREVIEW` (A linked restream shows the preview of its source stream. Request the preview of the source stream instead.) `NOT_PUBLISHING` (The stream receives no signal. Start the encoder, check get_stream_status, then repeat.) `NOT_READY` (The thing asked for is not ready yet (the preview is still being prepared, the video is still processing). Wait a few seconds and repeat.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `NOT_READY` (The thing asked for is not ready yet (the preview is still being prepared, the video is still processing). Wait a few seconds and repeat.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":401,"code":"INVALID_TOKEN","when":"The token in the path or query (upload token, preview token, or the playback pass on a master address) does not belong to this resource, expired or was altered.","howToFix":"Request a fresh token from the operation that hands it out (for an upload: POST /videos/upload; for a playback pass: the access-token address of the card) and use it unchanged.","retryable":false},{"status":409,"code":"LINKED_RESTREAM_HAS_NO_OWN_PREVIEW","when":"A linked restream shows the preview of its source stream.","howToFix":"Request the preview of the source stream instead.","retryable":false},{"status":409,"code":"NOT_PUBLISHING","when":"The stream receives no signal.","howToFix":"Start the encoder, check get_stream_status, then repeat.","retryable":false},{"status":409,"code":"NOT_READY","when":"The thing asked for is not ready yet (the preview is still being prepared, the video is still processing).","howToFix":"Wait a few seconds and repeat.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"NOT_READY","when":"The thing asked for is not ready yet (the preview is still being prepared, the video is still processing).","howToFix":"Wait a few seconds and repeat.","retryable":true,"retryAfterSeconds":5}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}/record/start":{"post":{"tags":["Streams"],"operationId":"post_streams_id_record_start","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Start record (streams)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"startedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/streams/{id}/record/status":{"get":{"tags":["Streams"],"operationId":"get_streams_id_record_status","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get status (record)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"recording":{"type":["object","null"],"properties":{}},"stream":{"type":"object","properties":{}},"download":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/streams/{id}/record/stop":{"post":{"tags":["Streams"],"operationId":"post_streams_id_record_stop","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Stop record (streams)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"mkvPath":{},"status":{"type":"string","enum":["completed"]}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:operate"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/streams/{id}/recording/download":{"get":{"tags":["Streams"],"operationId":"get_streams_id_recording_download","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get download (recording)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/streams/{id}/recording/qualities":{"get":{"tags":["Streams"],"operationId":"get_streams_id_recording_qualities","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List qualities (recording)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.recording_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream recording API: choose which broadcasts are recorded and download the files"}}},"/streams/{id}/start":{"post":{"tags":["Streams"],"operationId":"post_streams_id_start","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"summary":"Open the broadcast — viewers can now play it","description":"Takes no body. Point an encoder at the ingest URL first: this call starts the viewer-facing ladder for whatever is arriving, and answers 502 TRANSCODER_START_FAILED if that could not be started. Calling it again on an already started card is accepted and re-answers the same shape. The key needs the `streams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"isLive":{"type":"boolean"},"hasSignal":{"type":"boolean"},"status":{"type":"string","enum":["INACTIVE","HAS_SIGNAL","STARTING","ACTIVE","STOPPING","ERROR"],"description":"The stored stream state, for example ACTIVE; `status` on GET /streams/{id} is the derived LIVE or OFFLINE instead."},"startedAt":{"type":["string","null"],"format":"date-time"},"message":{"type":"string"},"alreadyLive":{"type":"boolean","description":"Present and true when the card was already on air."}}}}},"examples":{"started":{"summary":"On air. hasSignal stays true and isLive flips — that pair is the go-live button state","value":{"success":true,"data":{"id":"b7c8d9e0f1a2b3c4d5e6f708192a3b4c","isLive":true,"hasSignal":true,"status":"ACTIVE","startedAt":"2026-08-16T18:02:11.004Z","message":"Broadcast started"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"HTTP 403","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"quotaExceeded":{"summary":"The monthly stream-hours allowance is spent. `quota` carries the counters this was decided from","value":{"success":false,"error":{"code":"QUOTA_EXCEEDED","message":"Monthly stream-hours allowance exceeded for your plan. Upgrade your plan or wait for the next billing period.","dimension":"streams","quota":{"used":100,"limit":100,"isExceeded":true}}}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"planStreamLimit":{"summary":"The plan's number of concurrent live streams is already on air. `limit` is the plan's allowance, `current` how many are live now","value":{"success":false,"error":{"code":"PLAN_STREAM_LIMIT_REACHED","message":"Your plan allows 1 concurrent live stream. Stop another live stream or upgrade your plan to go live.","limit":1,"current":1}}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:operate"}],"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}/status":{"get":{"tags":["Streams"],"operationId":"get_streams_id_status","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get status of stream","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"status":{"type":"string","enum":["LIVE","OFFLINE"]},"isLive":{"type":"boolean"},"hasSignal":{"type":"boolean"},"viewersCount":{"type":"integer"},"startedAt":{"type":["string","null"],"format":"date-time"},"endedAt":{"type":["string","null"],"format":"date-time"},"durationSeconds":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}/status/stream":{"get":{"tags":["Streams"],"operationId":"get_streams_id_status_stream","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Follow stream status live","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":429,"code":"SSE_PER_KEY_CAP","when":"More concurrent event-stream connections than the cap per key (25).","howToFix":"Close idle streams and repeat.","retryable":true}],"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}/stop":{"post":{"tags":["Streams"],"operationId":"post_streams_id_stop","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Close the broadcast (alias: POST /streams/{id}/end)","description":"Takes no body. Ends the viewer-facing broadcast; the card and its key survive, so the same card can go live again. `hasSignal` may still be true afterwards when the encoder keeps publishing — that is the card back in the \"connected, not on air\" state, not a failed stop. `endedAt` is present only when the card had actually started. The key needs the `streams:operate` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"stopped":{"summary":"Stopped after a real broadcast — `endedAt` is present because the card had started","value":{"success":true,"data":{"message":"Broadcast stopped","isLive":false,"hasSignal":true,"endedAt":"2026-08-16T18:44:52.310Z"}}},"stoppedNeverStarted":{"summary":"Stopping a card that never started is accepted, and `endedAt` is ABSENT — do not read it unconditionally","value":{"success":true,"data":{"message":"Broadcast stopped","isLive":false,"hasSignal":false}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:operate"}],"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}/thumbnail":{"get":{"tags":["Streams"],"operationId":"get_streams_id_thumbnail","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get thumbnail of stream","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"file","in":"query","required":false,"description":"Thumbnail file. Wins over `variant`.","schema":{"type":"string","enum":["thumbnail.jpg","thumbnail_6.jpg","thumbnail_11.jpg"]}},{"name":"variant","in":"query","required":false,"description":"Thumbnail index 0 to 2 (0 thumbnail.jpg, 1 thumbnail_6.jpg, 2 thumbnail_11.jpg); out of range gives 0. Default: the card's chosen preview.","schema":{"type":"integer","minimum":0,"maximum":2}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":400,"code":"INVALID_FILE","when":"file is not one of the allowed names.","howToFix":"Use one of the names the message lists.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}/viewers":{"get":{"tags":["Streams"],"operationId":"get_streams_id_viewers","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List viewers (streams)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"limit","in":"query","required":false,"description":"Page size, default 50, at most 200; a larger value is lowered to 200.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"period","in":"query","required":false,"description":"Look-back window in days, written like `7d`, `30d` or `90d` (read with parseInt; an unreadable or non-positive value means 30; a value above 366 is applied as 366). It bounds `totalViews`, `uniqueViewers` and `recentSessions`. In the answer, `data.period` is the window actually applied, like `30d`.","schema":{"type":"string","default":"30d"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"streamId":{"type":"string"},"isLive":{"type":"boolean"},"currentViewers":{"type":"integer","description":"Viewers playing right now."},"period":{"type":"string","description":"The look-back window that was applied, like `30d`."},"totalViews":{"type":"integer","description":"Qualified playback sessions in the window, as the cabinet counts them on the broadcast card."},"uniqueViewers":{"type":"integer","description":"Distinct viewers behind those views."},"recentSessions":{"type":"array","items":{"type":"object","properties":{"country":{"type":["string","null"],"description":"Country name; null when the place of the session is unknown."},"countryCode":{"type":["string","null"],"description":"Two-letter country code; null when unknown."},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"watchDurationSec":{"type":["integer","null"],"description":"Seconds the viewer watched; null when it could not be measured, which is not zero."},"viewedAt":{"type":["string","null"],"description":"When the session began, ISO 8601 UTC."}},"description":"One of the sessions counted in `totalViews`, newest first; at most `limit` of them."}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/streams/{id}/viewers/stream":{"get":{"tags":["Streams"],"operationId":"get_streams_id_viewers_stream","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Follow stream viewers live","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `streams:read` permission or a wider one of the same area such as `streams:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":429,"code":"SSE_PER_KEY_CAP","when":"More concurrent event-stream connections than the cap per key (25).","howToFix":"Close idle streams and repeat.","retryable":true}],"x-dcast-requires":[{"kind":"permission","permission":"streams:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.live_stream_api","externalDocs":{"url":"https://dcast.pro/docs/streams","description":"Live stream API: create a live stream programmatically and get its publish addresses"}}},"/subscribers":{"get":{"tags":["Subscriptions"],"operationId":"get_subscribers","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List subscribers","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED. The key needs the `site:read` permission or a wider one of the same area such as `site:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 50, at most 200; a larger value is lowered to 200.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"tierId","in":"query","required":false,"description":"Only subscribers of this tier (must be your tier, else 404).","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"Case-insensitive; any other value is refused 400.","schema":{"type":"string","enum":["ACTIVE","CANCELLED","EXPIRED","PAST_DUE"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"subscribers":{"type":"array","items":{"type":"object","properties":{}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"},{"kind":"permission","permission":"site:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}},"post":{"tags":["Subscriptions"],"operationId":"post_subscribers","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Create subscriber","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Accepted: `data.followUrl` is your public page opened on the membership section; the person joins there by their own click. Nothing is written about the person and the answer is the same whether or not the address has an account.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"invited":{"type":"boolean"},"followUrl":{"type":"string","description":"Your public page, opened on the membership section, where the person joins by themselves."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Invites a person to follow one of your free tiers (or your channel with no tier). Nothing is written about the person: no account is created and no subscription is added; the follow is created when the person opens the returned followUrl and joins. An address with an account and an address without one get the same answer. A paid tier is refused 400 PAID_TIER_USE_CHECKOUT: use POST /checkout/subscription. At most 100 calls per hour per key.","required":["email"],"properties":{"email":{"type":"string","description":"Email of the person you invite. Checked for shape only; it is not stored and no message is sent.","format":"email"},"tierId":{"type":"string","description":"One of your free tiers."}}}}}},"x-dcast-errors":[{"status":400,"code":"PAID_TIER_USE_CHECKOUT","when":"A paid tier cannot be joined through the subscribers API.","howToFix":"Use POST /checkout/subscription.","retryable":false},{"status":400,"code":"TIER_INACTIVE","when":"The tier is not active.","howToFix":"Choose an active tier (GET /tiers).","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}}},"/subscribers/{subscriberUserId}":{"delete":{"tags":["Subscriptions"],"operationId":"delete_subscribers_subscriberUserId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Delete subscriber","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"name":"subscriberUserId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"tierId","in":"query","required":false,"description":"Remove only the subscription to this tier.","schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"502":{"description":"Codes on this operation: `STRIPE_CANCEL_FAILED` (The payment provider did not cancel the subscription. Repeat the call; if it persists contact DCAST support.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":502,"code":"STRIPE_CANCEL_FAILED","when":"The payment provider did not cancel the subscription.","howToFix":"Repeat the call; if it persists contact DCAST support.","retryable":true}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"},{"kind":"financial","mode":"write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}}},"/subscribers/count":{"get":{"tags":["Subscriptions"],"operationId":"get_subscribers_count","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Count subscribers","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `analytics:read` permission or a wider one of the same area such as `analytics:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"tierId","in":"query","required":false,"description":"Count only this tier (must be your tier, else 404).","schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"total":{"type":"integer"},"active":{"type":"integer"},"canceled":{"type":"integer"},"expired":{"type":"integer"},"pastDue":{"type":"integer"},"byTier":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"analytics:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}}},"/summary":{"get":{"tags":["Summary"],"operationId":"get_summary","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get analytics summary (same operation as GET /analytics/summary)","description":"Same handler, same request and same response as GET /analytics/summary; that is the path to call. Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"source":{"type":"string"},"tiers":{"type":"integer"},"subscribers":{"type":"integer"},"mrr":{"type":"number"},"videoSalesTotal":{"type":"number","description":"USD. One-off sales (video, ticket, tip, booking) after our fee, before refunds: videoSales.gross minus videoSales.fees. Only USD sales are summed."},"videoSalesCount":{"type":"integer","description":"Number of USD one-off sales summed."},"videoSales":{"type":"object","properties":{"currency":{"type":"string","enum":["USD"]},"gross":{"type":"number","description":"What buyers paid, USD."},"fees":{"type":"number","description":"The commission DCAST kept, USD; a refund that returned the fee gives it back."},"refunds":{"type":"number","description":"Refunded to buyers, USD."},"net":{"type":"number","description":"gross minus fees minus refunds, USD."},"count":{"type":"integer","description":"USD sales summed."},"otherCurrencyCount":{"type":"integer","description":"Sales paid in another currency: counted here and in no sum."}},"description":"The same sale ledger and definitions as the cabinet revenue figures."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-feature":"feature.video_analytics_api","externalDocs":{"url":"https://dcast.pro/docs/analytics","description":"Read the statistics of your videos and live streams with the video analytics API"}}},"/support/entitlements":{"get":{"tags":["Support"],"operationId":"get_support_entitlements","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"What the plan buys in support: queue rank, reply time and the named manager","description":"Read before opening a ticket. `supportRank` is the priority of the account in the queue (higher is answered earlier: VIP 3, PRO 2, STAR and FREE 0), `supportReplyMinutes` the reply time the plan promises, and `manager` the named manager of a plan that has one (VIP: a name and a mailto address), null on a plan without. There is no operation to assign or change a manager: a manager is a person, reached by e-mail at the address given. Tickets themselves are opened with POST /support/tickets. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"supportRank":{"type":"integer","description":"Priority of the account in the support queue; a higher number is answered earlier (VIP 3, PRO 2, STAR and FREE 0)."},"supportReplyMinutes":{"type":"integer","description":"The reply time the plan promises, in minutes."},"manager":{"type":["object","null"],"properties":{"name":{"type":"string"},"href":{"type":"string","description":"A mailto: address."}},"description":"The named manager of a plan that has one; null on a plan without."}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `SUPPORT_PLAN_UNAVAILABLE` (The support entitlement could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":403,"code":"ACCOUNT_UNAVAILABLE","when":"The account cannot use this feature in its current state.","howToFix":"Contact DCAST support (https://dcast.pro/support).","retryable":false},{"status":503,"code":"SUPPORT_PLAN_UNAVAILABLE","when":"The support entitlement could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-feature":"feature.support_tickets","externalDocs":{"url":"https://dcast.pro/docs/support","description":"Support tickets opened and followed by the account"}}},"/support/tickets":{"get":{"tags":["Support"],"operationId":"get_support_tickets","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List tickets (support)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 25, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"status","in":"query","required":false,"description":"Filter by ticket status. An unknown value is ignored.","schema":{"type":"string","enum":["OPEN","IN_PROGRESS","WAITING","RESOLVED","CLOSED"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","properties":{"attachments":{"type":["array","null"],"items":{"type":"object","properties":{}},"description":"The list that was sent when the ticket was opened."}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.support_tickets","externalDocs":{"url":"https://dcast.pro/docs/support","description":"Support tickets opened and followed by the account"}},"post":{"tags":["Support"],"operationId":"post_support_tickets","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create ticket (support)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"$ref":"#/components/responses/Success","description":"Created. Body: the success envelope with the new resource in `data`."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Opens a ticket from the account's own email. Staff replies appear in GET /support/tickets/{id}.","required":["subject","message"],"properties":{"subject":{"type":"string","description":"Non-empty subject.","minLength":1},"message":{"type":"string","description":"Non-empty text.","minLength":1},"category":{"type":"string","enum":["GENERAL","BILLING","TECHNICAL","ACCOUNT","CONTENT","FEATURE_REQUEST","BUG_REPORT","OTHER"],"description":"Default GENERAL.","default":"GENERAL"},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"],"description":"Default MEDIUM.","default":"MEDIUM"},"sourceUrl":{"type":"string","description":"Page or address the problem relates to."},"attachments":{"description":"Attachment descriptors as JSON, stored with the ticket as sent. No file is uploaded here."}}}}}},"x-dcast-errors":[{"status":400,"code":"USER_HAS_NO_EMAIL","when":"The account has no verified email on file.","howToFix":"Confirm an email in the dashboard first.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.support_tickets","externalDocs":{"url":"https://dcast.pro/docs/support","description":"Support tickets opened and followed by the account"}}},"/support/tickets/{id}":{"get":{"tags":["Support"],"operationId":"get_support_tickets_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one ticket (support)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.support_tickets","externalDocs":{"url":"https://dcast.pro/docs/support","description":"Support tickets opened and followed by the account"}}},"/support/tickets/{id}/replies":{"post":{"tags":["Support"],"operationId":"post_support_tickets_id_replies","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create reply (tickets)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"$ref":"#/components/responses/Success","description":"Created. Body: the success envelope with the new resource in `data`."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `TICKET_CLOSED` (The support ticket is closed. Open a new ticket.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"A closed ticket is refused 409 TICKET_CLOSED: open a new one.","required":["message"],"properties":{"message":{"type":"string","description":"Non-empty text.","minLength":1},"attachments":{"description":"Attachment descriptors as JSON, stored with the reply as sent. No file is uploaded here."}}}}}},"x-dcast-errors":[{"status":409,"code":"TICKET_CLOSED","when":"The support ticket is closed.","howToFix":"Open a new ticket.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.support_tickets","externalDocs":{"url":"https://dcast.pro/docs/support","description":"Support tickets opened and followed by the account"}}},"/team":{"get":{"tags":["Team"],"operationId":"get_team","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get team","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}},"patch":{"tags":["Team"],"operationId":"patch_team","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update team","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"channelId":{"type":"string"},"name":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Team name; an empty string clears it."}}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}}},"/team/chat":{"get":{"tags":["Team"],"operationId":"get_team_chat","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List team chat messages","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"limit","in":"query","required":false,"description":"Page size, default 50, at most 200; a larger value is lowered to 200.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"before","in":"query","required":false,"description":"Only messages older than this time (cursor for the next page). A value that is not a date is ignored and the newest messages are returned.","schema":{"type":"string","format":"date-time"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}},"post":{"tags":["Team"],"operationId":"post_team_chat","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Post a team chat message","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"$ref":"#/components/responses/Success","description":"Created. Body: the success envelope with the new resource in `data`."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Non-empty text.","minLength":1},"attachments":{"description":"Attachment descriptors as JSON, stored with the message as sent. No file is uploaded here."}}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}}},"/team/chat/{messageId}":{"delete":{"tags":["Team"],"operationId":"delete_team_chat_messageId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete chat (team)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":403,"code":"NOT_AUTHOR","when":"Only the author of a message may edit or delete it.","howToFix":"Act as the author of the message.","retryable":false},{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}},"patch":{"tags":["Team"],"operationId":"patch_team_chat_messageId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update chat (team)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `MESSAGE_DELETED` (The message was deleted and cannot be edited. Post a new message.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"The new text. Only the author can edit.","minLength":1}}}}}},"x-dcast-errors":[{"status":403,"code":"NOT_AUTHOR","when":"Only the author of a message may edit or delete it.","howToFix":"Act as the author of the message.","retryable":false},{"status":409,"code":"MESSAGE_DELETED","when":"The message was deleted and cannot be edited.","howToFix":"Post a new message.","retryable":false},{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}}},"/team/members":{"get":{"tags":["Team"],"operationId":"get_team_members","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List members (team)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}},"post":{"tags":["Team"],"operationId":"post_team_members","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create member (team)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Team membership requires an account-owner X-User-Token or a finance-write key; otherwise 403 TEAM_OWNER_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"teamId":{"type":"string"},"userId":{"type":"string"},"role":{"type":"string","enum":["OWNER","ADMIN","CONTENT_MANAGER","STREAM_TECHNICIAN","MODERATOR","VIEWER"]},"status":{"type":"string","enum":["PENDING","ACTIVE","SUSPENDED","REMOVED"]},"invitedBy":{"type":"string"},"invitedAt":{"type":"string","format":"date-time"},"joinedAt":{"type":["string","null"],"format":"date-time"},"lastActiveAt":{"type":["string","null"],"format":"date-time"},"invitationToken":{"type":["string","null"]},"invitationExpiresAt":{"type":["string","null"],"format":"date-time"},"canManageContent":{"type":"boolean"},"canManageStreams":{"type":"boolean"},"canModerateComments":{"type":"boolean"},"canViewAnalytics":{"type":"boolean"},"canViewFinance":{"type":"boolean"},"canManageTeam":{"type":"boolean"},"canManageSettings":{"type":"boolean"},"videoScopeMode":{"type":"string","enum":["UNRESTRICTED","ALLOWLIST"]},"streamScopeMode":{"type":"string","enum":["UNRESTRICTED","ALLOWLIST"]},"roomScopeMode":{"type":"string","enum":["UNRESTRICTED","ALLOWLIST"]},"restreamScopeMode":{"type":"string","enum":["UNRESTRICTED","ALLOWLIST"]}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `ALREADY_MEMBER` (The user is already a member of the team. Nothing to do.) `CANNOT_INVITE_SELF` (You cannot invite yourself. Invite another person.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Needs an owner-class credential. The person must already have a DCAST account.","required":["email","role"],"properties":{"email":{"type":"string","description":"Email of an existing DCAST account.","format":"email"},"role":{"type":"string","enum":["CONTENT_MANAGER","STREAM_TECHNICIAN","MODERATOR","VIEWER"],"description":"Team role."},"permissions":{"type":"object","properties":{"canManageContent":{"type":"boolean"},"canManageStreams":{"type":"boolean"},"canModerateComments":{"type":"boolean"},"canViewAnalytics":{"type":"boolean"},"canViewFinance":{"type":"boolean"},"canManageTeam":{"type":"boolean"},"canManageSettings":{"type":"boolean"}},"description":"Per-permission grants for this member; a permission not set to true is false."}}}}}},"x-dcast-errors":[{"status":403,"code":"TEAM_OWNER_REQUIRED","when":"Managing team membership needs an owner-class credential.","howToFix":"Use the owner's X-User-Token or a finance-write key.","retryable":false},{"status":404,"code":"INVITEE_NOT_FOUND","when":"No DCAST account has that email.","howToFix":"Ask the person to register first, then invite them.","retryable":false},{"status":409,"code":"ALREADY_MEMBER","when":"The user is already a member of the team.","howToFix":"Nothing to do.","retryable":false},{"status":409,"code":"CANNOT_INVITE_SELF","when":"You cannot invite yourself.","howToFix":"Invite another person.","retryable":false}],"x-dcast-requires":[{"kind":"ownerClass","operation":"team"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}}},"/team/members/{memberId}":{"delete":{"tags":["Team"],"operationId":"delete_team_members_memberId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete member (team)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED. Team membership requires an account-owner X-User-Token or a finance-write key; otherwise 403 TEAM_OWNER_REQUIRED.","parameters":[{"name":"memberId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":403,"code":"TEAM_OWNER_REQUIRED","when":"Managing team membership needs an owner-class credential.","howToFix":"Use the owner's X-User-Token or a finance-write key.","retryable":false},{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:delete"},{"kind":"ownerClass","operation":"team"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}},"patch":{"tags":["Team"],"operationId":"patch_team_members_memberId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update member (team)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Team membership requires an account-owner X-User-Token or a finance-write key; otherwise 403 TEAM_OWNER_REQUIRED.","parameters":[{"name":"memberId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"teamId":{"type":"string"},"userId":{"type":"string"},"role":{"type":"string","enum":["OWNER","ADMIN","CONTENT_MANAGER","STREAM_TECHNICIAN","MODERATOR","VIEWER"]},"status":{"type":"string","enum":["PENDING","ACTIVE","SUSPENDED","REMOVED"]},"invitedBy":{"type":"string"},"invitedAt":{"type":"string","format":"date-time"},"joinedAt":{"type":["string","null"],"format":"date-time"},"lastActiveAt":{"type":["string","null"],"format":"date-time"},"invitationToken":{"type":["string","null"]},"invitationExpiresAt":{"type":["string","null"],"format":"date-time"},"canManageContent":{"type":"boolean"},"canManageStreams":{"type":"boolean"},"canModerateComments":{"type":"boolean"},"canViewAnalytics":{"type":"boolean"},"canViewFinance":{"type":"boolean"},"canManageTeam":{"type":"boolean"},"canManageSettings":{"type":"boolean"},"videoScopeMode":{"type":"string","enum":["UNRESTRICTED","ALLOWLIST"]},"streamScopeMode":{"type":"string","enum":["UNRESTRICTED","ALLOWLIST"]},"roomScopeMode":{"type":"string","enum":["UNRESTRICTED","ALLOWLIST"]},"restreamScopeMode":{"type":"string","enum":["UNRESTRICTED","ALLOWLIST"]}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Needs an owner-class credential.","properties":{"role":{"type":"string","enum":["CONTENT_MANAGER","STREAM_TECHNICIAN","MODERATOR","VIEWER"],"description":"New team role."},"permissions":{"type":"object","properties":{"canManageContent":{"type":"boolean"},"canManageStreams":{"type":"boolean"},"canModerateComments":{"type":"boolean"},"canViewAnalytics":{"type":"boolean"},"canViewFinance":{"type":"boolean"},"canManageTeam":{"type":"boolean"},"canManageSettings":{"type":"boolean"}},"description":"Per-permission overrides; only the keys you send change."}}}}}},"x-dcast-errors":[{"status":403,"code":"TEAM_OWNER_REQUIRED","when":"Managing team membership needs an owner-class credential.","howToFix":"Use the owner's X-User-Token or a finance-write key.","retryable":false},{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"ownerClass","operation":"team"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}}},"/team/tasks":{"get":{"tags":["Team"],"operationId":"get_team_tasks","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List tasks (team)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:read` permission or a wider one of the same area such as `team:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"status","in":"query","required":false,"description":"Filter by task status. An unknown value is ignored.","schema":{"type":"string","enum":["TODO","IN_PROGRESS","COMPLETED","CANCELLED"]}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"teamId":{"type":"string"},"createdBy":{"type":["string","null"]},"assignedTo":{"type":["string","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"status":{"type":"string","enum":["TODO","IN_PROGRESS","COMPLETED","CANCELLED"]},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"]},"dueDate":{"type":["string","null"],"format":"date-time"},"tags":{"type":"array","items":{"type":"string"}},"attachments":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}},"post":{"tags":["Team"],"operationId":"post_team_tasks","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create task (team)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"teamId":{"type":"string"},"createdBy":{"type":["string","null"]},"assignedTo":{"type":["string","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"status":{"type":"string","enum":["TODO","IN_PROGRESS","COMPLETED","CANCELLED"]},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"]},"dueDate":{"type":["string","null"],"format":"date-time"},"tags":{"type":"array","items":{"type":"string"}},"attachments":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string","description":"Non-empty.","minLength":1},"description":{"type":["string","null"]},"assignedTo":{"type":["string","null"],"description":"User id of the channel owner or of a team member."},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"],"description":"Default MEDIUM.","default":"MEDIUM"},"dueDate":{"type":["string","null"],"description":"Due time, ISO 8601.","format":"date-time"},"tags":{"type":"array","items":{"type":"string"},"description":"Free labels."}}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}}},"/team/tasks/{taskId}":{"delete":{"tags":["Team"],"operationId":"delete_team_tasks_taskId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete task (team)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}},"patch":{"tags":["Team"],"operationId":"patch_team_tasks_taskId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update task (team)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `team:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"teamId":{"type":"string"},"createdBy":{"type":["string","null"]},"assignedTo":{"type":["string","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"status":{"type":"string","enum":["TODO","IN_PROGRESS","COMPLETED","CANCELLED"]},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"]},"dueDate":{"type":["string","null"],"format":"date-time"},"tags":{"type":"array","items":{"type":"string"}},"attachments":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `PLAN_UNAVAILABLE` (The plan of the account could not be read right now. Try again in a few seconds.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update: send only what changes.","properties":{"title":{"type":"string"},"description":{"type":["string","null"]},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"]},"status":{"type":"string","enum":["TODO","IN_PROGRESS","COMPLETED","CANCELLED"]},"dueDate":{"type":["string","null"],"description":"Due time, ISO 8601; null clears it.","format":"date-time"},"assignedTo":{"type":["string","null"],"description":"User id of the channel owner or of a team member; null unassigns."},"tags":{"type":"array","items":{"type":"string"},"description":"Replaces the labels."}}}}}},"x-dcast-errors":[{"status":503,"code":"PLAN_UNAVAILABLE","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"team:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.team_accounts","externalDocs":{"url":"https://dcast.pro/docs/team-api","description":"Team access API: tasks and member permissions for your video team"}}},"/tiers":{"get":{"tags":["Tiers"],"operationId":"get_tiers","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List tiers","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `billing_view:read` permission or a wider one of the same area such as `billing_view:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 50, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"tiers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"priceMonthly":{"type":"string","description":"Decimal number written as a string."},"priceAnnual":{"type":["string","null"],"description":"Decimal number written as a string."},"benefits":{"type":"array","items":{"type":"string"}},"position":{"type":"integer"},"isActive":{"type":"boolean"},"trialDays":{"type":"integer"},"isMostPopular":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"stripePriceId":{"type":["string","null"],"description":"Stripe Price id (price_...) of the monthly price; null when the tier was created without a Stripe sync. An identifier of a Stripe object, not a credential; no call of this API needs it."},"stripePriceAnnualId":{"type":["string","null"],"description":"Stripe Price id (price_...) of the yearly price; null when the tier has no yearly price or no Stripe sync. An identifier of a Stripe object, not a credential."},"stripeProductId":{"type":["string","null"],"description":"Stripe Product id (prod_...) of the tier; null when the tier was created without a Stripe sync. An identifier of a Stripe object, not a credential."},"subscribersCount":{"type":"integer"}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"billing_view:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}},"post":{"tags":["Tiers"],"operationId":"post_tiers","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Create tier","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"priceMonthly":{"type":"string","description":"Decimal number written as a string."},"priceAnnual":{"type":["string","null"],"description":"Decimal number written as a string."},"benefits":{"type":"array","items":{"type":"string"}},"position":{"type":"integer"},"isActive":{"type":"boolean"},"trialDays":{"type":"integer"},"stripePriceId":{"type":["string","null"],"description":"Stripe Price id (price_...) of the monthly price; null when the tier was created without a Stripe sync. An identifier of a Stripe object, not a credential; no call of this API needs it."},"stripePriceAnnualId":{"type":["string","null"],"description":"Stripe Price id (price_...) of the yearly price; null when the tier has no yearly price or no Stripe sync. An identifier of a Stripe object, not a credential."},"stripeProductId":{"type":["string","null"],"description":"Stripe Product id (prod_...) of the tier; null when the tier was created without a Stripe sync. An identifier of a Stripe object, not a credential."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isMostPopular":{"type":"boolean"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Needs an account that may sell (verified payout account) and a plan with room for another paid tier.","required":["name","priceMonthly","benefits"],"properties":{"name":{"type":"string","description":"Tier name.","minLength":1},"description":{"type":["string","null"],"description":"Short description."},"priceMonthly":{"type":"number","description":"Monthly price in USD dollars, at least 1.00.","minimum":1},"priceAnnual":{"type":["number","null"],"description":"Annual price in USD dollars; null for no annual option."},"benefits":{"type":"array","items":{"type":"string"},"description":"What subscribers get, one line each. Must not be empty.","minItems":1},"trialDays":{"type":"integer","description":"Free trial length in days, default 0.","default":0},"isMostPopular":{"type":"boolean","description":"Mark as the highlighted tier; only one tier can be, default false.","default":false}}}}}},"x-dcast-errors":[{"status":400,"code":"PRICE_ABOVE_PLAN_MAX","when":"The price of one sale is above what the plan of the account allows.","howToFix":"Send a price at or below details.maxUsd, or move the account to a plan with a higher maximum. Prices already saved are not changed.","retryable":false},{"status":400,"code":"PRICE_BELOW_PLAN_MIN","when":"The price of one sale is below what the plan of the account allows.","howToFix":"Send a price at or above details.minUsd, or move the account to a plan with a lower minimum. Prices already saved are not changed.","retryable":false},{"status":403,"code":"PLAN_LIMIT_EXCEEDED","when":"A count (tiers, items) reached the limit of the plan.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false},{"status":404,"code":"USER_NOT_FOUND","when":"The user does not exist.","howToFix":"Check the username or user id.","retryable":false}],"x-dcast-requires":[{"kind":"financial","mode":"write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}}},"/tiers/{id}":{"delete":{"tags":["Tiers"],"operationId":"delete_tiers_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Delete tier","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `TIER_HAS_SUBSCRIBERS` (The tier has active subscribers and cannot be deleted. Deactivate it with PATCH isActive=false instead.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":409,"code":"TIER_HAS_SUBSCRIBERS","when":"The tier has active subscribers and cannot be deleted.","howToFix":"Deactivate it with PATCH isActive=false instead.","retryable":false}],"x-dcast-requires":[{"kind":"financial","mode":"write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}},"get":{"tags":["Tiers"],"operationId":"get_tiers_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get one tier","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `billing_view:read` permission or a wider one of the same area such as `billing_view:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"priceMonthly":{"type":"string","description":"Decimal number written as a string."},"priceAnnual":{"type":["string","null"],"description":"Decimal number written as a string."},"benefits":{"type":"array","items":{"type":"string"}},"position":{"type":"integer"},"isActive":{"type":"boolean"},"trialDays":{"type":"integer"},"isMostPopular":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"stripePriceId":{"type":["string","null"],"description":"Stripe Price id (price_...) of the monthly price; null when the tier was created without a Stripe sync. An identifier of a Stripe object, not a credential; no call of this API needs it."},"stripePriceAnnualId":{"type":["string","null"],"description":"Stripe Price id (price_...) of the yearly price; null when the tier has no yearly price or no Stripe sync. An identifier of a Stripe object, not a credential."},"stripeProductId":{"type":["string","null"],"description":"Stripe Product id (prod_...) of the tier; null when the tier was created without a Stripe sync. An identifier of a Stripe object, not a credential."},"subscribersCount":{"type":"integer"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"billing_view:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}},"patch":{"tags":["Tiers"],"operationId":"patch_tiers_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"summary":"Update tier","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"creatorId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"priceMonthly":{"type":"string","description":"Decimal number written as a string."},"priceAnnual":{"type":["string","null"],"description":"Decimal number written as a string."},"benefits":{"type":"array","items":{"type":"string"}},"position":{"type":"integer"},"isActive":{"type":"boolean"},"trialDays":{"type":"integer"},"stripePriceId":{"type":["string","null"],"description":"Stripe Price id (price_...) of the monthly price; null when the tier was created without a Stripe sync. An identifier of a Stripe object, not a credential; no call of this API needs it."},"stripePriceAnnualId":{"type":["string","null"],"description":"Stripe Price id (price_...) of the yearly price; null when the tier has no yearly price or no Stripe sync. An identifier of a Stripe object, not a credential."},"stripeProductId":{"type":["string","null"],"description":"Stripe Product id (prod_...) of the tier; null when the tier was created without a Stripe sync. An identifier of a Stripe object, not a credential."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isMostPopular":{"type":"boolean"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `TIER_PRICE_LOCKED` (The tier has active subscribers, so its price cannot change. Create a new tier, or wait until the subscriptions end.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update. While the tier has active subscribers a price change is refused 409 TIER_PRICE_LOCKED.","properties":{"name":{"type":"string"},"description":{"type":["string","null"]},"priceMonthly":{"type":"number","description":"Monthly price in USD dollars."},"priceAnnual":{"type":["number","null"],"description":"Annual price in USD dollars; null removes the annual option."},"benefits":{"type":"array","items":{"type":"string"},"description":"Replaces the list."},"trialDays":{"type":"integer","description":"Free trial length in days."},"isActive":{"type":"boolean","description":"false hides the tier from new subscribers."},"isMostPopular":{"type":"boolean"}}}}}},"x-dcast-errors":[{"status":400,"code":"PRICE_ABOVE_PLAN_MAX","when":"The price of one sale is above what the plan of the account allows.","howToFix":"Send a price at or below details.maxUsd, or move the account to a plan with a higher maximum. Prices already saved are not changed.","retryable":false},{"status":400,"code":"PRICE_BELOW_PLAN_MIN","when":"The price of one sale is below what the plan of the account allows.","howToFix":"Send a price at or above details.minUsd, or move the account to a plan with a lower minimum. Prices already saved are not changed.","retryable":false},{"status":409,"code":"TIER_PRICE_LOCKED","when":"The tier has active subscribers, so its price cannot change.","howToFix":"Create a new tier, or wait until the subscriptions end.","retryable":false}],"x-dcast-requires":[{"kind":"financial","mode":"write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}}},"/uploads/{token}":{"head":{"tags":["Upload"],"operationId":"head_uploads_token","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Ask where the bytes go, without sending them","description":"Step two of the upload. The URL for this call comes from `data.upload.url` on POST /videos/upload — do not construct it. The token in the path IS the credential: it is signed and expiring (the same URL takes every chunk of a chunked upload and the HEAD probe), and this endpoint never reads the Authorization header, so a pk_ key neither helps nor is required. Prefer HEAD on this URL first, with automatic redirects disabled: require 307 and read `Location`, then PUT the bytes directly to that destination. This avoids sending upload bytes to the API before replaying them on the worker. For chunked uploads, send each advertised `chunkSize` slice with `Content-Range` to the resolved destination during this upload. A direct PUT to the canonical URL still returns 307, preserving method and body; its client must be able to replay the body. Treat the destination as opaque and short-lived; do not cache it for another upload. The four 401s are worth telling apart from each other rather than retrying blindly: a truncated URL, an edited payload, an expired token and an owner mismatch each say so, and only the expired one is fixed by minting a fresh token for the same video.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"uploadToken":[]}],"responses":{"307":{"description":"Destination resolved; this response does not acknowledge storage of any bytes. Prefer HEAD with redirects disabled, require 307, then PUT to Location without sending the body to the API. A canonical PUT also returns 307 and requires a replayable body. Use the opaque destination for this upload only, including its Content-Range chunks; do not cache it for another upload.","headers":{"Location":{"description":"Opaque, short-lived destination for the bytes. Follow it; do not cache it.","schema":{"type":"string","format":"uri"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"NO_CAPABLE_WORKER / NO_UPLOAD_WORKERS — no storage could be assigned for these bytes. See the example bodies: `retryable` says whether waiting helps."}},"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/upload","description":"Run your videos and live broadcasts from your own site through the DCAST API"}},"put":{"tags":["Upload"],"operationId":"put_uploads_token","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Send the video bytes","description":"Step two of the upload. The URL for this call comes from `data.upload.url` on POST /videos/upload — do not construct it. The token in the path IS the credential: it is signed and expiring (the same URL takes every chunk of a chunked upload and the HEAD probe), and this endpoint never reads the Authorization header, so a pk_ key neither helps nor is required. Prefer HEAD on this URL first, with automatic redirects disabled: require 307 and read `Location`, then PUT the bytes directly to that destination. This avoids sending upload bytes to the API before replaying them on the worker. For chunked uploads, send each advertised `chunkSize` slice with `Content-Range` to the resolved destination during this upload. A direct PUT to the canonical URL still returns 307, preserving method and body; its client must be able to replay the body. Treat the destination as opaque and short-lived; do not cache it for another upload. The four 401s are worth telling apart from each other rather than retrying blindly: a truncated URL, an edited payload, an expired token and an owner mismatch each say so, and only the expired one is fixed by minting a fresh token for the same video.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"uploadToken":[]}],"responses":{"307":{"description":"Destination resolved; this response does not acknowledge storage of any bytes. Prefer HEAD with redirects disabled, require 307, then PUT to Location without sending the body to the API. A canonical PUT also returns 307 and requires a replayable body. Use the opaque destination for this upload only, including its Content-Range chunks; do not cache it for another upload.","headers":{"Location":{"description":"Opaque, short-lived destination for the bytes. Follow it; do not cache it.","schema":{"type":"string","format":"uri"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"HTTP 401 Codes on this operation: `INVALID_TOKEN` (The token in the path or query (upload token, preview token, or the playback pass on a master address) does not belong to this resource, expired or was altered. Request a fresh token from the operation that hands it out (for an upload: POST /videos/upload; for a playback pass: the access-token address of the card) and use it unchanged.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"malformed":{"summary":"Not `<payload>.<signature>` — the URL was truncated or re-encoded in transit","value":{"success":false,"error":{"code":"INVALID_TOKEN","message":"Malformed upload token"}}},"badSignature":{"summary":"Well-formed but not signed by us — an edited payload lands here","value":{"success":false,"error":{"code":"INVALID_TOKEN","message":"Bad signature"}}},"expired":{"summary":"The token outlived its hour. Mint a fresh one with POST /videos/upload — the video row is still there","value":{"success":false,"error":{"code":"TOKEN_EXPIRED","message":"Upload token expired"}}},"ownerMismatch":{"summary":"The token names one owner and the video now has another — refused rather than accepted on your behalf","value":{"success":false,"error":{"code":"INVALID_TOKEN","message":"Upload token / video owner mismatch"}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"HTTP 404","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"videoGone":{"summary":"The token is valid but its video row no longer exists (deleted, or rolled back after a failed init)","value":{"success":false,"error":{"code":"NOT_FOUND","message":"Video not found"}}}}}}},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"NO_CAPABLE_WORKER / NO_UPLOAD_WORKERS — no storage could be assigned for these bytes. See the example bodies: `retryable` says whether waiting helps. Codes on this operation: `NO_UPLOAD_WORKERS` (No upload server is online. Repeat after a short wait.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"noWorker":{"summary":"No storage could be assigned for these bytes right now","value":{"success":false,"error":{"code":"NO_UPLOAD_WORKERS","message":"No worker available — retry shortly"}}}}}}}},"requestBody":{"required":true,"description":"The file bytes, sent as the request body to the exact URL returned in data.upload.url by POST /videos/upload. The call answers 307 with the worker location; follow it with the same method and body (chunked Content-Range uploads are supported).","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"x-dcast-errors":[{"status":401,"code":"INVALID_TOKEN","when":"The token in the path or query (upload token, preview token, or the playback pass on a master address) does not belong to this resource, expired or was altered.","howToFix":"Request a fresh token from the operation that hands it out (for an upload: POST /videos/upload; for a playback pass: the access-token address of the card) and use it unchanged.","retryable":false},{"status":403,"code":"TICKET_NOT_FOR_VIDEO_UPLOAD","when":"The ticket is not a video upload ticket.","howToFix":"Use the ticket that POST /videos/upload gave.","retryable":false},{"status":503,"code":"NO_UPLOAD_WORKERS","when":"No upload server is online.","howToFix":"Repeat after a short wait.","retryable":true,"retryAfterSeconds":30}],"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/upload","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/uploads/{token}/tus":{"post":{"tags":["Upload"],"operationId":"post_uploads_token_tus","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Open a resumable upload (TUS 1.0)","description":"The resumable alternative to PUT on the same URL, and what /embed/dcast.js uses in the browser. The URL is `data.upload.url` from POST /videos/upload with `/tus` appended; the token in the path is the credential. Send `Tus-Resumable: 1.0.0` and `Upload-Length` (the file size; it may not exceed the ticket limit) and, optionally, `Upload-Metadata` with `filename` and `filetype`. The answer is `201` with `Location`: send the bytes there as TUS `PATCH` requests with `Upload-Offset` and `Authorization: Bearer <the same token>`; after a dropped connection a `HEAD` on `Location` returns `Upload-Offset`, the byte to continue from. Opening the same upload again answers `409 UPLOAD_EXISTS` with its `Location`; a video that already received its file answers `409 UPLOAD_ALREADY_COMPLETE`.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"uploadToken":[]}],"responses":{"201":{"description":"The upload is open. Send the bytes as TUS PATCH requests to Location with Authorization: Bearer <the token>.","headers":{"Location":{"description":"Where the PATCH and HEAD requests of this upload go.","schema":{"type":"string","format":"uri"}},"Upload-Offset":{"description":"Bytes already received (0 for a new upload).","schema":{"type":"integer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"UPLOAD_EXISTS — this upload is already open; Location says where, HEAD it to continue. UPLOAD_ALREADY_COMPLETE — the video already received its file."},"413":{"description":"UPLOAD_EXCEEDS_TICKET — Upload-Length is above the size the token was issued for."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"NO_WORKER_ACCEPTED_UPLOAD — no storage could take the upload right now; `retryable` says whether waiting helps."}},"x-dcast-feature":"feature.resumable_upload","externalDocs":{"url":"https://dcast.pro/docs/upload","description":"Uploads that survive a dropped connection"}}},"/usage":{"get":{"tags":["Usage"],"operationId":"get_usage","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Read metered usage and the account plan limits for room admission","description":"The delivery, stream and storage dimensions retain their partner API metering. `dimensions.rooms.used` is participant-seconds, with `meteringOnly:true` and no tier cap or room overage estimate. `roomAdmission.plan` is the resolved account plan; `monthlyActivity` is its shared streams/restreams/rooms pool (seconds, account-month period and resetsAt), and `concurrency` counts WAITING/LIVE rooms against that plan. An uncapped monthly pool has null limitSeconds and remainingSeconds; its usedSeconds is not metered by this pool. Room start and the first join token of a room can answer 403 PLAN_MONTHLY_ACTIVITY_EXHAUSTED or ROOM_CONCURRENCY_LIMIT. If the room plan or pool cannot be read, `roomAdmission` is `{ unavailable: true, code: \"ROOM_ADMISSION_UNAVAILABLE\" }` with no allowance; the other dimensions are still answered. Any valid key may call this operation: it describes the key itself and its limits, so a `permissions` list on the key does not narrow it.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[]}},"/users/{username}/subscribe":{"delete":{"tags":["Users"],"operationId":"delete_users_username_subscribe","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Unsubscribe from a creator","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":400,"code":"PAID_SUBSCRIPTION","when":"The subscription is paid and cannot be cancelled this way.","howToFix":"Cancel it through DELETE /subscribers/{userId} on the creator side or the payment provider's customer portal.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}},"post":{"tags":["Users"],"operationId":"post_users_username_subscribe","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Subscribe to a creator","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `site:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created (or a cancelled follow reactivated).","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"subscription":{"type":"object","properties":{}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `PAID_SUBSCRIPTION_LAPSED` (A paid subscription exists and is not active; a free follow does not renew it. Renew it with POST /checkout/subscription.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":409,"code":"PAID_SUBSCRIPTION_LAPSED","when":"A paid subscription exists and is not active; a free follow does not renew it.","howToFix":"Renew it with POST /checkout/subscription.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"site:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.creator_subscriptions","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Monthly subscriptions for your audience"}}},"/videos":{"get":{"tags":["Videos"],"operationId":"get_videos","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List your videos, newest first","description":"A page of the videos owned by the key's account, newest first, with a `pagination` block. Videos that are still encoding appear in this list immediately — they are not withheld until READY — so the page mixes finished and unfinished rows, and on an unfinished row `playback`, `duration`, `resolution`, `fileSize` and `thumbnails.default` are all null. Treat a null `playback` as \"not playable yet\", never as an error. An account with no videos gets an empty array and a valid pagination block, never a 404. Use `limit` up to 100 and `page` to walk; for one video in full detail, including the playback discovery block, call GET /videos/{id}. The key needs the `videos:read` permission or a wider one of the same area such as `videos:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 20, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","required":false,"description":"0-based row offset. When present it wins over `page`.","schema":{"type":"integer","minimum":0}},{"name":"status","in":"query","required":false,"description":"Filter by video status. Case-insensitive; any other value is refused 400 INVALID_STATUS.","schema":{"type":"string","enum":["READY","UPLOADING","PROCESSING","FAILED","PENDING"]}},{"name":"visibility","in":"query","required":false,"description":"Filter by stored visibility. Case-insensitive; any other value is refused 400 INVALID_VISIBILITY.","schema":{"type":"string","enum":["PUBLIC","PRIVATE","LINK_ONLY","REGISTERED","SUBSCRIBERS","TIER_EXCLUSIVE"]}},{"name":"search","in":"query","required":false,"description":"Case-insensitive text matched against title and description.","schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/VideoList"}}},"examples":{"mixedPage":{"summary":"A page mixing a READY video with one still PROCESSING — the shape difference IS the lesson","value":{"success":true,"data":{"videos":[{"id":"a1b2c3d4e5f60718293a4b5c6d7e8f90","title":"Season 3 opener","description":null,"visibility":"PUBLIC","isPaid":false,"price":null,"requiredTierId":null,"duration":2567,"resolution":"1080p","fileSize":1762243589,"status":"READY","thumbnails":{"default":"https://api.dcast.pro/api/videos/a1b2c3d4e5f60718293a4b5c6d7e8f90/thumbnail"},"playback":{"hls":"https://api.dcast.pro/api/videos/a1b2c3d4e5f60718293a4b5c6d7e8f90/master","embed":"https://dcast.tv/embed/a1b2c3d4e5f60718293a4b5c6d7e8f90"},"watchUrl":"https://dcast.tv/watch/a1b2c3d4e5f60718293a4b5c6d7e8f90","createdAt":"2026-08-13T22:52:16.988Z","updatedAt":"2026-08-14T00:20:51.393Z"},{"id":"0f1e2d3c4b5a69788796a5b4c3d2e1f0","title":"Backstage cut","description":"Members only","visibility":"TIER_EXCLUSIVE","isPaid":true,"price":4.99,"requiredTierId":"cmtier00000000000000000t1","duration":null,"resolution":null,"fileSize":null,"status":"PROCESSING","thumbnails":{"default":null},"playback":null,"watchUrl":"https://dcast.tv/watch/0f1e2d3c4b5a69788796a5b4c3d2e1f0","createdAt":"2026-08-14T02:10:04.001Z","updatedAt":"2026-08-14T02:10:44.512Z"}],"pagination":{"page":1,"limit":20,"total":2,"pages":1}}}},"emptyLibrary":{"summary":"No videos yet — an empty list, never a 404","value":{"success":true,"data":{"videos":[],"pagination":{"page":1,"limit":20,"total":0,"pages":1}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"videos:read","via":"route-area"}],"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}},"post":{"tags":["Videos"],"operationId":"post_videos","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Start a video upload and get the URL to send the bytes to (same operation as POST /videos/upload)","description":"Same handler, same request and same response as POST /videos/upload; that is the path to call. Step one of two. This call creates the video row and hands back a single-use, signed upload URL in `data.upload.url`; the bytes themselves go to that URL in step two (PUT /uploads/{token}), NOT to this endpoint. Read `data.upload.chunked` before sending: false means one PUT of the whole body, true means send `chunkSize` slices with a Content-Range header. The URL carries its own credential and its own expiry — a pk_ key is neither used nor needed on it. Then poll `data.statusUrl`. The refusals are worth handling separately rather than as one failure: QUOTA_EXCEEDED means you are out of space, while QUOTA_CHECK_UNAVAILABLE and the retryable NO_CAPABLE_WORKER mean nothing was started and a retry is right — see the examples, and note that the quota sizes arrive in two different shapes. The key needs the `videos:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"singlePut":{"summary":"A 20 MB file — chunked:false, so one PUT of the whole body is correct","value":{"success":true,"data":{"video":{"id":"a1b2c3d4e5f60718293a4b5c6d7e8f90","title":"Season 3 opener","description":"","visibility":"PRIVATE","status":"PENDING"},"upload":{"url":"https://api.dcast.pro/api/v1/uploads/<opaque-signed-upload-token>","method":"PUT","expiresAt":"2026-08-14T04:27:19.142Z","maxFileSize":22000000,"chunkSize":99614720,"chunked":false,"instructions":"Single PUT request for small files"},"statusUrl":"/api/v1/videos/a1b2c3d4e5f60718293a4b5c6d7e8f90/status"}}},"chunked":{"summary":"A 1 GB file — chunked:true and the instructions change; send Content-Range in chunkSize slices","value":{"success":true,"data":{"video":{"id":"0f1e2d3c4b5a69788796a5b4c3d2e1f0","title":"Backstage cut","description":"Members only","visibility":"PRIVATE","status":"PENDING"},"upload":{"url":"https://api.dcast.pro/api/v1/uploads/<opaque-signed-upload-token>","method":"PUT","expiresAt":"2026-08-14T04:27:19.142Z","maxFileSize":1100000000,"chunkSize":99614720,"chunked":true,"instructions":"Use Content-Range header for chunked upload: bytes START-END/TOTAL"},"statusUrl":"/api/v1/videos/0f1e2d3c4b5a69788796a5b4c3d2e1f0/status"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"HTTP 403 Codes on this operation: `QUOTA_EXCEEDED` (Storage or another plan quota is used up. The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"quotaExceededPreCheck":{"summary":"Out of space, caught before the asset row — the sizes arrive NESTED under error.quota","value":{"success":false,"error":{"code":"QUOTA_EXCEEDED","message":"Storage quota exceeded","quota":{"used":"2.1 TiB","limit":"2 TiB","available":"0 B"}}}},"quotaExceededOnHold":{"summary":"Same code, FLAT fields: two uploads raced for the last of the space and the hold refused this one (partner-api-v1.js:5037). Read error.code, not the shape","value":{"success":false,"error":{"code":"QUOTA_EXCEEDED","message":"Storage quota exceeded","used":"2 TiB","limit":"2 TiB","available":"0 B"}}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"413":{"description":"HTTP 413","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"fileTooLarge":{"summary":"fileSize is over the one-file limit: refused before any asset row or storage hold. error.maxFileSizeBytes is the limit; split or re-encode the file","value":{"success":false,"code":"FILE_TOO_LARGE","error":{"code":"FILE_TOO_LARGE","message":"The file is larger than the 100 GiB limit for one video.","maxFileSizeBytes":107374182400,"maxFileSize":"100 GiB","fileSizeBytes":107374182401}}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"The upload could not be started. `error.code` distinguishes the causes; `retryable` (or its absence) says whether a retry is advised — see the examples. Codes on this operation: `NO_UPLOAD_WORKERS` (No upload server is online. Repeat after a short wait.) `UPLOAD_PLACEMENT_FAILED` (The upload could not be placed on a server; nothing was reserved. Repeat the request.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"noCapableWorker":{"summary":"Retryable: storage is momentarily unreachable. Retry-After carries the measured wait; nothing was sent, so simply start again","value":{"success":false,"error":{"code":"NO_CAPABLE_WORKER","cause":"NO_WORKER_SERVING_UPLOADS","retryable":true,"retryAfterSeconds":30,"message":"The upload server is not answering right now. Nothing has been sent yet — start the upload again shortly."}}},"noCapableWorkerPermanent":{"summary":"Same code, retryable:false — waiting will not clear it. Surface it and stop; do not build a retry loop on the code alone","value":{"success":false,"error":{"code":"NO_CAPABLE_WORKER","cause":"NO_FREE_STORAGE","retryable":false,"retryAfterSeconds":null,"message":"Our upload servers have no free space right now. We have been alerted — please contact support."}}},"quotaCheckUnavailable":{"summary":"We could not read your usage, so nothing was started. Distinct from QUOTA_EXCEEDED on purpose: this one IS worth retrying","value":{"success":false,"error":{"code":"QUOTA_CHECK_UNAVAILABLE","message":"Storage usage could not be read; upload not started","retryable":true}}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Step 1 of 2: reserve the asset and mint an upload URL. No bytes are sent here — PUT them to data.upload.url next. Every field is optional, but fileSize should be the real byte count: it is what the quota check and the storage hold are taken against, and it sizes the token (maxFileSize = fileSize x 1.1, rounded up to a whole byte, never above the one-file limit). A fileSize over the one-file limit (100 GiB) is refused 413 FILE_TOO_LARGE before any card or storage hold exists; error.maxFileSizeBytes names the limit.","properties":{"title":{"type":"string","description":"Falls back to fileName, then to \"Untitled Video\"."},"fileName":{"type":"string","description":"Defaults to \"video.mp4\". Also the title fallback."},"description":{"type":"string","description":"Defaults to an empty string."},"visibility":{"type":"string","description":"Case-insensitive; defaults to PRIVATE when omitted. Accepts the same values as PATCH /videos/{id}; an unknown value is refused 400 INVALID_VISIBILITY.","enum":["PUBLIC","LINK_ONLY","PRIVATE","SUBSCRIBERS","TIER_EXCLUSIVE","REGISTERED"]},"fileSize":{"type":"integer","minimum":0,"description":"Byte count of the file you are about to send. Omitted or unparseable counts as 0, which asks for no space and mints a 100 GiB ceiling."}}},"examples":{"singlePut":{"summary":"The call that produces the singlePut response below: a 20 MB file, title given, everything else left to default (visibility PRIVATE, description empty)","value":{"title":"Season 3 opener","fileName":"season-3-opener.mp4","fileSize":20000000}},"chunked":{"summary":"The call that produces the chunked response below: 1 GB is over the threshold, so `chunked` comes back true and the bytes go in Content-Range slices","value":{"title":"Backstage cut","fileName":"backstage-cut.mp4","description":"Members only","fileSize":1000000000}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_VISIBILITY","when":"visibility is not one of the allowed names.","howToFix":"Use one of the names the operation lists: PUBLIC, LINK_ONLY, PRIVATE, REGISTERED, ACCESS_KEY (streams), SUBSCRIBERS and TIER_EXCLUSIVE (videos).","retryable":false},{"status":403,"code":"QUOTA_EXCEEDED","when":"Storage or another plan quota is used up.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false},{"status":503,"code":"NO_UPLOAD_WORKERS","when":"No upload server is online.","howToFix":"Repeat after a short wait.","retryable":true,"retryAfterSeconds":30},{"status":503,"code":"UPLOAD_PLACEMENT_FAILED","when":"The upload could not be placed on a server; nothing was reserved.","howToFix":"Repeat the request.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"videos:write"}],"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{id}":{"delete":{"tags":["Videos"],"operationId":"delete_videos_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete a video and its files","description":"Removes the video row and the encoded files behind it. Unlike DELETE /streams/{id}, which answers 202 and finishes cleaning in the background, this one runs the deletion inline and answers 200 only once it has succeeded — `data.filesDeleted` reports how many stored files went with it. A failure part-way through is a 500 DELETION_FAILED, and it means the video may still be there, so a 500 here is worth retrying where a 500 usually is not. Deleting something already gone is 404, not a silent success, so a retry after a timeout is safe to distinguish that way. The key needs the `videos:delete` permission; without it the answer is 403 and nothing is touched. This is not reversible through the API. The key needs the `videos:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"deleted":{"type":"boolean"},"videoId":{"type":"string"},"filesDeleted":{}}}}},"examples":{"deleted":{"summary":"Gone, files and all. Note the 200: unlike DELETE /streams/{id} this path does not defer the purge, so there is no 202 here","value":{"success":true,"data":{"deleted":true,"videoId":"a1b2c3d4e5f60718293a4b5c6d7e8f90","filesDeleted":7}}},"deletedNothingStored":{"summary":"Same success for a video that never finished encoding — filesDeleted is 0, which is not a failure","value":{"success":true,"data":{"deleted":true,"videoId":"0f1e2d3c4b5a69788796a5b4c3d2e1f0","filesDeleted":0}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"HTTP 404","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"alreadyGone":{"summary":"Not yours, or already deleted — the two are deliberately indistinguishable, so a retry after a timeout lands here rather than reporting a fresh delete","value":{"success":false,"error":{"code":"NOT_FOUND","message":"Video not found"}}}}}}},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"HTTP 500 Codes on this operation: `DELETION_FAILED` (The delete did not complete. Repeat; if it persists contact DCAST support with the X-DCAST-Request-Id.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"deletionFailed":{"summary":"Part-way failure: the video may still exist. The one 500 on this API that IS worth retrying","value":{"success":false,"error":{"code":"DELETION_FAILED","message":"Failed to delete video"}}}}}}}},"x-dcast-errors":[{"status":500,"code":"DELETION_FAILED","when":"The delete did not complete.","howToFix":"Repeat; if it persists contact DCAST support with the X-DCAST-Request-Id.","retryable":true}],"x-dcast-requires":[{"kind":"permission","permission":"videos:delete"}],"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}},"get":{"tags":["Videos"],"operationId":"get_videos_id","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Read one video in full, including how to play it","description":"Everything the list returns for one video plus the technical metadata (fps, bitrate, codec), the counters, and the `playback` discovery block that tells you how to play it. `playback` is null for any video that is not READY. `playback.requiresToken` is true for every video: the `hls` address answers 401 MASTER_PASS_REQUIRED until the request carries a playback pass. Mint one at `playback.accessTokenUrl` (a viewer pass, checked against the video's access rules) or take the signed `hls` of `playback.playUrl` (your key, your video). A READY video is playable, it simply needs the pass. The key needs the `videos:read` permission or a wider one of the same area such as `videos:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Video"}}},"examples":{"ready":{"summary":"READY — playback discovery is populated","value":{"success":true,"data":{"id":"a1b2c3d4e5f60718293a4b5c6d7e8f90","title":"Season 3 opener","description":null,"visibility":"PUBLIC","isPaid":false,"price":null,"requiredTierId":null,"duration":2567,"resolution":"1080p","fps":23.976,"bitrate":5493,"codec":"h264","fileSize":1762243589,"status":"READY","views":1284,"likes":37,"thumbnails":{"default":"https://api.dcast.pro/api/videos/a1b2c3d4e5f60718293a4b5c6d7e8f90/thumbnail"},"playback":{"playable":true,"hls":"https://api.dcast.pro/api/videos/a1b2c3d4e5f60718293a4b5c6d7e8f90/master","embed":"https://dcast.tv/embed/a1b2c3d4e5f60718293a4b5c6d7e8f90","playUrl":"https://api.dcast.pro/api/v1/videos/a1b2c3d4e5f60718293a4b5c6d7e8f90/play","accessTokenUrl":"https://api.dcast.pro/api/videos/a1b2c3d4e5f60718293a4b5c6d7e8f90/access-token","thumbnail":"https://api.dcast.pro/api/videos/a1b2c3d4e5f60718293a4b5c6d7e8f90/thumbnail","requiresToken":true},"watchUrl":"https://dcast.tv/watch/a1b2c3d4e5f60718293a4b5c6d7e8f90","quality":"HD_1080P","createdAt":"2026-08-13T22:52:16.988Z","updatedAt":"2026-08-14T00:20:51.393Z"}}},"stillProcessing":{"summary":"Same endpoint, same video, mid-pipeline — every playback field is null","value":{"success":true,"data":{"id":"0f1e2d3c4b5a69788796a5b4c3d2e1f0","title":"Backstage cut","description":"Members only","visibility":"TIER_EXCLUSIVE","isPaid":true,"price":4.99,"requiredTierId":"cmtier00000000000000000t1","duration":null,"resolution":null,"fps":null,"bitrate":null,"codec":null,"fileSize":null,"status":"PROCESSING","views":0,"likes":0,"thumbnails":{"default":null},"playback":null,"quality":null,"createdAt":"2026-08-14T02:10:04.001Z","updatedAt":"2026-08-14T02:10:44.512Z"}}},"gatedButReady":{"summary":"READY, gated by price and tier — the pass minted at accessTokenUrl is refused until the viewer has access","value":{"success":true,"data":{"id":"0f1e2d3c4b5a69788796a5b4c3d2e1f0","title":"Backstage cut","description":"Members only","visibility":"TIER_EXCLUSIVE","isPaid":true,"price":4.99,"requiredTierId":"cmtier00000000000000000t1","duration":903,"resolution":"1080p","fps":30,"bitrate":4800,"codec":"h264","fileSize":541203998,"status":"READY","views":12,"likes":3,"thumbnails":{"default":"https://api.dcast.pro/api/videos/0f1e2d3c4b5a69788796a5b4c3d2e1f0/thumbnail"},"playback":{"playable":true,"hls":"https://api.dcast.pro/api/videos/0f1e2d3c4b5a69788796a5b4c3d2e1f0/master","embed":"https://dcast.tv/embed/0f1e2d3c4b5a69788796a5b4c3d2e1f0","playUrl":"https://api.dcast.pro/api/v1/videos/0f1e2d3c4b5a69788796a5b4c3d2e1f0/play","accessTokenUrl":"https://api.dcast.pro/api/videos/0f1e2d3c4b5a69788796a5b4c3d2e1f0/access-token","thumbnail":"https://api.dcast.pro/api/videos/0f1e2d3c4b5a69788796a5b4c3d2e1f0/thumbnail","requiresToken":true},"quality":"HD_1080P","createdAt":"2026-08-14T02:10:04.001Z","updatedAt":"2026-08-14T02:41:09.220Z"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"videos:read","via":"route-area"}],"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}},"patch":{"tags":["Videos"],"operationId":"patch_videos_id","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Change a video's title, description, visibility or paid access","description":"Partial update — send only the fields you are changing. `visibility` is one of PUBLIC, PRIVATE, LINK_ONLY, REGISTERED, SUBSCRIBERS, TIER_EXCLUSIVE, in either case; the answers carry the same names. Paid access is `isPaid` plus `price`; a positive price with no `isPaid` infers isPaid=true, and isPaid=false clears the price. Two behaviours to plan for. First, `currency`, `donationsEnabled` and `tags` (a video stores no tags) are REJECTED with 400 UNSUPPORTED_FIELD rather than ignored, deliberately, so you never believe a setting took effect that did not; other unknown keys are tolerated and do nothing. Second, tightening access takes effect on people who are already watching — making a public video paid, or narrowing its visibility, cuts off viewers in flight instead of waiting for a cache to expire. Loosening access does not disconnect anyone. A published video that turns paid here gets its blurred teaser clip cut automatically, exactly as when the owner changes it in the dashboard; GET /videos/{id}/teaser shows the clip and its state. The response echoes only the fields this endpoint owns; call GET /videos/{id} for the full row. The key needs the `videos:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"renamed":{"summary":"A title change — the response carries this endpoint's fields only, so call GET /videos/{id} if you need the full row back","value":{"success":true,"data":{"id":"a1b2c3d4e5f60718293a4b5c6d7e8f90","title":"Season 3 opener (remastered)","description":null,"visibility":"PUBLIC","isPaid":false,"price":null,"requiredTierId":null,"publishedAt":"2026-08-13T22:52:16.988Z","showOnSite":false,"siteOrder":null,"updatedAt":"2026-08-14T03:11:02.417Z"}}},"goneBehindAPaywall":{"summary":"Turning on paid access. This is a TIGHTENING, so anyone watching right now is cut off — it does not wait for a cache to expire","value":{"success":true,"data":{"id":"0f1e2d3c4b5a69788796a5b4c3d2e1f0","title":"Backstage cut","description":"Members only","visibility":"LINK_ONLY","isPaid":true,"price":4.99,"requiredTierId":null,"publishedAt":"2026-08-14T02:10:04.001Z","showOnSite":false,"siteOrder":null,"updatedAt":"2026-08-14T03:12:44.980Z"}}}}}}},"400":{"description":"Validation error: isPaid not boolean, price out of [0,9999], PRICE_REQUIRED (paid without price > 0), INVALID_VISIBILITY, an unsupported field (currency / donationsEnabled / tags), or no updatable field in the body. Codes on this operation: `INVALID_VISIBILITY` (visibility is not one of the allowed names. Use one of the names the operation lists: PUBLIC, LINK_ONLY, PRIVATE, REGISTERED, ACCESS_KEY (streams), SUBSCRIBERS and TIER_EXCLUSIVE (videos).) `PRICE_ABOVE_PLAN_MAX` (The price of one sale is above what the plan of the account allows. Send a price at or below details.maxUsd, or move the account to a plan with a higher maximum. Prices already saved are not changed.) `PRICE_BELOW_PLAN_MIN` (The price of one sale is below what the plan of the account allows. Send a price at or above details.minUsd, or move the account to a plan with a lower minimum. Prices already saved are not changed.) `UNSUPPORTED_FIELD` (The body carries a field this operation does not support (for example currency or donationsEnabled). Remove the field; the message says why or where to set it.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"unsupportedField":{"summary":"Refused rather than ignored: `currency`, `donationsEnabled` and `tags` would have done nothing, so they are not accepted quietly","value":{"success":false,"error":{"code":"UNSUPPORTED_FIELD","message":"Field \"currency\" is not supported on PATCH /videos/:id. Videos are billed in your Stripe Connect default currency.","field":"currency"}}}}}}},"403":{"description":"Paid access cannot be enabled on this account (e.g. NO_PAYOUT_GATEWAY); `error.code` names the reason."},"404":{"description":"Video not found or not owned by this key, or `requiredTierId` is not a tier of this account."}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Partial update. All fields optional. Pricing: set isPaid=true with a positive price to gate playback behind a one-time (PPV) purchase; set requiredTierId to gate behind a subscription tier. Sending a positive price without isPaid infers isPaid=true; setting isPaid=false clears price.","properties":{"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":["string","null"]},"visibility":{"type":"string","enum":["PUBLIC","PRIVATE","LINK_ONLY","REGISTERED","SUBSCRIBERS","TIER_EXCLUSIVE"],"description":"Case-insensitive. LINK_ONLY: anyone who has the link or the embed code, not listed on the channel. Anything else is refused 400 INVALID_VISIBILITY. Meaning of each value: /docs/video-api#visibility."},"publishedAt":{"type":["string","null"],"format":"date-time","description":"ISO-8601; a future time schedules publication, null clears it. Alias: `scheduledAt`."},"isPaid":{"type":"boolean","description":"Enable per-video pay-per-view gating. false clears price."},"price":{"type":["number","null"],"minimum":0,"maximum":9999,"description":"PPV price in USD dollars (e.g. 4.99). null/empty clears it. A positive value infers isPaid=true when isPaid is omitted."},"requiredTierId":{"type":["string","null"],"description":"Subscription tier the viewer must hold to watch. null clears the tier gate."},"showOnSite":{"type":"boolean","description":"Show this video on your own site (your channel page and the site builder's video lists). Default false for a new video. A PRIVATE or LINK_ONLY video is never shown on the site: it is stored false whatever you send, and moving a video to PRIVATE or LINK_ONLY switches it off. Same rule as the dashboard switch."},"siteOrder":{"type":["integer","null"],"minimum":0,"maximum":1000000,"description":"Position among the videos shown on your site; smaller comes first. null clears the position."}}},"examples":{"showOnSite":{"summary":"Put a public video on your own site","value":{"showOnSite":true}},"rename":{"summary":"Partial update — the fields you do not send are left alone","value":{"title":"Season 3 opener (remastered)"}},"payPerView":{"summary":"Gate playback behind a one-time purchase. A positive price on its own would have inferred isPaid=true","value":{"isPaid":true,"price":4.99}},"linkOnly":{"summary":"Anyone who has the link or the embed code can watch; the video is not listed on the channel","value":{"visibility":"LINK_ONLY"}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_VISIBILITY","when":"visibility is not one of the allowed names.","howToFix":"Use one of the names the operation lists: PUBLIC, LINK_ONLY, PRIVATE, REGISTERED, ACCESS_KEY (streams), SUBSCRIBERS and TIER_EXCLUSIVE (videos).","retryable":false},{"status":400,"code":"PRICE_ABOVE_PLAN_MAX","when":"The price of one sale is above what the plan of the account allows.","howToFix":"Send a price at or below details.maxUsd, or move the account to a plan with a higher maximum. Prices already saved are not changed.","retryable":false},{"status":400,"code":"PRICE_BELOW_PLAN_MIN","when":"The price of one sale is below what the plan of the account allows.","howToFix":"Send a price at or above details.minUsd, or move the account to a plan with a lower minimum. Prices already saved are not changed.","retryable":false},{"status":400,"code":"UNSUPPORTED_FIELD","when":"The body carries a field this operation does not support (for example currency or donationsEnabled).","howToFix":"Remove the field; the message says why or where to set it.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"videos:write"}],"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{id}/buyers/confirm":{"post":{"tags":["Videos"],"operationId":"post_videos_id_buyers_confirm","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"summary":"Import video buyers from CSV","description":"Uses the cabinet buyer import for content owned by the API key account. Requires videos:write. Missing and foreign content both return 404 TARGET_NOT_FOUND. Call preview first and submit its digest with the same CSV. Addresses are trimmed, lowercased and deduplicated. The account, content kind, content id and normalized email identify one receipt/key across cabinet and API calls. Reordered, repeated and overlapping imports reuse existing keys and email jobs; revoked, expired or deleted keys are not restored. The shared account quota allows 3 confirms issuing new keys per hour and 2000 new recipients per 24 hours across all content and API keys. Replays spend no issuance quota. Email enqueue concurrency is 5. queued means queued, accepted means gateway acceptance, pending means delivery can be retried by confirming again, unknown means queue evidence is missing; none guarantees inbox delivery. sendEmail=false returns not_sent. Retry-After accompanies quota refusals. The key needs the `videos:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Import result with per-recipient delivery state.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"issued":{"type":"integer"},"existing":{"type":"integer"},"recipients":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"state":{"type":"string","enum":["not_sent","unavailable","pending","accepted","failed","queued","unknown"]}}}}}}}}},"400":{"description":"CSV_EMPTY, CSV_MALFORMED, CSV_TOO_LARGE, CSV_TOO_MANY or CSV_PREVIEW_REQUIRED.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"TARGET_NOT_FOUND: content is missing or belongs to another account.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}},"429":{"description":"BUYER_CSV_HOURLY_LIMIT or BUYER_CSV_DAILY_LIMIT; the API key rate limit also applies.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"CSV_IMPORT_FAILED: import could not be completed.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}}},"x-dcast-side-effect":"sends email","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["csv","digest"],"properties":{"csv":{"type":"string","description":"CSV text, up to 256 KiB and 1000 nonblank data rows before deduplication. Optional email/e-mail header; comma or semicolon delimiter. Invalid addresses are reported by physical row and excluded."},"digest":{"type":"string","description":"Digest from preview for this account, content and exact CSV text."},"sendEmail":{"type":"boolean","default":true,"description":"Send each personal key by email. false issues keys without sending mail."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"videos:write"}],"x-dcast-feature":"feature.access_keys","externalDocs":{"url":"https://dcast.pro/docs/paid-catalog","description":"Invite viewers with access keys"}}},"/videos/{id}/buyers/preview":{"post":{"tags":["Videos"],"operationId":"post_videos_id_buyers_preview","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Preview import of video buyers from CSV","description":"Uses the cabinet buyer import for content owned by the API key account. Requires videos:write. Missing and foreign content both return 404 TARGET_NOT_FOUND. Validates and returns normalized addresses, duplicate count, invalid row numbers and a digest; creates no keys and sends no email. Review these results before calling confirm. At least one valid address is required to confirm. The key needs the `videos:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"CSV preview, without side effects.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"emails":{"type":"array","items":{"type":"string"}},"invalidRows":{"type":"array","items":{"type":"integer"}},"duplicates":{"type":"integer"},"total":{"type":"integer"},"digest":{"type":"string"}}}}}},"400":{"description":"CSV_EMPTY, CSV_MALFORMED, CSV_TOO_LARGE, CSV_TOO_MANY or CSV_PREVIEW_REQUIRED.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"TARGET_NOT_FOUND: content is missing or belongs to another account.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}},"429":{"description":"BUYER_CSV_HOURLY_LIMIT or BUYER_CSV_DAILY_LIMIT; the API key rate limit also applies.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying."}}},"500":{"description":"CSV_IMPORT_FAILED: import could not be completed.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"code":{"type":"string"},"retryAfterSeconds":{"type":"integer"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["csv"],"properties":{"csv":{"type":"string","description":"CSV text, up to 256 KiB and 1000 nonblank data rows before deduplication. Optional email/e-mail header; comma or semicolon delimiter. Invalid addresses are reported by physical row and excluded."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"videos:write"}],"x-dcast-feature":"feature.access_keys","externalDocs":{"url":"https://dcast.pro/docs/paid-catalog","description":"Invite viewers with access keys"}}},"/videos/{id}/comments":{"get":{"tags":["Videos"],"operationId":"get_videos_id_comments","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List comments (videos)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `comments:read` permission or a wider one of the same area such as `comments:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"page","in":"query","required":false,"description":"1-based page number.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Page size, default 50, at most 100; a larger value is lowered to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"authorName":{"type":"string"},"username":{"type":"string"},"userId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"editedAt":{"type":["string","null"],"format":"date-time"}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"comments:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}},"post":{"tags":["Videos"],"operationId":"post_videos_id_comments","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Create comment (videos)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `comments:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Created. Body: the success envelope with the new resource in `data`.","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"authorName":{"type":"string"},"username":{"type":"string"},"userId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"editedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"One of text / content / body / message is required and must be non-empty.","properties":{"text":{"type":"string","description":"The comment text. Send exactly one of `text`, `content`, `body`, `message`; the first one present wins, in that order.","maxLength":10000},"content":{"type":"string","description":"Alias of `text`."},"body":{"type":"string","description":"Alias of `text`."},"message":{"type":"string","description":"Alias of `text`."},"authorName":{"type":"string","description":"Display name for the comment, cut to 80 characters; defaults to your channel name."},"username":{"type":"string","description":"Alias of authorName.","maxLength":80}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"comments:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{id}/comments/{commentId}":{"delete":{"tags":["Videos"],"operationId":"delete_videos_id_comments_commentId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Delete comment (videos)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `comments:delete` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Deleted. No body."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"comments:delete"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}},"patch":{"tags":["Videos"],"operationId":"patch_videos_id_comments_commentId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update comment (videos)","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `comments:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"authorName":{"type":"string"},"username":{"type":"string"},"userId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"editedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"One of text / content / body / message is required.","properties":{"text":{"type":"string","description":"The comment text. Send exactly one of `text`, `content`, `body`, `message`; the first one present wins, in that order.","maxLength":10000},"content":{"type":"string","description":"Alias of `text`."},"body":{"type":"string","description":"Alias of `text`."},"message":{"type":"string","description":"Alias of `text`."}}}}}},"x-dcast-errors":[{"status":403,"code":"FORBIDDEN","when":"The credential is valid but is not the owner or host of this resource.","howToFix":"Act on resources of your own account, or ask the owner to do it.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"comments:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}},"put":{"tags":["Videos"],"operationId":"put_videos_id_comments_commentId","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Update comment (videos) (same operation as PATCH /videos/{id}/comments/{commentId})","description":"Same handler, same request and same response as PATCH /videos/{id}/comments/{commentId}; that is the path to call. The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `comments:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"authorName":{"type":"string"},"username":{"type":"string"},"userId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"editedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"One of text / content / body / message is required.","properties":{"text":{"type":"string","description":"The comment text. Send exactly one of `text`, `content`, `body`, `message`; the first one present wins, in that order.","maxLength":10000},"content":{"type":"string","description":"Alias of `text`."},"body":{"type":"string","description":"Alias of `text`."},"message":{"type":"string","description":"Alias of `text`."}}}}}},"x-dcast-errors":[{"status":403,"code":"FORBIDDEN","when":"The credential is valid but is not the owner or host of this resource.","howToFix":"Act on resources of your own account, or ask the owner to do it.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"comments:write"}],"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{id}/editor/metadata":{"get":{"tags":["Videos"],"operationId":"get_videos_id_editor_metadata","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get metadata (editor)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `videos:read` permission or a wider one of the same area such as `videos:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-errors":[{"status":400,"code":"VIDEO_NOT_READY","when":"The video is not processed yet.","howToFix":"Wait until get_video_status says READY, then repeat.","retryable":false}],"x-dcast-requires":[{"kind":"permission","permission":"videos:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{id}/embed":{"get":{"tags":["Videos"],"operationId":"get_videos_id_embed","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Embed code for a video — paste `responsive` as is","description":"Ready-to-paste HTML. `responsive` is the default: a box that fills the width of its container in the video's shape, with no fixed width or height, so a column, a grid cell or a phone screen shows the whole player. `iframe` is one fixed pixel size (`width`/`height` query overrides it). Paste either as returned: a frame, border, rounded or fixed-height box, or width/height/object-fit set on the iframe, cuts off the picture or the player controls. The embedded player starts playing muted as soon as it loads, so a page with several videos shows their thumbnails and loads one player for the video the visitor opens. Owner-scoped: another account's video answers 404. The key needs the `videos:read` permission or a wider one of the same area such as `videos:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"width","in":"query","required":false,"description":"Embed width in pixels; above 4096 is lowered to 4096, a value that is not a positive number is ignored. Alone, it sizes the height by the video aspect ratio. Default: the video's own size.","schema":{"type":"integer","minimum":1}},{"name":"height","in":"query","required":false,"description":"Embed height in pixels; above 4096 is lowered to 4096, a value that is not a positive number is ignored. Alone, it sizes the width by the video aspect ratio. Default: the video's own size.","schema":{"type":"integer","minimum":1}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"embed":{"summary":"Embed snippets for a video — `responsive` (the default) fills its container at the video ratio, `iframe` is fixed-size (width/height query overrides it)","value":{"success":true,"data":{"responsive":"<div style=\"position:relative;width:100%;padding-bottom:56.25%;height:0;border-radius:16px;overflow:hidden;\"><iframe src=\"https://dcast.tv/embed/a1b2c3d4e5f60718293a4b5c6d7e8f90\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;border:0;\" title=\"Video player\" frameborder=\"0\" allow=\"autoplay; fullscreen; encrypted-media; picture-in-picture; payment; clipboard-write\" allowfullscreen webkitallowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\"></iframe></div>","iframe":"<iframe src=\"https://dcast.tv/embed/a1b2c3d4e5f60718293a4b5c6d7e8f90\" width=\"720\" height=\"405\" title=\"Video player\" frameborder=\"0\" allow=\"autoplay; fullscreen; encrypted-media; picture-in-picture; payment; clipboard-write\" allowfullscreen webkitallowfullscreen referrerpolicy=\"strict-origin-when-cross-origin\" style=\"border:0;border-radius:16px;overflow:hidden;max-width:100%;height:auto;aspect-ratio:16/9\"></iframe>","url":"https://dcast.tv/embed/a1b2c3d4e5f60718293a4b5c6d7e8f90","width":720,"height":405,"aspectRatio":"16/9","options":{"autoplay":true,"muted":true,"loop":false,"controls":true}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"videos:read","via":"route-area"}],"x-dcast-feature":"feature.embed_player","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Embed your player on any website, or only on the sites you choose"}}},"/videos/{id}/like":{"delete":{"tags":["Videos"],"operationId":"delete_videos_id_like","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"summary":"Remove a like from a video","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `videos:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"liked":{"type":"boolean"},"totalLikes":{"type":"integer"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"videos:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}},"post":{"tags":["Videos"],"operationId":"post_videos_id_like","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Like video","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `videos:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"liked":{"type":"boolean"},"totalLikes":{"type":"integer"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"videos:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{id}/play":{"get":{"tags":["Videos"],"operationId":"get_videos_id_play","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get play of video","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `videos:read` permission or a wider one of the same area such as `videos:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"id":{"type":"string"},"hls":{},"embed":{"type":"string"},"duration":{},"visibility":{}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope. Codes on this operation: `NOT_READY` (The thing asked for is not ready yet (the preview is still being prepared, the video is still processing). Wait a few seconds and repeat.)"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Codes on this operation: `CONTENT_UNAVAILABLE` (The card exists but its media cannot be served right now. Ask again in a few seconds.) `NOT_READY` (The thing asked for is not ready yet (the preview is still being prepared, the video is still processing). Wait a few seconds and repeat.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-dcast-errors":[{"status":404,"code":"CONTENT_EMPTY","when":"The card has no content to play (deleted recording, or a broadcast that recorded nothing).","howToFix":"Show the empty frame with the cover; do not retry.","retryable":false},{"status":404,"code":"CONTENT_NOT_FOUND","when":"The card does not exist or was deleted.","howToFix":"Do not retry; show that the content is gone.","retryable":false},{"status":409,"code":"NOT_READY","when":"The thing asked for is not ready yet (the preview is still being prepared, the video is still processing).","howToFix":"Wait a few seconds and repeat.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"CONTENT_UNAVAILABLE","when":"The card exists but its media cannot be served right now.","howToFix":"Ask again in a few seconds.","retryable":true,"retryAfterSeconds":5},{"status":503,"code":"NOT_READY","when":"The thing asked for is not ready yet (the preview is still being prepared, the video is still processing).","howToFix":"Wait a few seconds and repeat.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"videos:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{id}/progress":{"get":{"tags":["Videos"],"operationId":"get_videos_id_progress","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get progress of video","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `videos:read` permission or a wider one of the same area such as `videos:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"videoId":{"type":"string"},"watchProgressSeconds":{},"updatedAt":{"type":["string","null"],"format":"date-time"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"videos:read","via":"route-area"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{id}/related":{"get":{"tags":["Videos"],"operationId":"get_videos_id_related","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Get related of video","description":"Full request/response shape on the topic page; envelope shapes under components.schemas.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10},"description":"Page size, default 10, at most 50; a larger value is lowered to 50."}],"security":[],"responses":{"200":{"description":"Related videos. Shape documented at /docs/video-api.","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"videoId":{"type":"string"},"related":{"type":"array","items":{"type":"object","properties":{}}}}}}}}},"headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}}},"404":{"description":"Source video not found."}},"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{id}/status":{"get":{"tags":["Videos"],"operationId":"get_videos_id_status","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"Poll one video through upload, encoding and thumbnails","description":"The progress endpoint for a video you have uploaded — the most-called operation on this API, because it is the one you loop on. `data.status` is the canonical field: READY and FAILED are terminal, so stop polling when you see either. `progress` is the upload percentage while UPLOADING and restarts at 0 for PROCESSING; `stages` breaks the pipeline into upload / processing / thumbnails (thumbnails always equals processing). Two things routinely surprise a first integration: `processing.eta` is null until the encoder has enough samples to estimate one, so never render it unconditionally; and `stages._raw` carries our internal enum names, which are what the canonical status is mapped FROM — branch on `status`, not on `_raw`. A video that is still uploading is not an error and not a 404: it is this endpoint answering 200 with an early stage. The key needs the `videos:read` permission or a wider one of the same area such as `videos:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"done":{"summary":"Terminal — poll can stop","value":{"success":true,"data":{"videoId":"a1b2c3d4e5f60718293a4b5c6d7e8f90","status":"READY","progress":100,"stages":{"upload":"DONE","processing":"DONE","thumbnails":"DONE","_raw":{"upload":"UPLOADED","processing":"COMPLETED"}},"results":{"phase":"completed","recoveredFromError":false},"upload":{"progress":100,"bytesUploaded":1762243589,"bytesTotal":1762243589,"formatted":{"uploaded":"1.64 GB","total":"1.64 GB"}},"processing":{"progress":100,"eta":null,"etaConfidence":null}}}},"inFlight":{"summary":"Mid-encode — note eta is null until it can be estimated, so never render it unconditionally","value":{"success":true,"data":{"videoId":"0f1e2d3c4b5a69788796a5b4c3d2e1f0","status":"PROCESSING","progress":41,"stages":{"upload":"DONE","processing":"RUNNING","thumbnails":"RUNNING","_raw":{"upload":"UPLOADED","processing":"PROCESSING"}},"results":{"phase":"encoding","recoveredFromError":false},"upload":{"progress":100,"bytesUploaded":541203998,"bytesTotal":541203998,"formatted":{"uploaded":"516 MB","total":"516 MB"}},"processing":{"progress":41,"eta":null,"etaConfidence":null}}}},"pending":{"summary":"Right after the upload was reserved and before any byte arrived — status PENDING, progress 0, results null","value":{"success":true,"data":{"videoId":"a1b2c3d4e5f60718293a4b5c6d7e8f90","status":"PENDING","progress":0,"stages":{"upload":"PENDING","processing":"PENDING","thumbnails":"PENDING","_raw":{"upload":"PREPARING","processing":"PENDING"}},"results":null,"upload":{"progress":0,"bytesUploaded":0,"bytesTotal":20000000,"formatted":{"uploaded":"0 Bytes","total":"19.07 MB"}},"processing":{"progress":0,"eta":null,"etaConfidence":null}}}},"failed":{"summary":"Terminal failure — status FAILED is reached from several internal enums (see stages._raw)","value":{"success":true,"data":{"videoId":"0f1e2d3c4b5a69788796a5b4c3d2e1f0","status":"FAILED","progress":0,"stages":{"upload":"DONE","processing":"FAILED","thumbnails":"FAILED","_raw":{"upload":"UPLOADED","processing":"FAILED"}},"results":{"phase":"failed","recoveredFromError":false},"upload":{"progress":100,"bytesUploaded":541203998,"bytesTotal":541203998,"formatted":{"uploaded":"516 MB","total":"516 MB"}},"processing":{"progress":0,"eta":null,"etaConfidence":null}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"videos:read","via":"route-area"}],"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{id}/teaser":{"get":{"tags":["Videos"],"operationId":"get_videos_id_teaser","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"The paywall teaser of a video - whether it is gated, which clip a viewer sees, and the state of each clip","description":"A video that is paid, needs a subscription tier, or is SUBSCRIBERS / TIER_EXCLUSIVE is gated, and a viewer who cannot play it yet is shown a short clip behind the buy button. `mode` names that clip: `promo` (the creator's own clip, clear, always wins), `preview` (the blurred clip the platform cuts by itself once a published video becomes paid) or `none` (not gated, or no clip exists yet). `promo` and `preview` each carry `url` and `status` (PENDING, PROCESSING, COMPLETED, FAILED; null when there is none), so you can see whether the preview is still being cut. The same clip rule the watch page applies, read for the owner: the owner sees the state, a viewer only the clip. Owner-scoped: another account's video answers 404. The key needs the `videos:read` permission or a wider one of the same area such as `videos:*` (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"videoId":{"type":"string"},"gated":{"type":"boolean","description":"True when a viewer who is not the owner cannot freely play the video: it is paid, needs a tier, or is SUBSCRIBERS / TIER_EXCLUSIVE."},"mode":{"type":"string","enum":["promo","preview","none"],"description":"The clip a viewer is shown behind the buy button: the creator's own promo wins over the server's blurred preview; none when the video is not gated or no clip exists yet."},"promo":{"type":"object","properties":{"url":{"type":["string","null"]},"status":{"type":["string","null"],"description":"PENDING, PROCESSING, COMPLETED or FAILED."}},"description":"The creator's own promo clip."},"preview":{"type":"object","properties":{"url":{"type":["string","null"]},"status":{"type":["string","null"],"description":"PENDING, PROCESSING, COMPLETED or FAILED."}},"description":"The blurred preview clip the platform cuts from the video once it is paid and published."}}}}},"examples":{"preview":{"summary":"A paid video whose blurred preview clip is ready","value":{"success":true,"data":{"videoId":"a1b2c3d4e5f60718293a4b5c6d7e8f90","gated":true,"mode":"preview","promo":{"url":null,"status":null},"preview":{"url":"https://api.dcast.pro/api/videos/a1b2c3d4e5f60718293a4b5c6d7e8f90/preview/master.m3u8","status":"COMPLETED"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"permission","permission":"videos:read","via":"route-area"}],"x-dcast-feature":"feature.paid_teaser","externalDocs":{"url":"https://dcast.pro/docs/paid-catalog","description":"Let visitors preview paid videos before they buy"}}},"/videos/{id}/views":{"post":{"tags":["Videos"],"operationId":"post_videos_id_views","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Record a view of a video","description":"Full request/response shape on the topic page; envelope shapes under components.schemas.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"videoId":{"type":"string"},"totalViews":{"type":["integer","null"],"description":"Views of the video as the cabinet counts them; null when that count could not be read, which is not zero. A view registered by this call is counted once its playback qualifies."},"yourViewRegistered":{"type":"boolean"},"deduped":{"type":"boolean"}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Every field is optional. Fields the handler does not read are ignored.","properties":{"sessionId":{"type":["string","null"],"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$","description":"Your own opaque id for the viewing session, 1 to 64 characters from A-Z a-z 0-9 _ -; repeat beacons with the same id collapse into one view. Anything else is 400."},"watchDurationS":{"type":["integer","null"],"minimum":0,"maximum":86400,"description":"Seconds watched, 0 to 86400 (a decimal is rounded)."},"watchedPercent":{"type":["integer","null"],"minimum":0,"maximum":100,"description":"Share of the video watched, 0 to 100 (a decimal is rounded)."},"viewerCountry":{"type":["string","null"],"pattern":"^[A-Za-z]{2}$","description":"Two-letter ISO country code of the viewer; stored upper-case. Anything else is 400."},"referrer":{"type":["string","null"],"format":"uri","description":"Page the viewer came from, an http(s) URL; any other value is ignored."}}},"examples":{"beacon":{"summary":"Seconds watched, plus your own opaque session id so repeat beacons collapse into one view","value":{"watchDurationS":128,"sessionId":"your-own-opaque-session-id"}}}}}},"x-dcast-errors":[{"status":429,"code":"RATE_LIMIT","when":"Too many view events from one address for one video.","howToFix":"Wait a minute and repeat.","retryable":true,"retryAfterSeconds":60}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/videos/{videoId}/purchases":{"get":{"tags":["Videos"],"operationId":"get_videos_videoId_purchases","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List purchases (videos)","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. Money surface: the key must be owner-class (scope FULL_ACCESS with no permission list), or hold `finance:read`, `finance:write`, `finance:*` or `*`; otherwise 403 FINANCIAL_SCOPE_REQUIRED.","parameters":[{"name":"videoId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"video":{"type":"object","properties":{}},"totalPurchases":{"type":"integer"},"totalRevenue":{},"purchases":{"type":"array","items":{"type":"object","properties":{}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-requires":[{"kind":"financial","mode":"read"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.paid_access_api","externalDocs":{"url":"https://dcast.pro/docs/monetization","description":"Video paywall API: sell access to your videos from your own code"}}},"/videos/import":{"post":{"tags":["Videos"],"operationId":"post_videos_import","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Import videos from links","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `videos:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"202":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"batchId":{"type":"string"},"importId":{"type":["string","null"]},"imports":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}},"rejected":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"code":{"type":"string"},"hint":{"type":["string","null"]}}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Import videos from public links. Send one of: `items` (objects), `urls` (strings) or a single `url`. At most 500 links per request. Answers 202 with a batchId; poll GET /imports/{id} for each import.","properties":{"items":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"Public link to the video file or page."},"title":{"type":"string","description":"Title, cut to 100 characters."},"description":{"type":"string","description":"Cut to 5000 characters."},"visibility":{"type":"string","description":"Visibility word as for PATCH /videos/{id}; an unknown value falls back to PRIVATE."}},"required":["url"]},"description":"Links to import, each with optional title, description and visibility.","maxItems":500},"urls":{"type":"array","items":{"type":"string"},"description":"Plain links; each becomes an item with no title.","maxItems":500},"url":{"type":"string","description":"A single link. title, description and visibility next to it apply to it."},"title":{"type":"string","description":"Title applied to the single `url`."},"description":{"type":"string","description":"Description applied to the single `url`."},"visibility":{"type":"string","description":"Visibility applied to the single `url`."}}}}}},"x-dcast-requires":[{"kind":"permission","permission":"videos:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.import_by_link_api","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Import video from URL with the DCAST API, from one link to a bulk video import"}}},"/videos/import/vimeo":{"post":{"tags":["Videos"],"operationId":"post_videos_import_vimeo","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"summary":"Import your own videos from Vimeo","description":"The request is declared on this operation: the path, query and requestBody lists name every field the handler reads, with type, whether it is required and the allowed values. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs. The key needs the `videos:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Success"},"202":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"object","properties":{"batchId":{"type":"string"},"importId":{"type":["string","null"]},"imports":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}},"rejected":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"code":{"type":"string"},"hint":{"type":["string","null"]}}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"422":{"description":"Codes on this operation: `VIMEO_DOWNLOAD_UNAVAILABLE` (The owner has switched downloads off for this video on Vimeo. Allow downloads for the video in its Vimeo settings, then import it again.) `VIMEO_NOT_FOUND` (Vimeo has no such video for this account. Check the video id or link; it must be a video of the token's own Vimeo library.) `VIMEO_NO_ACCESS` (The Vimeo account behind the token has no access to the video. Use a token of the Vimeo account that owns the video.) `VIMEO_REFERENCE_INVALID` (The item is not a Vimeo video id or a vimeo.com video link. Send the numeric Vimeo video id or the vimeo.com link of the video.) `VIMEO_TOKEN_INVALID` (Vimeo did not accept the personal access token (revoked, mistyped or of the wrong shape). Create a new Vimeo personal access token with the scopes public, private and video_files, and send it again.) `VIMEO_TOKEN_SCOPE` (The Vimeo token lacks a required scope. Create a Vimeo token with the scopes public, private and video_files, and send it again.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"502":{"description":"Codes on this operation: `VIMEO_RATE_LIMITED` (Vimeo is limiting requests. Try again in a few minutes.) `VIMEO_UNAVAILABLE` (Vimeo could not be asked right now. Try again in a few minutes.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Import your own videos from Vimeo with a Vimeo personal access token (scopes public, private, video_files). At most 500 videos per request. The token is used for this call and the import only, and is not stored. Answers 202 with a batchId; poll GET /imports/{id} for each import.","required":["token","items"],"properties":{"token":{"type":"string","description":"Vimeo personal access token, 16 to 200 characters."},"items":{"type":"array","items":{"type":"string"},"description":"Vimeo video ids or vimeo.com links; an object with id, url or ref and optional title, description and visibility is accepted too.","minItems":1,"maxItems":500}}}}}},"x-dcast-errors":[{"status":422,"code":"VIMEO_DOWNLOAD_UNAVAILABLE","when":"The owner has switched downloads off for this video on Vimeo.","howToFix":"Allow downloads for the video in its Vimeo settings, then import it again.","retryable":false},{"status":422,"code":"VIMEO_NOT_FOUND","when":"Vimeo has no such video for this account.","howToFix":"Check the video id or link; it must be a video of the token's own Vimeo library.","retryable":false},{"status":422,"code":"VIMEO_NO_ACCESS","when":"The Vimeo account behind the token has no access to the video.","howToFix":"Use a token of the Vimeo account that owns the video.","retryable":false},{"status":422,"code":"VIMEO_REFERENCE_INVALID","when":"The item is not a Vimeo video id or a vimeo.com video link.","howToFix":"Send the numeric Vimeo video id or the vimeo.com link of the video.","retryable":false},{"status":422,"code":"VIMEO_TOKEN_INVALID","when":"Vimeo did not accept the personal access token (revoked, mistyped or of the wrong shape).","howToFix":"Create a new Vimeo personal access token with the scopes public, private and video_files, and send it again.","retryable":false},{"status":422,"code":"VIMEO_TOKEN_SCOPE","when":"The Vimeo token lacks a required scope.","howToFix":"Create a Vimeo token with the scopes public, private and video_files, and send it again.","retryable":false},{"status":502,"code":"VIMEO_RATE_LIMITED","when":"Vimeo is limiting requests.","howToFix":"Try again in a few minutes.","retryable":true},{"status":502,"code":"VIMEO_UNAVAILABLE","when":"Vimeo could not be asked right now.","howToFix":"Try again in a few minutes.","retryable":true}],"x-dcast-requires":[{"kind":"permission","permission":"videos:write"}],"x-dcast-generated-summary":true,"x-dcast-feature":"feature.vimeo_import","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Import your library from Vimeo"}}},"/videos/upload":{"post":{"tags":["Videos"],"operationId":"post_videos_upload","x-dcast-tool-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"summary":"Start a video upload and get the URL to send the bytes to","description":"Step one of two. This call creates the video row and hands back a single-use, signed upload URL in `data.upload.url`; the bytes themselves go to that URL in step two (PUT /uploads/{token}), NOT to this endpoint. Read `data.upload.chunked` before sending: false means one PUT of the whole body, true means send `chunkSize` slices with a Content-Range header. The URL carries its own credential and its own expiry — a pk_ key is neither used nor needed on it. Then poll `data.statusUrl`. The refusals are worth handling separately rather than as one failure: QUOTA_EXCEEDED means you are out of space, while QUOTA_CHECK_UNAVAILABLE and the retryable NO_CAPABLE_WORKER mean nothing was started and a retry is right — see the examples, and note that the quota sizes arrive in two different shapes. The key needs the `videos:write` permission (a key with no permission list or with `*` has it); otherwise 403 PERMISSION_DENIED.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"singlePut":{"summary":"A 20 MB file — chunked:false, so one PUT of the whole body is correct","value":{"success":true,"data":{"video":{"id":"a1b2c3d4e5f60718293a4b5c6d7e8f90","title":"Season 3 opener","description":"","visibility":"PRIVATE","status":"PENDING"},"upload":{"url":"https://api.dcast.pro/api/v1/uploads/<opaque-signed-upload-token>","method":"PUT","expiresAt":"2026-08-14T04:27:19.142Z","maxFileSize":22000000,"chunkSize":99614720,"chunked":false,"instructions":"Single PUT request for small files"},"statusUrl":"/api/v1/videos/a1b2c3d4e5f60718293a4b5c6d7e8f90/status"}}},"chunked":{"summary":"A 1 GB file — chunked:true and the instructions change; send Content-Range in chunkSize slices","value":{"success":true,"data":{"video":{"id":"0f1e2d3c4b5a69788796a5b4c3d2e1f0","title":"Backstage cut","description":"Members only","visibility":"PRIVATE","status":"PENDING"},"upload":{"url":"https://api.dcast.pro/api/v1/uploads/<opaque-signed-upload-token>","method":"PUT","expiresAt":"2026-08-14T04:27:19.142Z","maxFileSize":1100000000,"chunkSize":99614720,"chunked":true,"instructions":"Use Content-Range header for chunked upload: bytes START-END/TOTAL"},"statusUrl":"/api/v1/videos/0f1e2d3c4b5a69788796a5b4c3d2e1f0/status"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"HTTP 403 Codes on this operation: `QUOTA_EXCEEDED` (Storage or another plan quota is used up. The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"quotaExceededPreCheck":{"summary":"Out of space, caught before the asset row — the sizes arrive NESTED under error.quota","value":{"success":false,"error":{"code":"QUOTA_EXCEEDED","message":"Storage quota exceeded","quota":{"used":"2.1 TiB","limit":"2 TiB","available":"0 B"}}}},"quotaExceededOnHold":{"summary":"Same code, FLAT fields: two uploads raced for the last of the space and the hold refused this one (partner-api-v1.js:5037). Read error.code, not the shape","value":{"success":false,"error":{"code":"QUOTA_EXCEEDED","message":"Storage quota exceeded","used":"2 TiB","limit":"2 TiB","available":"0 B"}}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"413":{"description":"HTTP 413","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"fileTooLarge":{"summary":"fileSize is over the one-file limit: refused before any asset row or storage hold. error.maxFileSizeBytes is the limit; split or re-encode the file","value":{"success":false,"code":"FILE_TOO_LARGE","error":{"code":"FILE_TOO_LARGE","message":"The file is larger than the 100 GiB limit for one video.","maxFileSizeBytes":107374182400,"maxFileSize":"100 GiB","fileSizeBytes":107374182401}}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"The upload could not be started. `error.code` distinguishes the causes; `retryable` (or its absence) says whether a retry is advised — see the examples. Codes on this operation: `NO_UPLOAD_WORKERS` (No upload server is online. Repeat after a short wait.) `UPLOAD_PLACEMENT_FAILED` (The upload could not be placed on a server; nothing was reserved. Repeat the request.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"noCapableWorker":{"summary":"Retryable: storage is momentarily unreachable. Retry-After carries the measured wait; nothing was sent, so simply start again","value":{"success":false,"error":{"code":"NO_CAPABLE_WORKER","cause":"NO_WORKER_SERVING_UPLOADS","retryable":true,"retryAfterSeconds":30,"message":"The upload server is not answering right now. Nothing has been sent yet — start the upload again shortly."}}},"noCapableWorkerPermanent":{"summary":"Same code, retryable:false — waiting will not clear it. Surface it and stop; do not build a retry loop on the code alone","value":{"success":false,"error":{"code":"NO_CAPABLE_WORKER","cause":"NO_FREE_STORAGE","retryable":false,"retryAfterSeconds":null,"message":"Our upload servers have no free space right now. We have been alerted — please contact support."}}},"quotaCheckUnavailable":{"summary":"We could not read your usage, so nothing was started. Distinct from QUOTA_EXCEEDED on purpose: this one IS worth retrying","value":{"success":false,"error":{"code":"QUOTA_CHECK_UNAVAILABLE","message":"Storage usage could not be read; upload not started","retryable":true}}}}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","description":"Step 1 of 2: reserve the asset and mint an upload URL. No bytes are sent here — PUT them to data.upload.url next. Every field is optional, but fileSize should be the real byte count: it is what the quota check and the storage hold are taken against, and it sizes the token (maxFileSize = fileSize x 1.1, rounded up to a whole byte, never above the one-file limit). A fileSize over the one-file limit (100 GiB) is refused 413 FILE_TOO_LARGE before any card or storage hold exists; error.maxFileSizeBytes names the limit.","properties":{"title":{"type":"string","description":"Falls back to fileName, then to \"Untitled Video\"."},"fileName":{"type":"string","description":"Defaults to \"video.mp4\". Also the title fallback."},"description":{"type":"string","description":"Defaults to an empty string."},"visibility":{"type":"string","description":"Case-insensitive; defaults to PRIVATE when omitted. Accepts the same values as PATCH /videos/{id}; an unknown value is refused 400 INVALID_VISIBILITY.","enum":["PUBLIC","LINK_ONLY","PRIVATE","SUBSCRIBERS","TIER_EXCLUSIVE","REGISTERED"]},"fileSize":{"type":"integer","minimum":0,"description":"Byte count of the file you are about to send. Omitted or unparseable counts as 0, which asks for no space and mints a 100 GiB ceiling."}}},"examples":{"singlePut":{"summary":"The call that produces the singlePut response below: a 20 MB file, title given, everything else left to default (visibility PRIVATE, description empty)","value":{"title":"Season 3 opener","fileName":"season-3-opener.mp4","fileSize":20000000}},"chunked":{"summary":"The call that produces the chunked response below: 1 GB is over the threshold, so `chunked` comes back true and the bytes go in Content-Range slices","value":{"title":"Backstage cut","fileName":"backstage-cut.mp4","description":"Members only","fileSize":1000000000}}}}}},"x-dcast-errors":[{"status":400,"code":"INVALID_VISIBILITY","when":"visibility is not one of the allowed names.","howToFix":"Use one of the names the operation lists: PUBLIC, LINK_ONLY, PRIVATE, REGISTERED, ACCESS_KEY (streams), SUBSCRIBERS and TIER_EXCLUSIVE (videos).","retryable":false},{"status":403,"code":"QUOTA_EXCEEDED","when":"Storage or another plan quota is used up.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false},{"status":503,"code":"NO_UPLOAD_WORKERS","when":"No upload server is online.","howToFix":"Repeat after a short wait.","retryable":true,"retryAfterSeconds":30},{"status":503,"code":"UPLOAD_PLACEMENT_FAILED","when":"The upload could not be placed on a server; nothing was reserved.","howToFix":"Repeat the request.","retryable":true,"retryAfterSeconds":5}],"x-dcast-requires":[{"kind":"permission","permission":"videos:write"}],"x-dcast-feature":"feature.api_integration","externalDocs":{"url":"https://dcast.pro/docs/video-api","description":"Run your videos and live broadcasts from your own site through the DCAST API"}}},"/webhooks/ips":{"get":{"tags":["Webhooks"],"operationId":"get_webhooks_ips","x-dcast-tool-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"summary":"List the IP addresses webhooks are sent from","description":"Takes no query parameters and no request body: the path parameters are the whole request. Success answers {success: true, data}; a refusal answers {success: false, error: {code, message, field?}}. Guides: https://dcast.pro/docs.","parameters":[{"$ref":"#/components/parameters/XDCASTRequestId"},{"$ref":"#/components/parameters/DcastAPIVersion"}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"advertised":{"summary":"Allowlist source — the addresses shown here are RFC 5737 placeholders; call the endpoint for the live values","value":{"success":true,"data":{"ips":["203.0.113.10/32"],"note":"Current egress IP(s) for partner-webhook deliveries from api.dcast.pro. Allowlist for debugging; for production-grade firewall pinning, contact support for a static-IP arrangement (today the egress is shared with the backend host and may change on ISP DHCP renewal).","lastUpdated":"2026-05-28"}}},"noneConfigured":{"summary":"Nothing configured — an empty list and a note, never a 500","value":{"success":true,"data":{"ips":[],"note":"No fixed outbound IPs published. Allowlist by domain (api.dcast.pro) or contact support for a static-IP arrangement.","lastUpdated":null}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"description":"Method not allowed on this path. See `Allow` response header for the supported methods."},"409":{"description":"Conflict (e.g. unique-constraint hit), or IDEMPOTENCY_IN_FLIGHT: the first request with this Idempotency-Key is still running, retry shortly. NOT a replay: a replay answers the original status and body with X-DCAST-Idempotent-Replay: true. Same key with a different body is 422 IDEMPOTENCY_KEY_REUSE; a malformed key is 400 INVALID_IDEMPOTENCY_KEY. Body shape matches Error envelope."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}},"x-dcast-generated-summary":true,"x-dcast-feature":"feature.webhook_delivery","externalDocs":{"url":"https://dcast.pro/docs/webhooks","description":"Video webhook API with signature verification and a delivery log"}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"pk_<40 hex chars>","description":"Partner API key: `pk_` followed by 40 lowercase hex characters. Create it in the dashboard (Settings → API keys). Keys are creator-scoped — they cannot touch other creators' resources and cannot manage admin/payout state. Key management over the API: any key may list the account's keys (GET /me/api-keys, key material redacted) and revoke itself; minting (POST /me/api-keys) and revoking other keys need a FULL_ACCESS key or an X-User-Token (403 OWNER_SCOPE_REQUIRED otherwise). Monetization (checkout / payment / embedded donation forms) is additionally ORIGIN-LOCKED: on the Partner API the request Origin/Referer must be a dcast platform host or an integration domain you have declared AND verified for your account (your creator custom domain does not count on this path). A key with NO declared integration domain is rejected 403 `integration_domain_required` when monetizing off-platform; a request from an undeclared origin is rejected 403 `origin_not_allowed`. Declare + verify your integration domains (DNS TXT record) in the dashboard: Site customization → Domain → Integration domains. The embed allowlist does not take part in this check. Walkthrough: https://dcast.pro/docs/monetization#domain-verification."},"uploadToken":{"type":"apiKey","in":"path","name":"token","description":"Single-use upload token (NOT a pk_* key), returned as data.upload.url by POST /videos/upload. It is HMAC-signed and carries its own expiry; a malformed, forged or expired token is rejected 401 (INVALID_TOKEN / TOKEN_EXPIRED) before any bytes are accepted. Send the bytes to the returned URL as-is — this endpoint does not read the Authorization header, so a pk_* key neither helps nor is required here. HEAD the same URL first with redirects disabled, require 307, then PUT directly to Location to avoid replaying bytes through the API."},"previewToken":{"type":"apiKey","in":"query","name":"token","description":"Per-resource preview JWT (NOT a pk_* key). Mint via GET /streams/{id}/preview-url (or /restreams/{id}/preview-url) with your bearer key; the returned token is owner-bound, short-lived and revocable, and scopes playback to that one stream/restream preview. A missing or forged token yields 0 bytes — the preview.flv byte path is never anonymous despite not taking the pk_* bearer header."}},"parameters":{"XDCASTRequestId":{"name":"X-DCAST-Request-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Optional client-side correlation ID. Preferred format is UUIDv4; any other value is silently replaced with a fresh UUIDv4 (no 400). The response header always echoes a canonical UUIDv4 — quote that in support tickets."},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,255}$"},"description":"Opaque dedup key — 24h replay window. Sent on a retry, it returns the first response instead of doing the work twice. Only the operations that list this header honour it; on any other operation it is ignored."},"DcastAPIVersion":{"name":"Dcast-API-Version","in":"header","required":false,"schema":{"type":"string","enum":["v1"]},"description":"Accepted but not read today: v1 is the only version. See /docs/versioning."}},"headers":{"XDCASTRequestIdResponse":{"description":"Per-request UUIDv4 — quote in support tickets.","schema":{"type":"string","format":"uuid"}},"XRateLimitLimit":{"description":"Max requests in the current 60s window for your pk_* key.","schema":{"type":"integer"}},"XRateLimitRemaining":{"description":"Requests left in the current window. -1 = backend storage unavailable.","schema":{"type":"integer"}},"XRateLimitReset":{"description":"Unix-epoch seconds when the current window closes.","schema":{"type":"integer"}},"DcastAPIVersionResponse":{"description":"API version that served this request.","schema":{"type":"string","enum":["v1"]}},"XDCASTIdempotentReplay":{"description":"Present and \"true\" when the response was replayed from the Idempotency-Key cache.","schema":{"type":"string","enum":["true"]}},"XDCASTIdempotency":{"description":"Present when an Idempotency-Key was supplied but NOT applied: \"bypassed-storage-unavailable\" means dedup storage was down and this call was executed without replay protection.","schema":{"type":"string","enum":["bypassed-storage-unavailable"]}},"RetryAfter":{"description":"On 429: seconds to wait before retrying.","schema":{"type":"integer"}}},"schemas":{"SuccessEnvelope":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"description":"Most list endpoints return `data.<collection>` plus `data.pagination` (PagePagination: page, limit, total, pages, and offset when the request used ?offset=). Six lists return `data` as an array with `pagination` beside it at the top level: GET /me/bookings, /me/notifications (also `unreadCount`), /me/webhooks/{id}/deliveries (cursor form), /support/tickets, /booking/bookings and /booking/waitlist. Each operation's 200 schema states which. A few lists have no pagination at all and return the whole set as a bare array in `data`: GET /me/webhooks, /rooms/{id}/polls, /rooms/{id}/quizzes, /streams/{id}/chat/moderation/queue, /booking/products, /booking/discount-codes and /booking/products/{productId}/cohorts."},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"ErrorEnvelope":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","enum":[false]},"error":{"$ref":"#/components/schemas/Error"}}},"Error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable error code. The canonical list, with when each is answered and what to do, is x-dcast-error-catalog in this document and https://dcast.pro/docs/limits#error-codes; an operation's own codes are its x-dcast-errors."},"message":{"type":"string","description":"Human-readable description."},"field":{"type":"string","description":"Offending input field for 4xx, when applicable."},"howToFix":{"type":"string","description":"What the caller does next, from the error catalog. Present on every error whose code is in x-dcast-error-catalog."}}},"Pagination":{"type":"object","description":"Cursor pagination, used only by GET /me/webhooks/{id}/deliveries (pass nextCursor as ?cursor=), where it sits beside `data` at the top level. Lists that take ?page= use PagePagination, mostly inside `data`; GET /me/bookings, /me/notifications, /support/tickets, /booking/bookings and /booking/waitlist put it beside `data`.","properties":{"limit":{"type":"integer"},"hasMore":{"type":"boolean"},"nextCursor":{"type":["string","null"]}}},"HealthReport":{"type":"object","description":"The body of GET /health at BOTH 200 and 503. `success` mirrors the status code, but a degraded probe carries no `error` object — the detail is in data.dependencies.","required":["success","data"],"properties":{"success":{"type":"boolean"},"data":{"type":"object","required":["status","dependencies"],"properties":{"status":{"type":"string","enum":["healthy","degraded"]},"version":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"uptimeSec":{"type":"integer"},"dependencies":{"type":"object","additionalProperties":{"type":"string","enum":["healthy","unhealthy","disconnected","unknown"]}},"probeDurationMs":{"type":"integer"}}}}},"AuthRelease":{"type":"object","description":"What POST /auth/login and POST /auth/register return on success. It is NOT the {success, data} envelope the rest of the API uses: `tokens` and `user` sit at the top level, so a client that unwraps `data` everywhere reads undefined here.","required":["success","tokens","user"],"properties":{"success":{"type":"boolean","enum":[true]},"tokens":{"type":"object","required":["accessToken","expiresIn"],"properties":{"accessToken":{"type":"string","description":"JWT, scope `partner-api-user`. Send as X-User-Token together with a pk_ key of the same account; with a key of any other account every call answers 401 INVALID_USER_TOKEN."},"expiresIn":{"type":"integer","description":"Lifetime in seconds."}}},"user":{"type":"object","required":["id","email","role"],"properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":["string","null"]},"role":{"type":"string"}}}}},"VideoVisibility":{"type":"string","enum":["PUBLIC","LINK_ONLY","PRIVATE","SUBSCRIBERS","TIER_EXCLUSIVE","REGISTERED"],"description":"Stored video visibility. Meaning of each value: https://dcast.pro/docs/video-api#visibility."},"PartnerVideoStatus":{"type":"string","enum":["READY","UPLOADING","PROCESSING","FAILED","PENDING"],"description":"READY and FAILED are terminal."},"Thumbnails":{"type":"object","properties":{"default":{"type":["string","null"]}}},"VideoPlayback":{"type":["object","null"],"description":"Null until the video is READY. requiresToken is true for every video: GET {hls} answers 401 MASTER_PASS_REQUIRED until a playback pass rides on it. A viewer pass is minted at accessTokenUrl (GET, outside /api/v1) and checked against the access rules: paid (isPaid), tier-gated (requiredTierId), SUBSCRIBERS, TIER_EXCLUSIVE, REGISTERED, PRIVATE, and LINK_ONLY with a passphrase. See https://dcast.pro/docs/paid-catalog.","properties":{"playable":{"type":"boolean","description":"False while the HLS output is not yet in place."},"hls":{"type":"string","format":"uri","description":"When your account has an embed site list (embedAllowlist on GET /me, PATCH /me/embed-allowlist), this content plays only inside those sites. A browser page elsewhere is refused with 403 EMBED_SITE_NOT_ALLOWED. This address plays only with a playback pass in any case; a request without one is refused 401 MASTER_PASS_REQUIRED. An empty list keeps it open on every site."},"embed":{"type":"string","format":"uri","description":"Embeddable player (iframe src). Handles paywall, sign-in and access-key entry itself."},"playUrl":{"type":"string","format":"uri"},"accessTokenUrl":{"type":"string","format":"uri","description":"When your account has an embed site list (embedAllowlist on GET /me), a pass is minted only for a request whose Origin or Referer is one of those sites, or for your own signed-in session; anything else, including a server call with neither header, answers 403 EMBED_SITE_NOT_ALLOWED. An empty list changes nothing."},"thumbnail":{"type":["string","null"]},"requiresToken":{"type":"boolean"}}},"VideoListItem":{"type":"object","required":["id","title","visibility","isPaid","status"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"visibility":{"$ref":"#/components/schemas/VideoVisibility"},"isPaid":{"type":"boolean"},"price":{"type":["number","null"],"description":"Per-video price. The Video row has no currency column."},"requiredTierId":{"type":["string","null"]},"showOnSite":{"type":"boolean","description":"Shown on the author's own site. Change with PATCH /videos/{id}."},"siteOrder":{"type":["integer","null"]},"duration":{"type":["number","null"]},"resolution":{"type":["string","null"]},"fileSize":{"type":["integer","null"]},"status":{"$ref":"#/components/schemas/PartnerVideoStatus"},"thumbnails":{"$ref":"#/components/schemas/Thumbnails"},"playback":{"type":["object","null"],"description":"List rows carry only hls + embed (null until an HLS output exists). The full block with requiresToken is on GET /videos/{id}.","properties":{"hls":{"type":"string","format":"uri","description":"When your account has an embed site list (embedAllowlist on GET /me, PATCH /me/embed-allowlist), this content plays only inside those sites. A browser page elsewhere is refused with 403 EMBED_SITE_NOT_ALLOWED. This address plays only with a playback pass in any case; a request without one is refused 401 MASTER_PASS_REQUIRED. An empty list keeps it open on every site."},"embed":{"type":"string","format":"uri"}}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"VideoList":{"type":"object","required":["videos","pagination"],"properties":{"videos":{"type":"array","items":{"type":"object","required":["id","title","visibility","isPaid","status"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"visibility":{"$ref":"#/components/schemas/VideoVisibility"},"isPaid":{"type":"boolean"},"price":{"type":["number","null"],"description":"Per-video price. The Video row has no currency column."},"requiredTierId":{"type":["string","null"]},"showOnSite":{"type":"boolean","description":"Shown on the author's own site. Change with PATCH /videos/{id}."},"siteOrder":{"type":["integer","null"]},"duration":{"type":["number","null"]},"resolution":{"type":["string","null"]},"fileSize":{"type":["integer","null"]},"status":{"$ref":"#/components/schemas/PartnerVideoStatus"},"thumbnails":{"$ref":"#/components/schemas/Thumbnails"},"playback":{"type":["object","null"],"description":"List rows carry only hls + embed (null until an HLS output exists). The full block with requiresToken is on GET /videos/{id}.","properties":{"hls":{"type":"string","format":"uri","description":"When your account has an embed site list (embedAllowlist on GET /me, PATCH /me/embed-allowlist), this content plays only inside those sites. A browser page elsewhere is refused with 403 EMBED_SITE_NOT_ALLOWED. This address plays only with a playback pass in any case; a request without one is refused 401 MASTER_PASS_REQUIRED. An empty list keeps it open on every site."},"embed":{"type":"string","format":"uri"}}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}},"pagination":{"$ref":"#/components/schemas/PagePagination"}}},"PagePagination":{"type":"object","description":"Page-number pagination used by list endpoints that take ?page=&limit=.","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"total":{"type":"integer"},"pages":{"type":"integer"},"offset":{"type":"integer","description":"Present when the request used ?offset=: the row offset applied. `page` is then the page those rows start on, not the ?page= value sent."}}},"Video":{"type":"object","required":["id","title","visibility","isPaid","status"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"visibility":{"type":"string","enum":["PUBLIC","LINK_ONLY","PRIVATE","SUBSCRIBERS","TIER_EXCLUSIVE","REGISTERED"],"description":"Stored video visibility. Meaning of each value: https://dcast.pro/docs/video-api#visibility."},"isPaid":{"type":"boolean"},"price":{"type":["number","null"]},"requiredTierId":{"type":["string","null"]},"showOnSite":{"type":"boolean","description":"Shown on the author's own site. Change with PATCH /videos/{id}."},"siteOrder":{"type":["integer","null"]},"duration":{"type":["number","null"]},"resolution":{"type":["string","null"]},"fps":{"type":["number","null"]},"bitrate":{"type":["number","null"]},"codec":{"type":["string","null"]},"fileSize":{"type":["integer","null"]},"status":{"type":"string","enum":["READY","UPLOADING","PROCESSING","FAILED","PENDING"],"description":"READY and FAILED are terminal."},"views":{"type":"integer"},"likes":{"type":"integer"},"thumbnails":{"type":"object","properties":{"default":{"type":["string","null"]}}},"playback":{"$ref":"#/components/schemas/VideoPlayback"},"quality":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"StreamVisibility":{"type":"string","enum":["PUBLIC","LINK_ONLY","PRIVATE","REGISTERED","ACCESS_KEY"]},"StreamIngest":{"type":"object","description":"Publish to ONE of these. Each URL embeds the stream key, so treat it as a secret.","properties":{"rtmp":{"type":["string","null"]},"srt":{"type":["string","null"]},"whip":{"type":["string","null"]}},"additionalProperties":{"type":["string","null"]}},"StreamPlayback":{"type":"object","properties":{"hls":{"type":"string","format":"uri","description":"When your account has an embed site list (embedAllowlist on GET /me, PATCH /me/embed-allowlist), this content plays only inside those sites. A browser page elsewhere is refused with 403 EMBED_SITE_NOT_ALLOWED. This address plays only with a playback pass in any case; a request without one is refused 401 MASTER_PASS_REQUIRED. An empty list keeps it open on every site."},"embed":{"type":"string","format":"uri"}}},"StreamCreated":{"type":"object","required":["id","title","status","streamKey","protocol","playback"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["IDLE"]},"visibility":{"type":"string","enum":["PUBLIC","LINK_ONLY","PRIVATE","REGISTERED","ACCESS_KEY"]},"streamKey":{"type":"string","description":"An opaque credential beginning sk_. Treat it as a string you store and send back; do not parse it. The protocol of the card is the `protocol` field, not a part of the key."},"protocol":{"type":"string","enum":["RTMP","SRT","WEBRTC","HTTP","FILE"]},"ingest":{"$ref":"#/components/schemas/StreamIngest"},"playback":{"$ref":"#/components/schemas/StreamPlayback"},"recording":{"type":"boolean","description":"Whether broadcasts of this card are recorded; echoes the `recording` you sent, true when you sent none."},"createdAt":{"type":"string","format":"date-time"},"webrtcPublishUrl":{"type":"string","description":"WEBRTC cards only: the WHIP address a browser or WHIP encoder publishes to."},"cameraEnabled":{"type":"boolean","description":"WEBRTC cards only: echoes `isCamera`."},"srtConfig":{"type":"object","description":"SRT cards only."},"srtUrl":{"type":"string","description":"SRT cards only."},"httpSourceConfig":{"type":"object","description":"HTTP (pull) cards only."},"fileSourceUrl":{"type":"string","description":"FILE cards only."}}},"Stream":{"type":"object","required":["id","title","status","isLive","protocol","playback"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"status":{"type":"string","enum":["LIVE","OFFLINE"]},"isLive":{"type":"boolean","description":"On air for viewers (after POST /streams/{id}/start)."},"hasSignal":{"type":"boolean","description":"An encoder is publishing to the ingest."},"visibility":{"type":"string","enum":["PUBLIC","LINK_ONLY","PRIVATE","REGISTERED","ACCESS_KEY"]},"recording":{"type":"boolean","description":"Whether broadcasts of this card are recorded (the `recording` of POST /streams)."},"isPaid":{"type":"boolean"},"price":{"type":["number","null"]},"streamKey":{"type":"string","description":"Masked for READ_ONLY keys."},"protocol":{"type":"string","enum":["RTMP","SRT","WEBRTC","HTTP","FILE"]},"viewersCount":{"type":"integer"},"peakViewers":{"type":"integer"},"duration":{"type":"number"},"health":{"type":["object","null"],"properties":{"bitrate":{},"fps":{},"resolution":{},"quality":{"type":"string"}}},"thumbnails":{"type":"object","properties":{"live":{"type":["string","null"]},"latest":{"type":["string","null"]}}},"playback":{"$ref":"#/components/schemas/StreamPlayback"},"assignment":{"type":["object","null"]},"ingest":{"$ref":"#/components/schemas/StreamIngest"},"createdAt":{"type":"string","format":"date-time"},"startedAt":{"type":["string","null"],"format":"date-time"},"endedAt":{"type":["string","null"],"format":"date-time"}}},"CheckoutSubscriptionRequest":{"type":"object","required":["tierId","creatorUsername"],"description":"The subscriber is the owner of the API key making the call. There is no field for a different buyer (no customerEmail, no userId).","properties":{"tierId":{"type":"string"},"creatorUsername":{"type":"string","description":"Must be the username of the tier owner."},"interval":{"type":"string","enum":["monthly","annual"],"default":"monthly","description":"annual uses the tier priceAnnual when it is set."},"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"}}},"CheckoutSession":{"type":"object","required":["sessionId","checkoutUrl"],"properties":{"sessionId":{"type":"string","description":"Stripe Checkout Session id (cs_...)."},"checkoutUrl":{"type":"string","format":"uri","description":"Hosted Stripe Checkout page to redirect the buyer to."}}},"WebhookEndpoint":{"type":"object","required":["id","url","events","isActive"],"properties":{"id":{"type":"string"},"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string"},"description":"Empty array = all events."},"description":{"type":["string","null"]},"isActive":{"type":"boolean"},"lastDeliveryAt":{"type":["string","null"],"format":"date-time"},"lastDeliveryOk":{"type":["boolean","null"]},"lastDeliveryError":{"type":["string","null"]},"totalDeliveries":{"type":"integer"},"totalFailures":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"WebhookEndpointCreated":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"type":"object","required":["signingSecret"],"properties":{"signingSecret":{"type":"string","description":"Shown only in this response. Store it; rotate with POST /me/webhooks/{id}/rotate-secret."},"signingSecretNote":{"type":"string"}}}]},"WebhookCreateRequest":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"https only; must resolve to a public address."},"events":{"type":"array","items":{"type":"string"},"description":"Event names from x-dcast-event-types, or \"*\" / \"prefix.*\". Omit or [] for all."},"description":{"type":"string","maxLength":500}}},"WebhookEventEnvelope":{"type":"object","description":"Shape of every outgoing webhook POST body. The wire format is identical across all event types; only data varies. Verify the `Dcast-Signature: t=<unix>,v1=<hex>` header first: v1 is the hex HMAC-SHA256 of `${t}.${raw body}` with your signingSecret; reject a t more than 300 s from your clock. Deliveries also carry `Dcast-Event-Id` and `Dcast-Event-Type`.","required":["id","type","created","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable per-event ID, also in Dcast-Event-Id header."},"type":{"type":"string","example":"video.processing.completed"},"created":{"type":"integer","description":"Unix-epoch (seconds) when the event was generated."},"livemode":{"type":"boolean","description":"True when the event comes from the production platform. It reflects the platform environment."},"data":{"type":"object","description":"Event-specific payload. For purchase.completed see PurchaseCompletedData, for purchase.refunded see PurchaseRefundedData."}}},"PurchaseCompletedData":{"type":"object","description":"data of the purchase.completed webhook: one fulfilled one-time sale of yours (video, stream, course, booking or tip), sent once per order whichever payment method the buyer used (card, PayPal, Monobank, crypto, Helio). Subscriptions are announced by subscription.created / subscription.renewed instead. Money is in minor units (cents). The buyer is identified by user id only; no email address is sent.","required":["orderId","kind","sourceId","priceCents","grossCents","currency","completedAt"],"properties":{"orderId":{"type":"string","description":"The sale. Stable: the same id is on the purchase.refunded event of this sale."},"kind":{"type":"string","enum":["video","stream","course","booking","tip"]},"sourceId":{"type":"string","description":"What was sold: the video, stream, course or booking id; for a tip, the id of the user who received it."},"buyerId":{"type":["string","null"],"description":"DCAST user id of the buyer, null for a guest checkout that has no account yet."},"priceCents":{"type":"integer","description":"Sticker price, before tax and before any promo code."},"discountCents":{"type":"integer","description":"What the buyer's promo code took off priceCents; 0 when no code was used."},"grossCents":{"type":"integer","description":"What the buyer was asked to pay, tax included."},"platformFeeCents":{"type":["integer","null"],"description":"Platform commission quoted at checkout; null when none was quoted."},"netCents":{"type":["integer","null"],"description":"priceCents minus discountCents minus platformFeeCents; null when no fee was quoted."},"currency":{"type":"string","example":"USD"},"completedAt":{"type":"string","format":"date-time"}}},"PurchaseRefundedData":{"type":"object","description":"data of the purchase.refunded webhook: a one-time sale of yours was refunded in full and the buyer lost the access it gave (a partial refund sends nothing). Sent once per order. Orders from before 2026-10-10 that are refunded on a card may carry the older shape (purchaseId, videoId, amount, reason) instead.","required":["orderId","kind","sourceId","refundedCents","currency","reason","refundedAt"],"properties":{"orderId":{"type":"string","description":"The sale that was refunded; the orderId of its purchase.completed event."},"kind":{"type":"string","enum":["video","stream","course","booking","tip"]},"sourceId":{"type":"string"},"buyerId":{"type":["string","null"]},"refundedCents":{"type":"integer"},"currency":{"type":"string","example":"USD"},"reason":{"type":"string","enum":["refund"]},"refundedAt":{"type":"string","format":"date-time"}}}},"responses":{"Success":{"description":"Successful response","headers":{"X-DCAST-Request-Id":{"$ref":"#/components/headers/XDCASTRequestIdResponse"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"},"Dcast-API-Version":{"$ref":"#/components/headers/DcastAPIVersionResponse"},"X-DCAST-Idempotent-Replay":{"$ref":"#/components/headers/XDCASTIdempotentReplay"},"X-DCAST-Idempotency":{"$ref":"#/components/headers/XDCASTIdempotency"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope"},"examples":{"singleResource":{"summary":"One resource — `data` is the object","value":{"success":true,"data":{"id":"a1b2c3d4e5f60718293a4b5c6d7e8f90","title":"Season 3 opener","status":"READY"}}},"emptyCollection":{"summary":"A collection with nothing in it — an empty array plus pagination, never a 404","value":{"success":true,"data":{"videos":[],"pagination":{"page":1,"limit":20,"total":0,"pages":1}}}},"acknowledgement":{"summary":"A state change with nothing to return — `data` may be absent entirely","value":{"success":true}}}}}},"BadRequest":{"description":"Validation failed; see error.code + error.field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"constraintViolated":{"summary":"A supplied value is outside the accepted range","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"q must be at least 2 characters"}}},"wrongType":{"summary":"Right field, wrong shape — note the `field` key, present only on some 400s","value":{"success":false,"error":{"code":"BAD_REQUEST","message":"events must be an array of event-name strings (empty = subscribe-all)","field":"events"}}}}}}},"Unauthorized":{"description":"Missing / invalid / expired key, or X-User-Token failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"noKey":{"summary":"No credential presented at all","value":{"success":false,"error":{"code":"UNAUTHORIZED","message":"API key is required. Send it as \"Authorization: Bearer pk_...\" or the X-API-Key header."}}}}}}},"Forbidden":{"description":"The key authenticated but may not perform this operation. `error.code` includes (not exhaustive): `INSUFFICIENT_SCOPE` (the key scope forbids this HTTP method: READ_ONLY = GET/HEAD/OPTIONS only, STANDARD = no DELETE), `IP_NOT_ALLOWED`, `DOMAIN_NOT_ALLOWED` (key restrictions), `VERIFICATION_REQUIRED` (the account email is not confirmed and its one free first item of this kind is used: the second stream, restream, room or video; the first is created without confirmation, as in the cabinet; this answer is the cabinet's own: `code`, `resource` and `verificationUrl` sit at the top level of the body next to a plain-text `error`), `QUOTA_EXCEEDED`, `OWNER_SCOPE_REQUIRED`, `TEAM_OWNER_REQUIRED`, `ADMIN_ONLY`, `PERMISSION_DENIED` (key lacks the required permission, e.g. videos:write), `FINANCIAL_SCOPE_REQUIRED` (money surfaces need an owner-class key), `FORBIDDEN` (authenticated but not the owner/host of this resource), `FORBIDDEN_FIELD` (the body carried a field this endpoint refuses to mutate). Checkout / payment paths return their own origin-lock 403 instead — see OriginNotAllowed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"permissionDenied":{"summary":"Key scope does not cover the operation","value":{"success":false,"error":{"code":"PERMISSION_DENIED","message":"Permission 'videos:write' is required for this operation"}}},"financialScopeRequired":{"summary":"Money surface reached with a non-owner key","value":{"success":false,"error":{"code":"FINANCIAL_SCOPE_REQUIRED","message":"This endpoint requires an owner-class key with finance authorization."}}},"notOwner":{"summary":"Authenticated, but not the owner/host of the resource","value":{"success":false,"error":{"code":"FORBIDDEN","message":"Only host can kick"}}}}}}},"OriginNotAllowed":{"description":"Monetization origin-lock rejected the request. Returned by checkout / payment endpoints when the request Origin/Referer is not a dcast platform host, your verified creator domain, or a declared+verified integration domain — OR when the key has no declared integration domain at all (off-platform monetization is disabled until you declare + verify one). Resolve by declaring + verifying your domain (DNS-TXT) in the dashboard. NOTE: the origin-lock body is a bare-string error `{ \"success\": false, \"error\": \"<code>\" }`, NOT the standard {code,message} envelope. (A scope-insufficient key on the same path also yields 403, but with the standard Error envelope.)","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"string","enum":["origin_not_allowed","integration_domain_required","origin_lock_unavailable"],"description":"origin_not_allowed = the calling Origin is not declared/verified for this account; integration_domain_required = the key has zero declared integration domains, so off-platform monetization is blocked until you declare + verify one."}}}}}},"NotFound":{"description":"Resource not found, or foreign-resource access denied (we never leak existence). An id belonging to another creator returns exactly this body — do not read 404 as \"deleted\".","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"missing":{"summary":"Unknown id — and the identical body a foreign id returns","value":{"success":false,"error":{"code":"NOT_FOUND","message":"Video not found"}}}}}}},"RateLimited":{"description":"Per-key 60s rate limit exceeded (`RATE_LIMITED`), or the key's optional daily quota is spent (`DAILY_QUOTA_EXCEEDED`, resets 00:00 UTC; such keys also carry `X-RateLimit-Daily-Limit`, `X-RateLimit-Daily-Remaining`, `X-RateLimit-Daily-Reset` on every response). Every authenticated response also carries `Dcast-Key-Mode: live|test`.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"keyWindowExhausted":{"summary":"The per-key 60-second window is spent; back off until X-RateLimit-Reset","value":{"success":false,"error":{"code":"RATE_LIMITED","message":"Rate limit of 1000 requests/minute exceeded for this API key. Retry in 37s. See X-RateLimit-Reset for the exact unix-epoch when the window resets."}}},"perEndpointCap":{"summary":"Some endpoints carry their own tighter cap on top of the key limit","value":{"success":false,"error":{"code":"RATE_LIMITED","message":"Chat post rate limit exceeded (60/min per key/stream)"}}}}}}},"InternalError":{"description":"Server error. The X-DCAST-Request-Id identifies it in our logs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"},"examples":{"unhandled":{"summary":"Message is a fixed per-endpoint string — never parse it, quote the request id","value":{"success":false,"error":{"code":"INTERNAL_ERROR","message":"Failed to list videos"}}}}}}}}},"x-dcast-docs":{"landing":"https://dcast.pro/docs","topics":[{"slug":"account","url":"https://dcast.pro/docs/account"},{"slug":"ai-agent-video-hosting","url":"https://dcast.pro/docs/ai-agent-video-hosting"},{"slug":"analytics","url":"https://dcast.pro/docs/analytics"},{"slug":"analytics-reports","url":"https://dcast.pro/docs/analytics-reports"},{"slug":"antigravity-connector","url":"https://dcast.pro/docs/antigravity-connector"},{"slug":"auth","url":"https://dcast.pro/docs/auth"},{"slug":"backup-stream","url":"https://dcast.pro/docs/backup-stream"},{"slug":"booking","url":"https://dcast.pro/docs/booking"},{"slug":"brand-marks","url":"https://dcast.pro/docs/brand-marks"},{"slug":"bridges","url":"https://dcast.pro/docs/bridges"},{"slug":"channels","url":"https://dcast.pro/docs/channels"},{"slug":"claude-connector","url":"https://dcast.pro/docs/claude-connector"},{"slug":"cursor-connector","url":"https://dcast.pro/docs/cursor-connector"},{"slug":"data-export","url":"https://dcast.pro/docs/data-export"},{"slug":"desktop-app","url":"https://dcast.pro/docs/desktop-app"},{"slug":"embed-live-stream","url":"https://dcast.pro/docs/embed-live-stream"},{"slug":"file-broadcast","url":"https://dcast.pro/docs/file-broadcast"},{"slug":"free-video-api","url":"https://dcast.pro/docs/free-video-api"},{"slug":"limits","url":"https://dcast.pro/docs/limits"},{"slug":"lovable","url":"https://dcast.pro/docs/lovable"},{"slug":"monetization","url":"https://dcast.pro/docs/monetization"},{"slug":"multi-language-live","url":"https://dcast.pro/docs/multi-language-live"},{"slug":"opencode-connector","url":"https://dcast.pro/docs/opencode-connector"},{"slug":"paid-catalog","url":"https://dcast.pro/docs/paid-catalog"},{"slug":"playlists","url":"https://dcast.pro/docs/playlists"},{"slug":"quickstart","url":"https://dcast.pro/docs/quickstart"},{"slug":"restreams","url":"https://dcast.pro/docs/restreams"},{"slug":"revenue-analytics","url":"https://dcast.pro/docs/revenue-analytics"},{"slug":"rooms","url":"https://dcast.pro/docs/rooms"},{"slug":"sendpulse","url":"https://dcast.pro/docs/sendpulse"},{"slug":"streamdeck","url":"https://dcast.pro/docs/streamdeck"},{"slug":"streams","url":"https://dcast.pro/docs/streams"},{"slug":"support","url":"https://dcast.pro/docs/support"},{"slug":"team-api","url":"https://dcast.pro/docs/team-api"},{"slug":"upload","url":"https://dcast.pro/docs/upload"},{"slug":"upload-and-embed","url":"https://dcast.pro/docs/upload-and-embed"},{"slug":"versioning","url":"https://dcast.pro/docs/versioning"},{"slug":"video-api","url":"https://dcast.pro/docs/video-api"},{"slug":"video-ready-events","url":"https://dcast.pro/docs/video-ready-events"},{"slug":"video-website","url":"https://dcast.pro/docs/video-website"},{"slug":"webhooks","url":"https://dcast.pro/docs/webhooks"},{"slug":"wordpress","url":"https://dcast.pro/docs/wordpress"}]},"x-dcast-changelog":[{"date":"2026-11-11","summary":"POST /videos/import/vimeo imports your own videos from Vimeo: send a Vimeo personal access token (scopes public, private, video_files) and `items` (Vimeo ids or vimeo.com links, up to 500). It uses the same queue as POST /videos/import (answer 202 with batchId and imports, poll GET /imports/{id}); the token is used for the call and the import only and is not stored. A refused token answers 422 VIMEO_TOKEN_INVALID (VIMEO_TOKEN_SCOPE, VIMEO_NO_ACCESS, VIMEO_NOT_FOUND, VIMEO_DOWNLOAD_UNAVAILABLE, VIMEO_REFERENCE_INVALID are 422 too); Vimeo limiting or being down answers 502 VIMEO_RATE_LIMITED or VIMEO_UNAVAILABLE. A vimeo.com page sent to POST /videos/import is still refused with PAGE_NOT_FILE, now pointing here."},{"date":"2026-11-11","summary":"Sale bounds per plan. Saving a new or changed paid price (PATCH /videos/{id}, PATCH /streams/{id}, POST and PATCH /tiers, POST /booking/products) outside the range of the account plan answers 400 PRICE_BELOW_PLAN_MIN or PRICE_ABOVE_PLAN_MAX, with `error.details` carrying `plan`, `priceUsd`, `minUsd` and `maxUsd`; a price saved earlier keeps selling. A checkout for a seller whose sales this account month have reached the plan turnover limit (every kind of sale, donations included) answers 409 SELLER_TURNOVER_LIMIT_REACHED, naming no figure. The per-plan numbers are on /docs/limits#error-codes and in GET /api/public/plan-grid (`salePriceMinUsd`, `salePriceMaxUsd`, `monthlyTurnoverCapUsd`); a higher plan applies at once."},{"date":"2026-11-06","summary":"Bridges: `whep` is no longer a destination protocol (POST /bridges/{id}/destinations answers 400 BAD_REQUEST listing rtmps, srt_caller, hls_public, custom): the worker never served it. `slateId` is removed from POST/PATCH /bridges and `slateId`, `slateActive`, `slate` from every bridge answer: no slate could be created through the API and the slate card was not played out. Earlier changelog entries that mention WHEP-URLs or slates describe what was planned, not what is served."},{"date":"2026-11-06","summary":"Errors are described for every request. Every error answer of the API that carries a `code` now also carries `error.howToFix`, what to do next (the `Error` schema in openapi.json gains `howToFix`). openapi.json lists, per operation, the refusals it can answer (`x-dcast-errors`: status, code, when, howToFix), the codes any operation can answer (`x-dcast-errors-common`) and every code once (`x-dcast-error-catalog`); the same catalog is served as /docs/errors.json together with the refusals of the viewer player doors (STREAM_NOT_LIVE, EMBED_SITE_NOT_ALLOWED and the others). The per-address limit that sits in front of the whole platform answers 429 as JSON `{ success: false, error: { code: \"RATE_LIMITED\", message, howToFix } }` with Retry-After, where it was plain text. The player doors /api/streams|videos/{id}/access-token and /master add `code` where it was missing (STREAM_NOT_FOUND, VIDEO_NOT_FOUND, CONTENT_REMOVED, CORS_REFUSED, INTERNAL_ERROR, and one code for every access reason of a video) and carry `howToFix` next to it; their existing fields are unchanged. The Claude and Cursor connector shows an operation's refusals in dcast_describe_operation."},{"date":"2026-11-06","summary":"Restreams: every restream answer (GET /restreams, GET /restreams/{id}, POST /restreams, PUT /restreams/{id}) now carries `createdInHub`, true for a card made from the DHUB hub in the dashboard and false for a card made in the restreams section or through this API. GET /restreams still returns all your restreams, hub cards included; the field only tells them apart. The card behaves the same either way (start, stop, backup, plan limits), and the field is set when the card is made and never changes."},{"date":"2026-11-06","summary":"The HLS master address (`playback.hls`, `GET /api/videos/{id}/master` and `GET /api/streams/{id}/master`) no longer plays on its own: a request that carries no playback pass is answered 401 MASTER_PASS_REQUIRED with the way to get one (before, a free video or stream was redirected to the worker for anybody holding the address). `playback.requiresToken` is now true for every video. Get a pass from `playback.accessTokenUrl` (or `/api/streams/{id}/access-token`) and play the `masterUrl` it returns, or use `GET /v1/videos/{id}/play`, whose `hls` is now signed for your own video and plays for the life of the pass. The embed player is unchanged."},{"date":"2026-11-06","summary":"GET /streams/{id}/embed accepts `theme` (`light`, `dark` or `auto`): the live chat then opens in that skin. `chat.iframe`, `chat.url` and the chat inside `withChat` carry `?theme=` on the chat address, so a site with a dark player gets a dark chat without editing the code. Without `theme` the answer is unchanged (the chat opens light); any other value is 400 BAD_REQUEST naming `theme`. The Claude connector tool get_stream_embed_codes takes the same `theme`."},{"date":"2026-11-05","summary":"GET /streams/{id}/embed now also returns `withChat`: the player and the live chat in one ready-to-paste block that fills the width of its container, side by side from a 900px wide window and the chat under the player below that. The same code is in the dashboard's Embed window as Player with chat."},{"date":"2026-11-05","summary":"Broadcast from a file (protocol FILE): GET and PUT /streams/{id}/file-broadcast choose the library video a stream plays, with `loopEnabled` (a looped broadcast is kept as a 24/7 broadcast without recording) and the playback window `startTime` / `endTime`; PUT and DELETE /streams/{id}/file-broadcast/schedule start it by itself at a set time (`scheduledStartAt`) or cancel that. Start and stop are the existing POST /streams/{id}/start and /stop, under the same plan limits as the dashboard. POST /streams with protocol FILE no longer needs `fileSourceUrl`: the card is created without a source, as in the dashboard, and gets its library video from PUT /streams/{id}/file-broadcast."},{"date":"2026-10-25","summary":"POST /subscribers no longer creates an account or a subscription. It checks the email shape and the tier, then answers 202 with data.invited = true and data.followUrl, the link to your public page (membership section) where the person joins a free tier by their own click. The answer is the same for an address that has a DCAST account and one that has not. A paid tier is still 400 PAID_TIER_USE_CHECKOUT. displayName and source are ignored. The 200 idempotent and 201 answers and the ALREADY_SUBSCRIBED and PAID_SUBSCRIPTION_LAPSED errors of this call are gone."},{"date":"2026-10-15","summary":"Streams: every stream answer (POST /streams, GET /streams, GET /streams/{id}, PATCH /streams/{id}) now carries `recording`, whether broadcasts of the card are kept as a recording (the value POST /streams was given, true by default). GET /streams/{id} reads the stored access state, so `visibility` is the stored name there as everywhere. POST /streams now refuses `scheduledAt` with 400 UNSUPPORTED_FIELD: it was read and dropped, so a time was never saved; a live card has no planned start (rooms keep scheduledStart). The documentation offers the stored names only (PUBLIC, LINK_ONLY, PRIVATE, REGISTERED, ACCESS_KEY for a stream); the older spellings are still accepted on input."},{"date":"2026-10-14","summary":"Request checks that used to be silent or answered 500 are now 400 naming the field. Rooms: scheduledStart / scheduledEnd and scheduledStartAt / scheduledEndAt are the same fields on POST and PATCH, an end before the start or a value that is not a date is refused, an empty title is refused, and room answers (create, read, update, start, end) are one card that adds description, waitingRoomEnabled, raiseHandOpensMic and scheduledEnd and never carries internal columns; GET /rooms?status=CANCELLED is refused; a reaction to a room nobody has joined is 409 ROOM_NOT_ACTIVE; a repeated room End keeps its first end time. Streams: PATCH accepts accessKey (visibility bykey needs one, 400 INVALID_ACCESS_KEY), empty titles and chat text that is not a string are refused. Restreams: destinations must be a list, PUT checks every rtmpUrl against the public-address rule and honours the enabled it is sent, reads show enabled and lastError, a repeated stop announces restream.ended once. Webhooks: POST /me/webhooks/:id/test reaches that webhook only, simulate refuses a payload that is not an object, an unknown deliveries cursor is 400 INVALID_CURSOR, and /webhooks/ips publishes the address deliveries really leave from. Booking: products and cohorts are checked on update the way they are on create, currency is USD, EUR or GBP, PUT /booking/availability stores the documented HH:MM windows and startsAt / endsAt blackouts so they produce slots (and reads show both spellings), and the plan refusal of discount codes is inside the error envelope. Uploads: a negative or non-numeric fileSize is refused and maxFileSize is a whole number of bytes; a new upload answers status PENDING like every later read. Support tickets: attachments is a list in and out. Preferences, team tasks, bridge tally endpoints and quiz numbers refuse values that used to be coerced. Bridge source config and destination targetUrl are masked for keys that cannot write bridges."},{"date":"2026-10-14","summary":"OpenAPI: every public operation now states its request. /docs/openapi.json declares the JSON body (fields, types, required fields, allowed enum values, limits) of 80 operations and the query parameters of 42, and marks the operations that take no input. Before this 14 operations had a body schema and 3 had query parameters; the rest pointed to the topic page. A test compares the document with the handlers, so every field the API reads is in the document and every field in the document is read. Enum values are taken from the validators themselves."},{"date":"2026-10-14","summary":"Claude connector (MCP, https://api.dcast.pro/mcp): can call every documented Partner API operation except payments, key minting, access grants to other people, binary uploads, server-sent event streams and viewer-side actions. New tools: dcast_find_operation, dcast_describe_operation (the exact request from the OpenAPI contract) and dcast_call_operation (checks the arguments against that contract before the request is sent), dcast_search_docs (these docs, word for word, with source links), dcast_get_recipe (7 step-by-step recipes), get_stream_embed_codes, get_embed_domains, set_embed_domains, update_stream. Every call runs with your own key or OAuth grant and its permissions and limits. See /docs/claude-connector."},{"date":"2026-10-13","summary":"Webhooks: purchase.completed now carries discountCents (what the buyer's promo code took off priceCents, 0 without a code), and netCents is priceCents minus discountCents minus platformFeeCents. Before this a sale paid with a promo code reported netCents from the price before the discount, which was higher than what the author received."},{"date":"2026-10-10","summary":"Webhooks: purchase.completed is now sent, and purchase.refunded is sent for every payment method. Each fulfilled one-time sale of yours (video, stream, course, booking, tip) gives one purchase.completed, and a full refund of it gives one purchase.refunded, whether the buyer paid by card, PayPal, Monobank, crypto or Helio; a repeated delivery from the payment provider does not send a second event. data carries orderId, kind, sourceId, buyerId (user id or null, no email), priceCents, grossCents, platformFeeCents, netCents, currency and a timestamp; see the PurchaseCompletedData and PurchaseRefundedData schemas. Subscriptions keep subscription.created / renewed / cancelled."},{"date":"2026-09-27","summary":"GET /v1/videos/:id playback.requiresToken now follows the same rule as the HLS master door: true also for PUBLIC videos that are paid (isPaid) or tier-gated (requiredTierId) and for LINK_ONLY videos with a passphrase; false for LINK_ONLY without one. Previously it was simply visibility !== PUBLIC."},{"date":"2026-09-27","summary":"OpenAPI: typed response schemas for GET /videos, GET /videos/:id, POST /streams, GET /streams/:id, POST /checkout/subscription, POST /checkout/video and the /me/webhooks endpoints; request-body schemas for both checkout endpoints; bearerFormat corrected to pk_<40 hex chars>."},{"date":"2026-06-30","summary":"Documented monetization origin-lock + integration-domain declaration requirement (checkout 403 origin_not_allowed / integration_domain_required)."},{"date":"2026-05-28","summary":"QA-2 within-surface gap closed: Stream chat moderation queue. GET /v1/streams/:id/chat/moderation/queue (FIFO list of pending msgs), POST /v1/streams/:id/chat/moderation/:msgId/approve (FIFO-enforced; 409 QUEUE_ORDER if older pending), POST /v1/streams/:id/chat/moderation/:msgId/reject (with optional reason)."},{"date":"2026-05-28","summary":"DRIFT-FIX batch (per partner-qa monetization-audit): explicit 400 UNSUPPORTED_FIELD on PATCH /videos|streams with currency/donationsEnabled (was silent-dropping). New GET /v1/me/payouts (Stripe Connect readiness: chargesEnabled / payoutsEnabled / detailsSubmitted / requirements). 5 /me/* list aliases for partner discoverability: /me/api-keys (key material redacted), /me/tiers, /me/restream-accounts (tokens redacted), /me/bookings (caller as customer), /me/notifications. POST /v1/me/webhooks/:id/simulate — DRY-FIRE renders payload + Dcast-Signature inline without outbound delivery."},{"date":"2026-05-28","summary":"SUB §2.F final: custom-domain + subdomain self-service. POST/GET/DELETE /v1/me/custom-domain + GET /v1/me/custom-domain/nameservers + GET /v1/me/custom-domain/verify (CF zone create + NS resolve check; plan-gated to PRO/VIP via hasFeature). POST/GET/DELETE /v1/me/subdomain (regex-validated, reserved-list blocked, uniqueness-checked). DNS pool provisioning runs out-of-band; partners poll /v1/me/site/status."},{"date":"2026-05-28","summary":"SUB-tasks batch: §2.D Team chat (GET/POST/PATCH/DELETE /v1/team/chat with WS mirror to team:chat:<channelId>). §2.B DHUB: POST /v1/bridges/:id/rotate-key, GET /v1/bridges/:id/events, PATCH /v1/bridges/:id/tally-endpoints (SSRF-guarded), POST /v1/bridges/:id/return-pgm/start + /stop. §2.F: POST/DELETE /v1/me/hero-video (video/mp4|webm|quicktime, 100MB cap), POST /v1/me/slider-images (multi-file up to 10), DELETE /v1/me/slider-images?image=<url>. §2.C: POST/GET/PATCH/DELETE /v1/booking/products/:productId/cohorts, GET /v1/booking/cohorts/:id, POST /v1/booking/cohorts/:id/videos (drip), DELETE /v1/booking/cohorts/:id/videos/:cvId, GET /v1/booking/waitlist (read-only)."},{"date":"2026-05-28","summary":"GAP §2.C headline: Booking workflow (products + availability + bookings read-only + discount codes). POST/GET/GET-by-id/PATCH/DELETE /v1/booking/products (+ /publish + /unpublish), GET/PUT /v1/booking/availability, GET/GET-by-id /v1/booking/bookings (read-only — bookings created via /api/booking-checkout customer flow), POST/GET/PATCH/DELETE /v1/booking/discount-codes (percent-off OR amount-off; unique per creator; product-scope optional). Cohort + Waitlist + EmailSequence sub-surfaces deferred."},{"date":"2026-05-28","summary":"GAP §2.B headline: DHUB bridges CRUD. GET/POST/GET-by-id/PATCH/DELETE /v1/bridges, POST /v1/bridges/:id/start, POST /v1/bridges/:id/stop, GET/POST /v1/bridges/sources, DELETE /v1/bridges/sources/:id, GET/POST /v1/bridges/:id/destinations, PATCH/DELETE /v1/bridges/destinations/:id. SSRF guard on destination targetUrl. Director-mode / WHEP-URLs / tally / SRTLA / policies / slates / network-probe sub-surfaces deferred."},{"date":"2026-05-28","summary":"GAP §2.D headline: Team API (channelTeam meta + members + tasks). GET/PATCH /v1/team, GET /v1/team/members, POST/PATCH/DELETE /v1/team/members (CONTENT_MANAGER/STREAM_TECHNICIAN/MODERATOR/VIEWER — OWNER+ADMIN excluded by no-admin canon), GET/POST/PATCH/DELETE /v1/team/tasks (TODO/IN_PROGRESS/COMPLETED/CANCELLED). Chat sub-surface deferred."},{"date":"2026-05-28","summary":"GAP §2.F partial: site customization. POST/DELETE /v1/me/og-image, POST/DELETE /v1/me/navigation-logo (mirrors /me/hero), GET /v1/me/site/templates, POST /v1/me/site/apply-template (slug or id), POST /v1/me/site/activate ({active: bool}), GET /v1/me/site/status. hero-video + slider-images + custom-domain CF integration + subdomain DNS setup remain as sub-tasks."},{"date":"2026-05-28","summary":"GAP §2.E closed: Support tickets CRUD (creator-side). POST /v1/support/tickets, GET list + by-id, POST /v1/support/tickets/:id/replies. Owner-scoped; internal staff notes filtered out. Admin status/assign/priority/tags surfaces NOT exposed per no-admin-on-partner-API canon."},{"date":"2026-05-28","summary":"GAP §3 closed: Room polls + quizzes write surface. POST /v1/rooms/:id/polls (+ /vote / /close), POST /v1/rooms/:id/quizzes (+ /answer / /close), GET list. Host-only create/close; participant-permissive vote/answer with idempotent re-vote (poll) and 409 ALREADY_ANSWERED (quiz)."},{"date":"2026-05-28","summary":"GAP §2.A closed: Creator Tiers CRUD (POST /v1/tiers / PATCH /v1/tiers/:id / DELETE /v1/tiers/:id). Plan-based tier-count limit, isMostPopular exclusivity, price-locked-with-subscribers gate, delete-blocked-with-subscribers gate, best-effort Stripe sync."},{"date":"2026-05-28","summary":"GDPR Art. 20 portability: POST/GET /v1/me/export + account.export.ready webhook."},{"date":"2026-05-28","summary":"Upload flow is one method: POST /v1/videos/upload, then PUT data.upload.url (chunked Content-Range supported). See docs/upload."},{"date":"2026-05-28","summary":"Idempotency-Key coverage expanded: /me/{avatar,cover,hero}, /playlists, /playlists/:id/videos, /videos/:id/{comments,like} now also dedup via Idempotency-Key (12 routes total)."},{"date":"2026-05-28","summary":"Webhook replay endpoint: POST /v1/me/webhooks/:id/deliveries/:deliveryId/replay."},{"date":"2026-05-28","summary":"video.upload.completed webhook event."},{"date":"2026-05-28","summary":"OpenAPI 3.1 spec at /docs/openapi.json — components.{schemas,parameters,headers,responses} populated; per-path stubs with security + standard headers."},{"date":"2026-05-28","summary":"Webhook retry queue (Bull, exponential backoff 1m→12h, 7 attempts max, attempts survive backend restart)."},{"date":"2026-05-28","summary":"Partner-webhooks foundation: HMAC-SHA256 signed POSTs with 5-min tolerance window + CRUD + delivery log."},{"date":"2026-05-28","summary":"Idempotency-Key on monetary + state-creating POSTs (5 routes); same-key+different-body → 422 IDEMPOTENCY_KEY_REUSE."},{"date":"2026-05-28","summary":"X-DCAST-Request-Id on every response; UUIDv4 echo-back if caller supplies a valid one."},{"date":"2026-05-28","summary":"Per-key rate-limit X-RateLimit-{Limit,Remaining,Reset} headers + 429 RATE_LIMITED. Dcast-API-Version: v1 advertised on every authenticated response."},{"date":"2026-05-28","summary":"Versioning policy: /v1 stays online ≥6mo after v2; ≥90d EOL notice. See /docs/versioning."}],"x-dcast-errors-common":[{"status":400,"code":"BAD_REQUEST","when":"An input is missing, malformed or out of range.","howToFix":"Read error.field and error.message, fix that input, and call again. The operation's request schema in the OpenAPI document lists the fields.","retryable":false},{"status":401,"code":"INVALID_KEY","when":"The key is unknown or was revoked.","howToFix":"Create a new key in the dashboard (Settings, API keys) and send that one.","retryable":false},{"status":401,"code":"INVALID_KEY_FORMAT","when":"The key does not look like a DCAST key (pk_ followed by 40 hex characters).","howToFix":"Send the key exactly as it was shown when created; it starts with pk_. Create a new key if it was lost.","retryable":false},{"status":401,"code":"INVALID_USER_TOKEN","when":"The X-User-Token header is present but invalid or expired.","howToFix":"Sign in again with POST /auth/login and send the new token, or drop the header if the key alone is enough.","retryable":false},{"status":401,"code":"KEY_DISABLED","when":"The key was switched off in the dashboard.","howToFix":"Switch the key on again in the dashboard (Settings, API keys) or create a new one.","retryable":false},{"status":401,"code":"KEY_EXPIRED","when":"The key reached its expiry date.","howToFix":"Create a new key in the dashboard (Settings, API keys).","retryable":false},{"status":401,"code":"UNAUTHORIZED","when":"No credential reached the API, or the request has no usable identity.","howToFix":"Send the API key as \"Authorization: Bearer pk_...\" (or the X-API-Key header). A key is created in the dashboard under Settings, API keys.","retryable":false},{"status":403,"code":"DOMAIN_NOT_ALLOWED","when":"The key is restricted to other website origins.","howToFix":"Call from an allowed origin, or edit the key's allowed domains in the dashboard.","retryable":false},{"status":403,"code":"FINANCIAL_SCOPE_REQUIRED","when":"Money endpoints need an owner-class credential with finance authorization.","howToFix":"Use a FULL_ACCESS key of the account owner, or do this in the dashboard.","retryable":false},{"status":403,"code":"INSUFFICIENT_SCOPE","when":"The access level of the key forbids this HTTP method (READ_ONLY allows GET only, STANDARD cannot DELETE).","howToFix":"Use a key with a wider access level: STANDARD for changes, FULL_ACCESS for deletes. Create it in the dashboard (Settings, API keys).","retryable":false},{"status":403,"code":"IP_NOT_ALLOWED","when":"The key is restricted to other IP addresses.","howToFix":"Call from an allowed address, or edit the key's allowed IPs in the dashboard.","retryable":false},{"status":403,"code":"PERMISSION_DENIED","when":"The key lacks the permission this operation needs (the message names it, for example videos:write).","howToFix":"Create a key whose permissions include the one named in the message, or ask the account owner for it.","retryable":false},{"status":404,"code":"NOT_FOUND","when":"The id does not exist in this account (the answer is the same for ids of other accounts), or the path is not an operation.","howToFix":"List the resource first and use an id from the list; check the path against the OpenAPI document.","retryable":false},{"status":405,"code":"METHOD_NOT_ALLOWED","when":"The path exists but not with this HTTP method.","howToFix":"Use a method from the Allow response header.","retryable":false},{"status":429,"code":"DAILY_QUOTA_EXCEEDED","when":"The daily quota of this key is spent.","howToFix":"Wait until it resets at 00:00 UTC (X-RateLimit-Daily-Reset), or use a key without a daily quota.","retryable":true},{"status":429,"code":"RATE_LIMITED","when":"More requests than the per-key (Partner API) or per-address (everything else) limit allows in the current window.","howToFix":"Wait for the Retry-After header (or X-RateLimit-Reset), then repeat; slow the calls down.","retryable":true,"retryAfterSeconds":60},{"status":500,"code":"INTERNAL_ERROR","when":"An unexpected server error.","howToFix":"Repeat once; if it persists contact DCAST support and quote the X-DCAST-Request-Id header.","retryable":true,"retryAfterSeconds":5}],"x-dcast-error-catalog":[{"code":"ACCESS_KEY_MISSING","status":400,"surface":"partner","when":"visibility ACCESS_KEY was chosen but no viewer password was given.","howToFix":"Send the viewer password as accessKey, or choose another visibility.","retryable":false},{"code":"ACCOUNT_BANNED","status":403,"surface":"partner","when":"The account is banned from streaming.","howToFix":"Contact DCAST support (https://dcast.pro/support).","retryable":false},{"code":"ACCOUNT_BLOCKED","status":403,"surface":"partner","when":"The account is blocked: it cannot sign in or use the API, and its content is unavailable.","howToFix":"Contact DCAST support from the home page within 30 days to appeal.","retryable":false},{"code":"ACCOUNT_SUSPENDED","status":403,"surface":"partner","when":"The account is suspended; only read access and support requests remain.","howToFix":"Contact DCAST support (https://dcast.pro/support) to lift the suspension.","retryable":false},{"code":"ACCOUNT_UNAVAILABLE","status":403,"surface":"partner","when":"The account cannot use this feature in its current state.","howToFix":"Contact DCAST support (https://dcast.pro/support).","retryable":false},{"code":"ADMIN_ONLY","status":403,"surface":"partner","when":"The operation is reserved for platform staff.","howToFix":"Reserved for platform staff; contact DCAST support if the action is needed.","retryable":false},{"code":"AGENT_ACTION_FORBIDDEN","status":403,"surface":"partner","when":"A connected AI agent may never do this (money, API keys, account export, sign-in).","howToFix":"The account owner does it in the dashboard.","retryable":false},{"code":"AGENT_AREA_REQUIRED","status":403,"surface":"partner","when":"An AI connector tried an area the account owner has not allowed it to use yet, or a token/plan ceiling applies.","howToFix":"Give the owner the approvalUrl from the answer (if present) and repeat the same call once after they answer.","retryable":false,"fields":["area","level","reason","approvalUrl"]},{"code":"AGENT_OWNER_REQUIRED","status":403,"surface":"partner","when":"The connector acts only on the connected account itself.","howToFix":"Drop the effective-channel header or parameter and call again.","retryable":false},{"code":"ALREADY_ANSWERED","status":409,"surface":"partner","when":"This participant already answered the quiz.","howToFix":"Nothing to do; one answer per participant.","retryable":false},{"code":"ALREADY_MEMBER","status":409,"surface":"partner","when":"The user is already a member of the team.","howToFix":"Nothing to do.","retryable":false},{"code":"AUTH_REQUIRED","status":401,"surface":"partner","when":"The call needs a signed-in account.","howToFix":"Send the API key (Authorization: Bearer pk_...) or sign in first.","retryable":false},{"code":"BACKUP_INCOMPATIBLE","status":409,"surface":"partner","when":"The backup stream does not match the primary stream and cannot take over.","howToFix":"Give the backup the same resolution and codec as the primary (mismatches lists the differences).","retryable":false,"fields":["mismatches"]},{"code":"BAD_REQUEST","status":400,"surface":"partner","when":"An input is missing, malformed or out of range.","howToFix":"Read error.field and error.message, fix that input, and call again. The operation's request schema in the OpenAPI document lists the fields.","retryable":false,"fields":["field"]},{"code":"BRIDGE_FEEDBACK_LOOP","status":[400,409],"surface":"partner","when":"The bridge would feed its own output back into its source.","howToFix":"Choose a destination that is not the bridge's own source.","retryable":false},{"code":"BRIDGE_LIVE","status":409,"surface":"partner","when":"The bridge is live or starting and cannot be deleted.","howToFix":"Stop the bridge first.","retryable":false},{"code":"BRIDGE_START_FAILED","status":500,"surface":"partner","when":"The bridge could not be started.","howToFix":"Check the bridge sources and destinations, then start again.","retryable":true},{"code":"BROADCAST_START_FAILED","status":500,"surface":"partner","when":"The broadcast could not start right now.","howToFix":"Try again in a moment.","retryable":true,"retryAfterSeconds":5},{"code":"CANNOT_INVITE_SELF","status":409,"surface":"partner","when":"You cannot invite yourself.","howToFix":"Invite another person.","retryable":false},{"code":"CODE_EXISTS","status":409,"surface":"partner","when":"A discount code with this name already exists.","howToFix":"Choose another code name.","retryable":false},{"code":"COHORT_HAS_ENROLLMENTS","status":409,"surface":"partner","when":"The cohort has active enrollments.","howToFix":"Remove the enrollments first, or keep the cohort.","retryable":false},{"code":"CONFLICT","status":409,"surface":"partner","when":"Another change is in flight, or the resource is already in that state.","howToFix":"Read the resource status before repeating.","retryable":false},{"code":"CONNECTOR_REQUIRED","status":401,"surface":"partner","when":"Only the DCAST connector of an AI agent can ask for website access; an API key cannot.","howToFix":"Run the DCAST site connector from the AI agent.","retryable":false},{"code":"CONTENT_EMPTY","status":404,"surface":"both","when":"The card has no content to play (deleted recording, or a broadcast that recorded nothing).","howToFix":"Show the empty frame with the cover; do not retry.","retryable":false,"fields":["retry"]},{"code":"CONTENT_NOT_FOUND","status":404,"surface":"both","when":"The card does not exist or was deleted.","howToFix":"Do not retry; show that the content is gone.","retryable":false,"fields":["retry"]},{"code":"CONTENT_UNAVAILABLE","status":503,"surface":"both","when":"The card exists but its media cannot be served right now.","howToFix":"Ask again in a few seconds.","retryable":true,"retryAfterSeconds":5},{"code":"CREATOR_GATEWAY_BLOCKED","status":403,"surface":"partner","when":"The payment gateway of the creator is blocked.","howToFix":"The account owner resolves the block with the gateway provider, or connects another gateway in the dashboard (Monetization).","retryable":false},{"code":"CREATOR_ONBOARDING_INCOMPLETE","status":403,"surface":"partner","when":"The payment gateway onboarding of the creator is not finished.","howToFix":"The account owner finishes the gateway onboarding in the dashboard (Monetization); details name the missing steps.","retryable":false},{"code":"DAILY_QUOTA_EXCEEDED","status":429,"surface":"partner","when":"The daily quota of this key is spent.","howToFix":"Wait until it resets at 00:00 UTC (X-RateLimit-Daily-Reset), or use a key without a daily quota.","retryable":true},{"code":"DELETION_FAILED","status":500,"surface":"partner","when":"The delete did not complete.","howToFix":"Repeat; if it persists contact DCAST support with the X-DCAST-Request-Id.","retryable":true},{"code":"DHUB_REQUIRES_ADDON","status":403,"surface":"partner","when":"Bridges (DHUB) are a paid add-on the account does not have.","howToFix":"Add DHUB to the plan (https://dcast.tv/pricing).","retryable":false},{"code":"DOMAIN_NOT_ALLOWED","status":403,"surface":"partner","when":"The key is restricted to other website origins.","howToFix":"Call from an allowed origin, or edit the key's allowed domains in the dashboard.","retryable":false},{"code":"DOMAIN_TAKEN","status":409,"surface":"partner","when":"The domain is used by another creator.","howToFix":"Use a domain you own and that is not attached elsewhere.","retryable":false},{"code":"EMAIL_EXISTS","status":409,"surface":"partner","when":"An account with this email already exists.","howToFix":"Sign in instead, or use another email.","retryable":false},{"code":"FILE_PRODUCER_START_FAILED","status":502,"surface":"partner","when":"The file broadcast could not be dispatched.","howToFix":"Start again in a few seconds.","retryable":true,"retryAfterSeconds":5},{"code":"FILE_SETTINGS_CHANGED","status":409,"surface":"partner","when":"The file-broadcast settings changed while starting.","howToFix":"Read the card and start again.","retryable":false},{"code":"FILE_SOURCE_FORBIDDEN","status":403,"surface":"partner","when":"The file source is not allowed for this card.","howToFix":"Choose a video of your own library.","retryable":false},{"code":"FILE_SOURCE_INVALID","status":400,"surface":"partner","when":"The file source is not allowed.","howToFix":"Choose a READY video of your own library.","retryable":false},{"code":"FILE_SOURCE_NOT_READY","status":409,"surface":"partner","when":"The chosen video is not ready yet.","howToFix":"Wait until the video is READY, then start.","retryable":true},{"code":"FILE_SOURCE_REQUIRED","status":400,"surface":"partner","when":"A broadcast from a file has no video selected.","howToFix":"Choose the library video with PUT /streams/{id}/file-broadcast, then start.","retryable":false},{"code":"FINANCIAL_SCOPE_REQUIRED","status":403,"surface":"partner","when":"Money endpoints need an owner-class credential with finance authorization.","howToFix":"Use a FULL_ACCESS key of the account owner, or do this in the dashboard.","retryable":false},{"code":"FORBIDDEN","status":403,"surface":"partner","when":"The credential is valid but is not the owner or host of this resource.","howToFix":"Act on resources of your own account, or ask the owner to do it.","retryable":false},{"code":"FORBIDDEN_FIELD","status":403,"surface":"partner","when":"The body carries a field this operation refuses to change (identity, plan, role).","howToFix":"Remove the field from the body; account identity is managed by sign-in and billing.","retryable":false,"fields":["field"]},{"code":"GRANT_REVOKED","status":401,"surface":"partner","when":"The AI connector access this call came through was removed by the account owner.","howToFix":"The owner connects the connector again (a new authorization); retrying with the same token will not work.","retryable":false},{"code":"IDEMPOTENCY_IN_FLIGHT","status":409,"surface":"partner","when":"The first request with this Idempotency-Key is still running.","howToFix":"Wait a few seconds and read the resource instead of creating again.","retryable":true,"retryAfterSeconds":5},{"code":"IDEMPOTENCY_KEY_REUSE","status":422,"surface":"partner","when":"The same Idempotency-Key was used with a different body.","howToFix":"Use a new key for a different request; repeat the identical body to get the original answer.","retryable":false},{"code":"INSUFFICIENT_SCOPE","status":403,"surface":"partner","when":"The access level of the key forbids this HTTP method (READ_ONLY allows GET only, STANDARD cannot DELETE).","howToFix":"Use a key with a wider access level: STANDARD for changes, FULL_ACCESS for deletes. Create it in the dashboard (Settings, API keys).","retryable":false},{"code":"INTERNAL_ERROR","status":500,"surface":"both","when":"An unexpected server error.","howToFix":"Repeat once; if it persists contact DCAST support and quote the X-DCAST-Request-Id header.","retryable":true,"retryAfterSeconds":5},{"code":"INVALID_ACCESS_KEY","status":400,"surface":"partner","when":"accessKey is not valid (must be a string, or is missing for visibility ACCESS_KEY).","howToFix":"Send accessKey as a string; visibility ACCESS_KEY needs the viewer password in the same call.","retryable":false,"fields":["field"]},{"code":"INVALID_ASSIGNEE","status":400,"surface":"partner","when":"assignedTo is not a user id of the channel owner or a team member.","howToFix":"Send the id of the owner or a member (GET /team/members).","retryable":false,"fields":["field"]},{"code":"INVALID_CREDENTIALS","status":401,"surface":"partner","when":"Email or password is wrong.","howToFix":"Check the email and password. After repeated failures wait for the rate-limit window before trying again.","retryable":false},{"code":"INVALID_CURSOR","status":400,"surface":"partner","when":"cursor is not the nextCursor of a previous page.","howToFix":"Pass the nextCursor of the previous page unchanged, or omit cursor for the first page.","retryable":false},{"code":"INVALID_EMAIL","status":400,"surface":"partner","when":"The email address is malformed.","howToFix":"Send a valid email address.","retryable":false,"fields":["field"]},{"code":"INVALID_FILE","status":400,"surface":"partner","when":"file is not one of the allowed names.","howToFix":"Use one of the names the message lists.","retryable":false,"fields":["field"]},{"code":"INVALID_IDEMPOTENCY_KEY","status":400,"surface":"partner","when":"The Idempotency-Key header does not match [A-Za-z0-9_-]{8,255}.","howToFix":"Send a key of 8 to 255 letters, digits, dash or underscore.","retryable":false},{"code":"INVALID_KEY","status":401,"surface":"partner","when":"The key is unknown or was revoked.","howToFix":"Create a new key in the dashboard (Settings, API keys) and send that one.","retryable":false},{"code":"INVALID_KEY_FORMAT","status":401,"surface":"partner","when":"The key does not look like a DCAST key (pk_ followed by 40 hex characters).","howToFix":"Send the key exactly as it was shown when created; it starts with pk_. Create a new key if it was lost.","retryable":false},{"code":"INVALID_OPTION","status":400,"surface":"partner","when":"optionId does not match any option.","howToFix":"Read the poll or quiz and send an optionId from it.","retryable":false},{"code":"INVALID_REF","status":400,"surface":"partner","when":"A referenced item is not among your items.","howToFix":"List your items and send an id from the list.","retryable":false,"fields":["field"]},{"code":"INVALID_SECTION","status":400,"surface":"partner","when":"section is not one of the allowed names.","howToFix":"Use one of the sections the message lists.","retryable":false,"fields":["field"]},{"code":"INVALID_STATUS","status":400,"surface":"partner","when":"The status filter is not one of the allowed values.","howToFix":"Use one of the status values listed in the operation's query parameter.","retryable":false,"fields":["field"]},{"code":"INVALID_TOKEN","status":401,"surface":"both","when":"The token in the path or query (upload token, preview token, or the playback pass on a master address) does not belong to this resource, expired or was altered.","howToFix":"Request a fresh token from the operation that hands it out (for an upload: POST /videos/upload; for a playback pass: the access-token address of the card) and use it unchanged.","retryable":false},{"code":"INVALID_URL","status":400,"surface":"partner","when":"A URL field is malformed or points somewhere the platform refuses to fetch (private address, wrong scheme).","howToFix":"Send a public http(s) or rtmp(s)/srt URL as the message says.","retryable":false,"fields":["field"]},{"code":"INVALID_USER_TOKEN","status":401,"surface":"partner","when":"The X-User-Token header is present but invalid or expired.","howToFix":"Sign in again with POST /auth/login and send the new token, or drop the header if the key alone is enough.","retryable":false},{"code":"INVALID_VISIBILITY","status":400,"surface":"partner","when":"visibility is not one of the allowed names.","howToFix":"Use one of the names the operation lists: PUBLIC, LINK_ONLY, PRIVATE, REGISTERED, ACCESS_KEY (streams), SUBSCRIBERS and TIER_EXCLUSIVE (videos).","retryable":false,"fields":["field"]},{"code":"INVITEE_NOT_FOUND","status":404,"surface":"partner","when":"No DCAST account has that email.","howToFix":"Ask the person to register first, then invite them.","retryable":false},{"code":"IP_NOT_ALLOWED","status":403,"surface":"partner","when":"The key is restricted to other IP addresses.","howToFix":"Call from an allowed address, or edit the key's allowed IPs in the dashboard.","retryable":false},{"code":"KEY_DISABLED","status":401,"surface":"partner","when":"The key was switched off in the dashboard.","howToFix":"Switch the key on again in the dashboard (Settings, API keys) or create a new one.","retryable":false},{"code":"KEY_EXPIRED","status":401,"surface":"partner","when":"The key reached its expiry date.","howToFix":"Create a new key in the dashboard (Settings, API keys).","retryable":false},{"code":"KEY_PARENT_REVOKED","status":401,"surface":"partner","when":"The owner switched off the connection that gave this website its access.","howToFix":"If the owner wants the website to work again, run the DCAST site connector again; do not show visitors anything about keys.","retryable":false},{"code":"LINKED_RESTREAM_HAS_NO_OWN_PREVIEW","status":409,"surface":"partner","when":"A linked restream shows the preview of its source stream.","howToFix":"Request the preview of the source stream instead.","retryable":false},{"code":"LIVEKIT_UNAVAILABLE","status":503,"surface":"partner","when":"The live call could not give access right now.","howToFix":"Repeat; the participant is still waiting.","retryable":true,"retryAfterSeconds":5},{"code":"MESSAGE_DELETED","status":409,"surface":"partner","when":"The message was deleted and cannot be edited.","howToFix":"Post a new message.","retryable":false},{"code":"METHOD_NOT_ALLOWED","status":405,"surface":"partner","when":"The path exists but not with this HTTP method.","howToFix":"Use a method from the Allow response header.","retryable":false},{"code":"MINT_CEILING_EXCEEDED","status":403,"surface":"partner","when":"The new key would have more access than the credential that creates it.","howToFix":"Ask for a role/permission set that is no wider than the creating credential's own.","retryable":false},{"code":"NOT_AUTHOR","status":403,"surface":"partner","when":"Only the author of a message may edit or delete it.","howToFix":"Act as the author of the message.","retryable":false},{"code":"NOT_FOUND","status":404,"surface":"partner","when":"The id does not exist in this account (the answer is the same for ids of other accounts), or the path is not an operation.","howToFix":"List the resource first and use an id from the list; check the path against the OpenAPI document.","retryable":false},{"code":"NOT_PENDING","status":409,"surface":"partner","when":"The chat message is not waiting for moderation.","howToFix":"Read the moderation queue.","retryable":false},{"code":"NOT_PUBLISHING","status":409,"surface":"partner","when":"The stream receives no signal.","howToFix":"Start the encoder, check get_stream_status, then repeat.","retryable":false},{"code":"NOT_READY","status":[409,503],"surface":"partner","when":"The thing asked for is not ready yet (the preview is still being prepared, the video is still processing).","howToFix":"Wait a few seconds and repeat.","retryable":true,"retryAfterSeconds":5},{"code":"NO_CUSTOM_DOMAIN","status":404,"surface":"partner","when":"The account has no custom domain yet.","howToFix":"Create one with POST /me/custom-domain first.","retryable":false},{"code":"NO_FILE","status":400,"surface":"partner","when":"The upload carries no file under the field name \"file\".","howToFix":"Send multipart/form-data with the file in the \"file\" field.","retryable":false},{"code":"NO_HOSTNAME","status":409,"surface":"partner","when":"The site cannot be activated without a subdomain or a verified custom domain.","howToFix":"Create one with POST /me/subdomain or POST /me/custom-domain (and verify the domain), then activate.","retryable":false},{"code":"NO_PAYOUT_GATEWAY","status":403,"surface":"partner","when":"Paid access needs a connected and verified payout gateway; none is connected.","howToFix":"The account owner connects a payment gateway in the dashboard (Monetization), then the call is repeated.","retryable":false},{"code":"NO_UPLOAD_WORKERS","status":503,"surface":"partner","when":"No upload server is online.","howToFix":"Repeat after a short wait.","retryable":true,"retryAfterSeconds":30},{"code":"OWNER_SCOPE_REQUIRED","status":403,"surface":"partner","when":"Only the account owner may do this (listing or creating keys, revoking another key).","howToFix":"Authenticate with a FULL_ACCESS key of the owner, or supply an X-User-Token from POST /auth/login.","retryable":false},{"code":"PAID_SUBSCRIPTION","status":400,"surface":"partner","when":"The subscription is paid and cannot be cancelled this way.","howToFix":"Cancel it through DELETE /subscribers/{userId} on the creator side or the payment provider's customer portal.","retryable":false},{"code":"PAID_SUBSCRIPTION_LAPSED","status":409,"surface":"partner","when":"A paid subscription exists and is not active; a free follow does not renew it.","howToFix":"Renew it with POST /checkout/subscription.","retryable":false},{"code":"PAID_TIER_USE_CHECKOUT","status":400,"surface":"partner","when":"A paid tier cannot be joined through the subscribers API.","howToFix":"Use POST /checkout/subscription.","retryable":false},{"code":"PAYLOAD_TOO_LARGE","status":413,"surface":"partner","when":"The body or file is larger than the operation accepts.","howToFix":"Send a smaller body or file; the message names the limit.","retryable":false},{"code":"PERMISSION_DENIED","status":403,"surface":"partner","when":"The key lacks the permission this operation needs (the message names it, for example videos:write).","howToFix":"Create a key whose permissions include the one named in the message, or ask the account owner for it.","retryable":false},{"code":"PLAN_LIMIT","status":403,"surface":"partner","when":"The feature or count is above what the plan of the account allows.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false},{"code":"PLAN_LIMIT_EXCEEDED","status":403,"surface":"partner","when":"A count (tiers, items) reached the limit of the plan.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false},{"code":"PLAN_RESTREAM_LEG_LIMIT_REACHED","status":409,"surface":"partner","when":"The change would put more outgoing restream legs on air than the plan allows at once.","howToFix":"Switch a leg off, stop another restream, or upgrade the plan; limit, current, wanted and total give the numbers.","retryable":false,"fields":["limit","current","wanted","total","plan"]},{"code":"PLAN_STREAM_LIMIT_REACHED","status":409,"surface":"partner","when":"The plan allows fewer simultaneous live streams than would be on air.","howToFix":"Stop another live stream or upgrade the plan; limit and current in the answer give the numbers.","retryable":false,"fields":["limit","current"]},{"code":"PLAN_UNAVAILABLE","status":503,"surface":"partner","when":"The plan of the account could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5},{"code":"PLAN_UPGRADE_REQUIRED","status":403,"surface":"partner","when":"The feature is not part of the plan of the account.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false,"fields":["feature","plan"]},{"code":"POLL_CLOSED","status":409,"surface":"partner","when":"The poll is closed.","howToFix":"Open a new poll.","retryable":false},{"code":"POLL_NOT_FOUND","status":404,"surface":"partner","when":"No such poll in this room.","howToFix":"List the room's polls and use an id from the list.","retryable":false},{"code":"PRECONDITION_FAILED","status":422,"surface":"partner","when":"A precondition is not met (restream: no destination passed the pre-flight; room recording: nobody is connected).","howToFix":"Fix what the message names (each destination needs enabled true, a stream key and an rtmp address; a recording needs a connected participant), then start again.","retryable":false},{"code":"PRICE_ABOVE_PLAN_MAX","status":400,"surface":"partner","when":"The price of one sale is above what the plan of the account allows.","howToFix":"Send a price at or below details.maxUsd, or move the account to a plan with a higher maximum. Prices already saved are not changed.","retryable":false,"fields":["price","priceMonthly","priceAnnual","priceCents"]},{"code":"PRICE_BELOW_PLAN_MIN","status":400,"surface":"partner","when":"The price of one sale is below what the plan of the account allows.","howToFix":"Send a price at or above details.minUsd, or move the account to a plan with a lower minimum. Prices already saved are not changed.","retryable":false,"fields":["price","priceMonthly","priceAnnual","priceCents"]},{"code":"PRICE_REQUIRED","status":400,"surface":"partner","when":"The item is marked paid but has no positive price.","howToFix":"Send price with a positive amount together with isPaid true, or set isPaid false.","retryable":false,"fields":["price"]},{"code":"PRODUCT_HAS_BOOKINGS","status":409,"surface":"partner","when":"The product has bookings and cannot be deleted.","howToFix":"Unpublish it instead.","retryable":false},{"code":"PROGRAM_UNAVAILABLE","status":502,"surface":"partner","when":"The backup program did not accept the change; the return mode is stored.","howToFix":"Try the switch again shortly.","retryable":true,"retryAfterSeconds":5},{"code":"QUEUE_ORDER","status":409,"surface":"partner","when":"An older message in the moderation queue must be handled first.","howToFix":"Approve or reject the oldest pending message first.","retryable":false},{"code":"QUIZ_CLOSED","status":409,"surface":"partner","when":"The quiz is closed.","howToFix":"Open a new quiz.","retryable":false},{"code":"QUIZ_NOT_FOUND","status":404,"surface":"partner","when":"No such quiz in this room.","howToFix":"List the room's quizzes and use an id from the list.","retryable":false},{"code":"QUOTA_EXCEEDED","status":403,"surface":"partner","when":"Storage or another plan quota is used up.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false},{"code":"RATE_LIMIT","status":429,"surface":"partner","when":"Too many view events from one address for one video.","howToFix":"Wait a minute and repeat.","retryable":true,"retryAfterSeconds":60},{"code":"RATE_LIMITED","status":429,"surface":"both","when":"More requests than the per-key (Partner API) or per-address (everything else) limit allows in the current window.","howToFix":"Wait for the Retry-After header (or X-RateLimit-Reset), then repeat; slow the calls down.","retryable":true,"retryAfterSeconds":60},{"code":"RECORDING_NOT_READY","status":425,"surface":"partner","when":"The recording is still processing.","howToFix":"Repeat in a few seconds.","retryable":true,"retryAfterSeconds":10},{"code":"RECORDING_PLAN_LOCKED","status":403,"surface":"partner","when":"Cloud recording of rooms is a paid feature.","howToFix":"The plan of the account does not allow this (the message and details name the limit). Upgrading the plan (https://dcast.tv/pricing) raises it; repeating the same call will not succeed.","retryable":false},{"code":"RECORDING_UNAVAILABLE","status":503,"surface":"partner","when":"The recording could not be started right now.","howToFix":"Repeat in a few seconds; if it persists contact DCAST support.","retryable":true,"retryAfterSeconds":10},{"code":"REQUEST_NOT_FOUND","status":404,"surface":"partner","when":"No website access request with this id.","howToFix":"Start the request again from the site connector.","retryable":false},{"code":"REQUEST_NOT_PENDING","status":409,"surface":"partner","when":"The website access request was already answered.","howToFix":"Read its outcome, or start a new request.","retryable":false},{"code":"ROOM_ADMISSION_UNAVAILABLE","status":503,"surface":"partner","when":"Admission to the room could not be decided right now.","howToFix":"Repeat shortly.","retryable":true,"retryAfterSeconds":5},{"code":"ROOM_LIVEKIT_EDGE_UNAVAILABLE","status":503,"surface":"partner","when":"No call server is available for this room right now.","howToFix":"Repeat shortly.","retryable":true,"retryAfterSeconds":5},{"code":"ROOM_NOT_ACTIVE","status":409,"surface":"partner","when":"Nobody has joined the room yet.","howToFix":"Repeat after a participant joins.","retryable":true},{"code":"ROUTE_NOT_FOR_THIS_CLIENT","status":403,"surface":"partner","when":"This route is not open to the kind of client that called it.","howToFix":"Use the dashboard for this action.","retryable":false},{"code":"SECOND_FACTOR_REQUIRED","status":401,"surface":"partner","when":"The account has two-step sign-in; the password alone is not enough.","howToFix":"Finish the sign-in at POST /api/auth/login/2fa with the challengeId from this answer and the code from the authenticator.","retryable":false,"fields":["challengeId"]},{"code":"SECOND_FACTOR_UNAVAILABLE","status":503,"surface":"partner","when":"Two-step verification cannot be checked right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5},{"code":"SELLER_TURNOVER_LIMIT_REACHED","status":409,"surface":"partner","when":"The seller has reached the monthly sales limit of the plan, so this payment cannot be taken now.","howToFix":"Try again later, or contact the seller. The seller lifts the limit at once by moving to a higher plan.","retryable":false},{"code":"SERVICE_UNAVAILABLE","status":[500,503],"surface":"partner","when":"A service the call depends on has no capacity or is not configured right now.","howToFix":"Repeat after a few seconds.","retryable":true,"retryAfterSeconds":5},{"code":"SITE_AREAS_REQUIRED","status":400,"surface":"partner","when":"The request names no areas for the website.","howToFix":"Name the areas the website server needs, for example {\"videos\":\"read\"}; details.allowed lists the possible ones.","retryable":false,"fields":["details.allowed"]},{"code":"SITE_AREA_NOT_ALLOWED","status":400,"surface":"partner","when":"A website cannot hold the area or level that was asked for.","howToFix":"details.allowed lists what a website can hold; ask only for what the website server needs.","retryable":false,"fields":["details.allowed"]},{"code":"SITE_CODE_ANSWERED","status":409,"surface":"partner","when":"The owner already answered this site code.","howToFix":"Read the outcome with get_site_access_status; for a new attempt run the site connector again.","retryable":false},{"code":"SITE_CODE_CLAIMED","status":409,"surface":"partner","when":"Another connection already sent this site code.","howToFix":"Run the DCAST site connector again for a new code.","retryable":false},{"code":"SITE_CODE_UNKNOWN","status":[400,404],"surface":"partner","when":"The site code is unknown, expired, or not from this connection.","howToFix":"Run the DCAST site connector again in the website project and pass the code it prints.","retryable":false},{"code":"SITE_CONNECTOR_UNAVAILABLE","status":503,"surface":"partner","when":"The website access service cannot answer right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5},{"code":"SITE_KEY_LIMIT","status":409,"surface":"partner","when":"This connection already gave access to 10 websites.","howToFix":"The owner switches one website off in the dashboard (API keys); then ask again.","retryable":false,"fields":["limit"]},{"code":"SSE_PER_KEY_CAP","status":429,"surface":"partner","when":"More concurrent event-stream connections than the cap per key (25).","howToFix":"Close idle streams and repeat.","retryable":true},{"code":"STREAM_NOT_ACTIVE","status":400,"surface":"partner","when":"The operation needs a stream that is receiving a signal.","howToFix":"Start the encoder and the stream first, then repeat.","retryable":false},{"code":"STRIPE_CANCEL_FAILED","status":502,"surface":"partner","when":"The payment provider did not cancel the subscription.","howToFix":"Repeat the call; if it persists contact DCAST support.","retryable":true},{"code":"STRIPE_VERIFICATION_REQUIRED","status":403,"surface":"partner","when":"A payment gateway is connected but its verification is not finished.","howToFix":"The account owner finishes the gateway verification in the dashboard (Monetization), then repeat.","retryable":false},{"code":"STUDIO_SITE_NOT_ALLOWED","status":403,"surface":"partner","when":"The calling site is not in the list of sites the author allows to show the content.","howToFix":"The author adds the site in the dashboard (embed domains), or the content is shown on the author's own site.","retryable":false},{"code":"SUBDOMAIN_RESERVED","status":409,"surface":"partner","when":"The subdomain is reserved.","howToFix":"Choose another subdomain.","retryable":false},{"code":"SUBDOMAIN_TAKEN","status":409,"surface":"partner","when":"The subdomain is in use.","howToFix":"Choose another subdomain.","retryable":false},{"code":"SUPPORT_PLAN_UNAVAILABLE","status":503,"surface":"partner","when":"The support entitlement could not be read right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5},{"code":"TEAM_OWNER_REQUIRED","status":403,"surface":"partner","when":"Managing team membership needs an owner-class credential.","howToFix":"Use the owner's X-User-Token or a finance-write key.","retryable":false},{"code":"TEMPORARILY_UNAVAILABLE","status":503,"surface":"partner","when":"The service cannot answer right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5},{"code":"TICKET_CLOSED","status":409,"surface":"partner","when":"The support ticket is closed.","howToFix":"Open a new ticket.","retryable":false},{"code":"TICKET_NOT_FOR_VIDEO_UPLOAD","status":403,"surface":"partner","when":"The ticket is not a video upload ticket.","howToFix":"Use the ticket that POST /videos/upload gave.","retryable":false},{"code":"TIER_HAS_SUBSCRIBERS","status":409,"surface":"partner","when":"The tier has active subscribers and cannot be deleted.","howToFix":"Deactivate it with PATCH isActive=false instead.","retryable":false},{"code":"TIER_INACTIVE","status":400,"surface":"partner","when":"The tier is not active.","howToFix":"Choose an active tier (GET /tiers).","retryable":false},{"code":"TIER_PRICE_LOCKED","status":409,"surface":"partner","when":"The tier has active subscribers, so its price cannot change.","howToFix":"Create a new tier, or wait until the subscriptions end.","retryable":false},{"code":"TOKEN_EXPIRED","status":401,"surface":"partner","when":"The upload token has expired.","howToFix":"Start the upload again with POST /videos/upload and send the bytes to the new upload.url.","retryable":false},{"code":"TOO_MANY_FILES","status":400,"surface":"partner","when":"More files than the operation accepts per request.","howToFix":"Send fewer files per request; the message names the maximum.","retryable":false},{"code":"TRANSCODER_START_FAILED","status":500,"surface":"partner","when":"The broadcast could not start right now; the card was put back to its state before Start.","howToFix":"Check that get_stream_status shows the signal arriving, then start again.","retryable":true,"retryAfterSeconds":5},{"code":"UNAUTHORIZED","status":401,"surface":"partner","when":"No credential reached the API, or the request has no usable identity.","howToFix":"Send the API key as \"Authorization: Bearer pk_...\" (or the X-API-Key header). A key is created in the dashboard under Settings, API keys.","retryable":false},{"code":"UNKNOWN_EVENT","status":400,"surface":"partner","when":"The webhook event name is not in the catalogue.","howToFix":"Use GET /me/webhooks/event-types for the allowed names, or a wildcard such as * or video.*.","retryable":false},{"code":"UNSUPPORTED_FIELD","status":400,"surface":"partner","when":"The body carries a field this operation does not support (for example currency or donationsEnabled).","howToFix":"Remove the field; the message says why or where to set it.","retryable":false,"fields":["field"]},{"code":"UNSUPPORTED_MEDIA_TYPE","status":415,"surface":"partner","when":"The file type is not accepted.","howToFix":"Send one of the types the message lists (JPEG, PNG, WebP for images).","retryable":false},{"code":"UPLOAD_ALREADY_COMPLETE","status":409,"surface":"partner","when":"The video has already received its file.","howToFix":"Nothing to send; read the video status.","retryable":false},{"code":"UPLOAD_ERROR","status":400,"surface":"partner","when":"The upload could not be read.","howToFix":"Check the multipart body and send the file again.","retryable":false},{"code":"UPLOAD_LENGTH_REQUIRED","status":400,"surface":"partner","when":"A resumable upload was created without Upload-Length.","howToFix":"Send the Upload-Length header with the total size in bytes.","retryable":false},{"code":"UPLOAD_PLACEMENT_FAILED","status":503,"surface":"partner","when":"The upload could not be placed on a server; nothing was reserved.","howToFix":"Repeat the request.","retryable":true,"retryAfterSeconds":5},{"code":"UPSTREAM_ERROR","status":502,"surface":"partner","when":"A destination platform refused the connection.","howToFix":"Check the platform account or stream key of the destination.","retryable":false},{"code":"USER_DELETED","status":401,"surface":"partner","when":"The account was deleted.","howToFix":"Nothing can be done with this credential. Register a new account if needed.","retryable":false},{"code":"USER_HAS_NO_EMAIL","status":400,"surface":"partner","when":"The account has no verified email on file.","howToFix":"Confirm an email in the dashboard first.","retryable":false},{"code":"USER_NOT_FOUND","status":404,"surface":"partner","when":"The user does not exist.","howToFix":"Check the username or user id.","retryable":false},{"code":"VALIDATION_ERROR","status":400,"surface":"partner","when":"An input failed validation.","howToFix":"Fix the input named in the message and call again.","retryable":false,"fields":["field"]},{"code":"VERIFICATION_REQUIRED","status":403,"surface":"partner","when":"The account email is not confirmed and its one free first item of this kind is already used.","howToFix":"Confirm the email from the DCAST letter (a new letter is sent only by the button in the dashboard), then repeat the call.","retryable":false},{"code":"VIDEO_ALREADY_ATTACHED","status":409,"surface":"partner","when":"The video is already attached to the cohort.","howToFix":"Nothing to do.","retryable":false},{"code":"VIDEO_NOT_READY","status":400,"surface":"partner","when":"The video is not processed yet.","howToFix":"Wait until get_video_status says READY, then repeat.","retryable":false},{"code":"VIMEO_DOWNLOAD_UNAVAILABLE","status":422,"surface":"partner","when":"The owner has switched downloads off for this video on Vimeo.","howToFix":"Allow downloads for the video in its Vimeo settings, then import it again.","retryable":false},{"code":"VIMEO_NOT_FOUND","status":422,"surface":"partner","when":"Vimeo has no such video for this account.","howToFix":"Check the video id or link; it must be a video of the token's own Vimeo library.","retryable":false},{"code":"VIMEO_NO_ACCESS","status":422,"surface":"partner","when":"The Vimeo account behind the token has no access to the video.","howToFix":"Use a token of the Vimeo account that owns the video.","retryable":false},{"code":"VIMEO_RATE_LIMITED","status":502,"surface":"partner","when":"Vimeo is limiting requests.","howToFix":"Try again in a few minutes.","retryable":true},{"code":"VIMEO_REFERENCE_INVALID","status":422,"surface":"partner","when":"The item is not a Vimeo video id or a vimeo.com video link.","howToFix":"Send the numeric Vimeo video id or the vimeo.com link of the video.","retryable":false},{"code":"VIMEO_TOKEN_INVALID","status":422,"surface":"partner","when":"Vimeo did not accept the personal access token (revoked, mistyped or of the wrong shape).","howToFix":"Create a new Vimeo personal access token with the scopes public, private and video_files, and send it again.","retryable":false},{"code":"VIMEO_TOKEN_SCOPE","status":422,"surface":"partner","when":"The Vimeo token lacks a required scope.","howToFix":"Create a Vimeo token with the scopes public, private and video_files, and send it again.","retryable":false},{"code":"VIMEO_UNAVAILABLE","status":502,"surface":"partner","when":"Vimeo could not be asked right now.","howToFix":"Try again in a few minutes.","retryable":true},{"code":"WEAK_PASSWORD","status":400,"surface":"partner","when":"The password is too weak.","howToFix":"Use a longer password; the message names the minimum.","retryable":false,"fields":["field"]},{"code":"WEBHOOK_INACTIVE","status":400,"surface":"partner","when":"The webhook is switched off, so it cannot fire a test event or replay a delivery.","howToFix":"Activate the webhook (PATCH /me/webhooks/{id} with isActive true), then repeat.","retryable":false},{"code":"WRONG_PRODUCT_TYPE","status":400,"surface":"partner","when":"Cohorts can only be created under a product of type COHORT.","howToFix":"Create the cohort under a COHORT product.","retryable":false},{"code":"integration_domain_required","status":403,"surface":"partner","when":"Checkout is origin-locked and the key has no declared integration domain.","howToFix":"Declare and verify the website domain (DNS TXT) in the dashboard, then call checkout from that origin.","retryable":false},{"code":"origin_lock_unavailable","status":503,"surface":"partner","when":"The origin check could not be completed right now.","howToFix":"Try again in a few seconds.","retryable":true,"retryAfterSeconds":5},{"code":"origin_not_allowed","status":403,"surface":"partner","when":"Checkout is origin-locked and the calling origin is not a verified integration domain of the account.","howToFix":"Call checkout from a declared and verified integration domain.","retryable":false}],"x-dcast-event-types":["webhook.test","video.upload.completed","video.processing.completed","video.processing.failed","stream.live","stream.ended","stream.broadcast_started","stream.broadcast_stopped","restream.started","restream.ended","restream.failed","subscription.created","subscription.cancelled","subscription.renewed","purchase.completed","purchase.refunded","account.export.ready"]}