-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
2197 lines (2180 loc) · 72.3 KB
/
Copy pathopenapi.yaml
File metadata and controls
2197 lines (2180 loc) · 72.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Convertrilo Encode API
version: "1.0.0"
description: |
JWT-protected API for creating and managing encode jobs. Supports browser-upload, direct URL ingest, or S3 source.
Public endpoints are limited and rate-limited.
Swagger auth:
1. Create an API key in Dashboard -> Developer.
2. Click Authorize in these docs.
3. Paste the raw API key into ApiKeyAuth.
4. Protected endpoints can then be executed from Swagger.
API integrations should keep Convertrilo API keys and customer storage credentials on the server.
Google Drive folder automation uses encrypted customer-owned service-account credentials.
Dashboard Google Drive access is separate and uses Google Picker with the drive.file scope.
Official TypeScript SDK: https://www.npmjs.com/package/@convertrilo/sdk
SDK source and examples: https://github.com/serkandrgn/convertrilo-js
Interactive docs: https://api.convertrilo.com/docs
externalDocs:
description: Convertrilo TypeScript SDK
url: https://github.com/serkandrgn/convertrilo-js
servers:
- url: /
description: Same origin as these docs
- url: https://api.convertrilo.com
description: Production
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
parameters:
IdempotencyKey:
in: header
name: Idempotency-Key
required: false
schema:
type: string
maxLength: 255
description: Optional key for safely retrying job creation requests. Reusing the same key with the same request body replays the original response; reusing it with a different body returns 409.
schemas:
AuthLoginRequest:
type: object
required: [email, password]
properties:
email: { type: string, format: email }
password: { type: string, minLength: 8 }
AuthLoginResponse:
type: object
properties:
accessToken: { type: string }
refreshToken: { type: string }
TokenBalanceResponse:
type: object
properties:
available: { type: number }
reserved: { type: number }
trialGrantRemaining: { type: number }
trialExpiresAt: { type: string, format: date-time, nullable: true }
TokenReserveRequest:
type: object
required: [jobId, amount]
properties:
jobId: { type: string, format: uuid }
amount: { type: integer, minimum: 1 }
TokenDeductRequest:
type: object
required: [jobId, amount]
properties:
jobId: { type: string, format: uuid }
amount: { type: integer, minimum: 1 }
CompatibilityWarning:
type: object
required: [code, message]
properties:
code: { type: string }
message: { type: string }
severity:
type: string
enum: [info, warning, error]
MediaColorProbe:
type: object
properties:
kind:
type: string
enum: [sdr, hdr10, hlg, unknown, conflicting]
primaries: { type: string, nullable: true }
transfer: { type: string, nullable: true }
matrix: { type: string, nullable: true }
range: { type: string, nullable: true }
notes:
type: array
items: { type: string }
MediaProbe:
type: object
properties:
durationSec: { type: number }
codec: { type: string, nullable: true }
width: { type: integer, nullable: true }
height: { type: integer, nullable: true }
fps: { type: number, nullable: true }
audioStreams: { type: integer }
audioCodec: { type: string, nullable: true }
container: { type: string, nullable: true }
color:
$ref: "#/components/schemas/MediaColorProbe"
JobCreateRequest:
type: object
required: [codec, resolution, fps]
properties:
externalId:
type: string
maxLength: 255
description: Your stable job identifier for reconciliation in status responses and webhooks.
metadata:
type: object
additionalProperties: true
description: Integration-owned JSON object returned in status responses and webhooks.
codec:
type: string
enum: [h264, h265, av1]
resolution:
type: string
enum: [480p, 720p, 1080p, 1440p, 2160p, 4320p]
fps:
type: integer
minimum: 1
maximum: 240
container:
type: string
enum: [mp4, mkv, webm, mov]
default: mp4
preset:
type: string
enum: [fast, standard, slow]
default: fast
bitrateTier:
type: string
enum: [low, medium, high]
default: medium
passes:
type: integer
enum: [1, 2]
default: 1
description: Requested encoding passes. When optimize is vmaf, the API uses and bills one effective final pass.
policy:
type: string
enum: [fastest, gpu_first, gpu_only]
default: gpu_first
quality:
type: string
enum: [good, better, best]
audioPolicy:
type: string
enum: [auto, copy, transcode-aac, strip]
default: transcode-aac
frameRatePolicy:
type: string
enum: [preserve, cap, force]
default: force
scalePolicy:
type: string
enum: [no-upscale, allow-upscale, downscale-only]
default: no-upscale
sourceUrl:
type: string
format: uri
description: Optional direct HTTP(S) ingest. When provided, upload URL is not returned.
originalFilename:
type: string
description: Optional source filename used to generate human-readable output download names.
sourceS3:
type: object
properties:
bucket: { type: string }
key: { type: string }
endpoint: { type: string }
region: { type: string }
accessKeyId: { type: string }
secretAccessKey: { type: string }
forcePathStyle: { type: boolean }
confirm: { type: boolean, default: false }
optimize: { type: string, enum: [none, vmaf] }
vmafTarget: { type: number, minimum: 50, maximum: 99 }
JobCreateResponse:
type: object
required: [jobId, upload, output]
properties:
jobId: { type: string }
externalId: { type: string, nullable: true }
metadata:
type: object
additionalProperties: true
nullable: true
sourceFilename: { type: string, nullable: true }
outputFilename: { type: string, nullable: true }
status:
type: string
description: Present when the job is auto-confirmed and queued.
upload:
nullable: true
type: object
properties:
url: { type: string }
key: { type: string }
output:
type: object
properties:
key: { type: string }
publicUrl: { type: string }
estimate:
type: object
properties:
neu: { type: number }
totalNeu: { type: number }
reserved: { type: number }
requestedPasses: { type: integer, enum: [1, 2] }
effectivePasses:
type: integer
enum: [1, 2]
description: Pass count actually used for pricing and encoding. VMAF requests use 1.
warnings:
type: array
items:
$ref: "#/components/schemas/CompatibilityWarning"
JobFilesDeleteResponse:
type: object
required: [ok, jobId, objectsDeleted, jobRetained]
properties:
ok: { type: boolean }
jobId: { type: string }
objectsDeleted:
type: integer
minimum: 0
jobRetained:
type: boolean
enum: [true]
description: The job and billing history remain available after managed files are deleted.
JobCancelResponse:
type: object
required: [ok]
properties:
ok: { type: boolean }
released:
type: number
description: Actual reserved NEU returned to the account.
note:
type: string
description: Present when cancellation is a terminal-state no-op.
ProbeDurationResponse:
type: object
properties:
durationSec: { type: number }
durationMinutes: { type: number }
ApproveUnifiedRequest:
type: object
properties:
codec: { type: string, enum: [h264, h265, av1] }
resolution: { type: string }
fps: { type: integer }
preset: { type: string, enum: [fast, standard, slow] }
bitrateTier: { type: string, enum: [low, medium, high] }
passes:
type: integer
enum: [1, 2]
description: Requested passes. Ignored for execution and billing when optimize is vmaf.
policy: { type: string, enum: [gpu_only, gpu_first, fastest] }
container: { type: string, enum: [mp4, mkv, webm, mov] }
quality: { type: string, enum: [good, better, best] }
optimize: { type: string, enum: [none, vmaf] }
vmafTarget: { type: number, minimum: 50, maximum: 99 }
audioPolicy: { type: string, enum: [auto, copy, transcode-aac, strip] }
frameRatePolicy: { type: string, enum: [preserve, cap, force] }
scalePolicy:
{ type: string, enum: [no-upscale, allow-upscale, downscale-only] }
ApproveUnifiedResponse:
type: object
properties:
ok: { type: boolean }
estimate:
type: object
properties:
perMinuteNeu: { type: number }
durationSec: { type: number }
totalNeu: { type: number }
reserved: { type: number }
requestedPasses: { type: integer, enum: [1, 2] }
effectivePasses:
type: integer
enum: [1, 2]
description: Pass count used for pricing and execution.
warnings:
type: array
items:
$ref: "#/components/schemas/CompatibilityWarning"
ConfirmRequest:
type: object
properties:
container: { type: string, enum: [mp4, mkv, webm, mov] }
quality: { type: string, enum: [good, better, best] }
optimize: { type: string, enum: [none, vmaf] }
vmafTarget: { type: number, minimum: 1, maximum: 100 }
audioPolicy: { type: string, enum: [auto, copy, transcode-aac, strip] }
frameRatePolicy: { type: string, enum: [preserve, cap, force] }
scalePolicy:
{ type: string, enum: [no-upscale, allow-upscale, downscale-only] }
ConfirmResponse:
type: object
properties:
ok: { type: boolean }
StatusResponse:
type: object
properties:
id: { type: string }
externalId: { type: string, nullable: true }
metadata:
type: object
additionalProperties: true
nullable: true
sourceFilename: { type: string, nullable: true }
outputFilename: { type: string, nullable: true }
status: { type: string }
ingest: { type: string, nullable: true }
container: { type: string, enum: [mp4, mkv, webm, mov], nullable: true }
quality: { type: string, enum: [good, better, best], nullable: true }
output:
nullable: true
type: object
properties:
key: { type: string }
publicUrl: { type: string }
downloadUrl: { type: string, nullable: true }
encoder: { type: string, nullable: true }
pct: { type: number, nullable: true }
createdAt: { type: string, format: date-time }
startedAt: { type: string, format: date-time, nullable: true }
finishedAt: { type: string, format: date-time, nullable: true }
failureMessage: { type: string, nullable: true }
requestedExecution:
type: object
additionalProperties: true
nullable: true
effectiveExecution:
type: object
additionalProperties: true
nullable: true
sourceProbe:
$ref: "#/components/schemas/MediaProbe"
nullable: true
outputProbe:
$ref: "#/components/schemas/MediaProbe"
nullable: true
warnings:
type: array
items:
$ref: "#/components/schemas/CompatibilityWarning"
billingSummary:
type: object
additionalProperties: true
nullable: true
executionReport:
type: object
additionalProperties: true
nullable: true
ErrorResponse:
type: object
required: [code, message]
properties:
code:
type: string
description: Stable machine-readable error code. Branch on this instead of parsing `message`.
enum:
- invalid_api_key
- api_key_expired
- user_not_found
- account_banned
- missing_required_scope
- invalid_request
- invalid_body
- invalid_url
- url_ingest_disabled
- url_host_blocked
- signed_url_required
- host_not_resolvable
- private_ip_blocked
- missing_content_length
- file_too_large
- unsupported_content_type
- probe_failed
- insufficient_tokens
- idempotency_conflict
- idempotency_in_progress
- rate_limit_exceeded
- not_found
- forbidden
- deprecated_dropbox
- google_drive_not_connected
- dropbox_not_connected
- no_video_files_found
- webhook_limit_exceeded
- webhook_not_found
- no_updates_provided
- output_not_available
- job_active
- job_files_delete_failed
message: { type: string }
issues:
description: Validation details for `invalid_body`.
requiredScope: { type: string }
required: { type: number }
available: { type: number }
# Bulk Jobs
BulkCreateRequest:
type: object
required: [jobs]
properties:
jobs:
type: array
items:
$ref: "#/components/schemas/JobCreateRequest"
settings:
type: object
required: []
properties:
failFast: { type: boolean, default: false }
dryRun: { type: boolean, default: false }
confirm: { type: boolean, default: false }
container: { type: string, enum: [mp4, mkv, webm, mov] }
quality: { type: string, enum: [good, better, best] }
optimize: { type: string, enum: [none, vmaf] }
vmafTarget: { type: number, minimum: 50, maximum: 99 }
audioPolicy:
{ type: string, enum: [auto, copy, transcode-aac, strip] }
frameRatePolicy: { type: string, enum: [preserve, cap, force] }
scalePolicy:
{
type: string,
enum: [no-upscale, allow-upscale, downscale-only],
}
BulkCreateResponse:
type: object
properties:
totalJobs: { type: integer }
totalEstimatedNeu: { type: number }
reserved: { type: number }
jobs:
type: array
items:
type: object
properties:
index: { type: integer }
jobId: { type: string, format: uuid }
externalId: { type: string, nullable: true }
metadata:
type: object
additionalProperties: true
nullable: true
status: { type: string }
error: { type: string }
estimate:
type: object
properties:
neu: { type: number }
warnings:
type: array
items:
$ref: "#/components/schemas/CompatibilityWarning"
warnings:
type: array
items:
$ref: "#/components/schemas/CompatibilityWarning"
BulkStatusResponse:
type: object
properties:
jobs:
type: array
items:
$ref: "#/components/schemas/StatusResponse"
missing:
type: array
items: { type: string }
BulkConfirmRequest:
type: object
required: [jobIds]
properties:
jobIds:
type: array
items: { type: string, format: uuid }
settings:
type: object
properties:
container: { type: string, enum: [mp4, mkv, webm, mov] }
quality: { type: string, enum: [good, better, best] }
audioPolicy:
{ type: string, enum: [auto, copy, transcode-aac, strip] }
frameRatePolicy: { type: string, enum: [preserve, cap, force] }
scalePolicy:
{
type: string,
enum: [no-upscale, allow-upscale, downscale-only],
}
# Encode Presets
EncodePresetSettings:
type: object
required:
- codec
- resolution
- fps
- preset
- bitrateTier
- passes
- policy
- container
- quality
- optimize
- vmafTarget
- audioPolicy
- frameRatePolicy
- scalePolicy
properties:
codec: { type: string, enum: [h264, h265, av1] }
resolution:
{ type: string, enum: [480p, 720p, 1080p, 1440p, 2160p, 4320p] }
fps: { type: integer, minimum: 1, maximum: 240 }
preset: { type: string, enum: [fast, standard, slow] }
bitrateTier: { type: string, enum: [low, medium, high] }
passes: { type: integer, enum: [1, 2] }
policy: { type: string, enum: [gpu_only, gpu_first, fastest] }
container: { type: string, enum: [mp4, mkv, webm, mov] }
quality: { type: string, enum: [good, better, best] }
optimize: { type: string, enum: [none, vmaf] }
vmafTarget: { type: integer, minimum: 50, maximum: 99 }
audioPolicy: { type: string, enum: [auto, copy, transcode-aac, strip] }
frameRatePolicy: { type: string, enum: [preserve, cap, force] }
scalePolicy:
{ type: string, enum: [no-upscale, allow-upscale, downscale-only] }
EncodePresetCreateRequest:
type: object
required: [name, settings]
properties:
name: { type: string, minLength: 1, maxLength: 255 }
settings:
$ref: "#/components/schemas/EncodePresetSettings"
EncodePresetUpdateRequest:
type: object
properties:
name: { type: string, minLength: 1, maxLength: 255 }
settings:
$ref: "#/components/schemas/EncodePresetSettings"
EncodePresetResponse:
type: object
properties:
id: { type: string, format: uuid }
name: { type: string }
settings:
$ref: "#/components/schemas/EncodePresetSettings"
createdAt: { type: string, format: date-time }
updatedAt: { type: string, format: date-time }
EncodePresetListResponse:
type: object
properties:
presets:
type: array
items:
$ref: "#/components/schemas/EncodePresetResponse"
# Output Destinations
OutputDestinationConfig:
oneOf:
- type: object
required: [type]
properties:
type: { type: string, enum: [cdn] }
outputExpiry: { type: integer, minimum: 3600, maximum: 604800 }
- type: object
required: [type, credentialId]
properties:
type: { type: string, enum: [s3] }
credentialId: { type: string, format: uuid }
keyPrefix: { type: string, maxLength: 1024 }
- type: object
required: [type, folderId]
properties:
type: { type: string, enum: [google-drive] }
credentialId: { type: string, format: uuid }
folderId: { type: string, minLength: 1 }
folderName: { type: string, maxLength: 255 }
fileNameTemplate: { type: string, maxLength: 255 }
discriminator:
propertyName: type
OutputDestinationCreateRequest:
type: object
required: [name, config]
properties:
name: { type: string, minLength: 1, maxLength: 255 }
config:
$ref: "#/components/schemas/OutputDestinationConfig"
OutputDestinationUpdateRequest:
type: object
properties:
name: { type: string, minLength: 1, maxLength: 255 }
config:
$ref: "#/components/schemas/OutputDestinationConfig"
OutputDestinationResponse:
type: object
properties:
id: { type: string, format: uuid }
name: { type: string }
destinationType:
type: string
enum: [cdn, s3, google-drive]
config:
$ref: "#/components/schemas/OutputDestinationConfig"
createdAt: { type: string, format: date-time }
updatedAt: { type: string, format: date-time }
OutputDestinationListResponse:
type: object
properties:
destinations:
type: array
items:
$ref: "#/components/schemas/OutputDestinationResponse"
# API Keys
ApiKeyCreateRequest:
type: object
required: [name]
properties:
name: { type: string }
scopes:
type: array
description: |
Requested API key scopes. Use the minimum scopes needed:
`jobs:create`, `jobs:read`, `jobs:cancel`, `tokens:read`,
`webhooks:manage`, and `credentials:manage` for saved storage credential management.
items:
type: string
enum:
- jobs:create
- jobs:read
- jobs:cancel
- tokens:read
- tokens:write
- webhooks:manage
- credentials:manage
expiresInDays: { type: integer, minimum: 1, maximum: 365 }
ApiKeyResponse:
type: object
properties:
id: { type: string, format: uuid }
name: { type: string }
key: { type: string, description: "Raw key, only returned on creation" }
prefix: { type: string }
scopes:
type: array
items:
type: string
enum:
- jobs:create
- jobs:read
- jobs:cancel
- tokens:read
- tokens:write
- webhooks:manage
- credentials:manage
expiresAt: { type: string, format: date-time, nullable: true }
createdAt: { type: string, format: date-time }
ApiKeyListResponse:
type: object
properties:
keys:
type: array
items:
$ref: "#/components/schemas/ApiKeyResponse"
# Webhooks
WebhookCreateRequest:
type: object
required: [url, events]
properties:
url: { type: string, format: uri }
events:
type: array
items:
type: string
enum:
[
job.created,
job.queued,
job.running,
job.completed,
job.failed,
job.canceled,
]
WebhookUpdateRequest:
type: object
properties:
url: { type: string, format: uri }
events:
type: array
items:
type: string
enum:
[
job.created,
job.queued,
job.running,
job.completed,
job.failed,
job.canceled,
]
isActive: { type: boolean }
WebhookResponse:
type: object
properties:
id: { type: string, format: uuid }
url: { type: string }
events:
type: array
items: { type: string }
secret:
{
type: string,
description: "HMAC secret, only returned on creation",
}
isActive: { type: boolean }
failureCount: { type: integer }
lastTriggeredAt: { type: string, format: date-time, nullable: true }
lastFailedAt: { type: string, format: date-time, nullable: true }
createdAt: { type: string, format: date-time }
WebhookListResponse:
type: object
properties:
webhooks:
type: array
items:
$ref: "#/components/schemas/WebhookResponse"
WebhookDeliveryResponse:
type: object
properties:
id: { type: string, format: uuid }
webhookId: { type: string, format: uuid }
event: { type: string }
jobId: { type: string, format: uuid, nullable: true }
status: { type: string, enum: [success, failed] }
statusCode: { type: integer, nullable: true }
durationMs: { type: integer, nullable: true }
responseBody:
type: string
nullable: true
description: Response body captured from the receiver, truncated to 2048 characters.
error:
type: string
nullable: true
description: Network, timeout, or delivery error, truncated to 2048 characters.
attempt: { type: integer }
nextRetryAt: { type: string, format: date-time, nullable: true }
retriedAt: { type: string, format: date-time, nullable: true }
createdAt: { type: string, format: date-time }
WebhookDeliveryListResponse:
type: object
properties:
deliveries:
type: array
items:
$ref: "#/components/schemas/WebhookDeliveryResponse"
# On-Demand Encoding
S3Output:
type: object
required: [bucket, key]
properties:
bucket: { type: string }
key: { type: string }
endpoint: { type: string, format: uri }
region: { type: string }
accessKeyId: { type: string }
secretAccessKey: { type: string, format: password }
forcePathStyle: { type: boolean }
S3FolderSource:
type: object
description: Customer-owned S3-compatible folder source. Credentials should allow listing the prefix and reading objects.
required: [bucket]
properties:
bucket: { type: string }
prefix:
type: string
default: ""
description: Prefix to crawl. Only files with video extensions are queued.
endpoint:
type: string
format: uri
description: Optional S3-compatible endpoint, for example Cloudflare R2, MinIO, or object storage providers.
region: { type: string }
accessKeyId:
type: string
description: Optional source access key. Omit only when your backend/runtime provides credentials another way.
secretAccessKey: { type: string, format: password }
forcePathStyle: { type: boolean, default: true }
S3FolderOutput:
type: object
description: Customer-owned S3-compatible output destination. Credentials should allow writing encoded objects.
required: [bucket]
properties:
bucket: { type: string }
prefix:
type: string
default: outputs/
description: Output key prefix. The source file name is appended to this prefix.
endpoint:
type: string
format: uri
description: Optional S3-compatible endpoint, for example Cloudflare R2, MinIO, or object storage providers.
region: { type: string }
accessKeyId:
type: string
description: Optional output access key. Omit only when your backend/runtime provides credentials another way.
secretAccessKey: { type: string, format: password }
forcePathStyle: { type: boolean, default: true }
GoogleDriveFolderSource:
type: object
description: Google Drive folder source for headless API integrations. The saved service account must have Reader access to the folder.
required: [folderId, credentialId]
properties:
folderId: { type: string }
credentialId: { type: string, format: uuid }
GoogleDriveSelectedFile:
type: object
required: [fileId, fileName]
properties:
fileId: { type: string }
fileName: { type: string }
mimeType: { type: string }
GoogleDriveOutput:
type: object
description: Google Drive output destination. SDK callers provide a saved service-account credential ID; dashboard callers use their connected drive.file grant.
required: [folderId]
properties:
folderId: { type: string }
fileName: { type: string }
credentialId: { type: string, format: uuid }
GoogleDriveCredentialCreate:
type: object
required: [name, serviceAccount]
properties:
name: { type: string }
serviceAccount:
oneOf:
- type: string
description: Raw Google service-account JSON.
- type: object
additionalProperties: true
GoogleDriveCredential:
type: object
properties:
id: { type: string, format: uuid }
name: { type: string }
clientEmail: { type: string }
projectId: { type: string, nullable: true }
createdAt: { type: string, format: date-time }
OnDemandEncodeRequest:
type: object
required: [sourceUrl]
properties:
sourceUrl: { type: string, format: uri }
externalId:
type: string
maxLength: 255
description: Your stable job identifier for reconciliation in status responses and webhooks.
metadata:
type: object
additionalProperties: true
description: Integration-owned JSON object returned in status responses and webhooks.
codec: { type: string, enum: [h264, h265, av1], default: h264 }
resolution:
{
type: string,
enum: [480p, 720p, 1080p, 1440p, 2160p],
default: 1080p,
}
fps: { type: integer, minimum: 1, maximum: 120, default: 30 }
preset: { type: string, enum: [fast, standard, slow], default: fast }
bitrateTier:
{ type: string, enum: [low, medium, high], default: medium }
container: { type: string, enum: [mp4, mkv, webm, mov], default: mp4 }
jobMode:
type: string
enum: [encode, hls]
default: encode
description: Use `hls` to create an HLS VOD package instead of a single output file. HLS output is H.264/AAC SDR; supported non-H.264/non-AAC source codecs are transcoded into the package.
packageType:
type: string
enum: [hls]
description: Alternative explicit package selector for HLS jobs.
hls:
type: object
properties:
segmentDuration:
type: integer
minimum: 2
maximum: 10
default: 6
audioTrackIndex:
type: integer
minimum: 0
maximum: 7
gopSeconds:
type: integer
minimum: 1
maximum: 10
poster:
type: boolean
posterAtSec:
type: number
minimum: 0
thumbnails:
type: object
properties:
enabled: { type: boolean }
intervalSec:
type: integer
minimum: 2
maximum: 60
width:
type: integer
minimum: 96
maximum: 320
subtitleWebvttUrl:
type: string
format: uri
subtitleLanguage:
type: string
minLength: 2
maxLength: 16
subtitleName:
type: string
minLength: 1
maxLength: 80
privatePlayback:
type: boolean
renditions:
type: array
minItems: 2
maxItems: 3
items:
type: object
required: [height]
properties:
height: { type: integer, enum: [360, 480, 540, 720, 1080] }
videoBitrate:
type: string
pattern: "^\\d+k$"
audioBitrate:
type: string
pattern: "^\\d+k$"
quality: { type: string, enum: [good, better, best], default: better }
audioPolicy:
{
type: string,
enum: [auto, copy, transcode-aac, strip],
default: transcode-aac,
}
frameRatePolicy:
{ type: string, enum: [preserve, cap, force], default: force }
scalePolicy:
{
type: string,
enum: [no-upscale, allow-upscale, downscale-only],
default: no-upscale,
}
priority: { type: string, enum: [normal, high], default: normal }
outputExpiry:
{ type: integer, minimum: 3600, maximum: 604800, default: 86400 }
webhook:
type: string
format: uri
description: Optional one-off terminal callback URL for this job. Best-effort and unsigned. Use managed webhooks for signed HMAC delivery.
outputS3:
$ref: "#/components/schemas/S3Output"
outputGoogleDrive:
$ref: "#/components/schemas/GoogleDriveOutput"
outputDropbox:
deprecated: true
description: Deprecated. Requests using Dropbox output return 410 Gone.
type: object
properties:
path: { type: string }
accessToken: { type: string }
OnDemandEncodeResponse:
type: object