Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ rather than to a specific project. Files can optionally be placed in a folder.
- URLs must be accessible by Descript servers
- URLs must support HTTP Range requests
- Recommended to sign URLs for 12-48 hours to reduce chance of failure
- [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)
- [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI

### Direct file upload

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static Command Create(string? commandName = null)
- URLs must be accessible by Descript servers
- URLs must support HTTP Range requests
- Recommended to sign URLs for 12-48 hours to reduce chance of failure
- [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)
- [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI

### Direct file upload

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ partial void ProcessImportDriveMediaResponseContent(
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down Expand Up @@ -86,7 +86,7 @@ partial void ProcessImportDriveMediaResponseContent(
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down Expand Up @@ -660,7 +660,7 @@ partial void ProcessImportDriveMediaResponseContent(
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ partial void ProcessImportProjectMediaResponseContent(
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down Expand Up @@ -95,7 +95,7 @@ partial void ProcessImportProjectMediaResponseContent(
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down Expand Up @@ -704,7 +704,7 @@ partial void ProcessImportProjectMediaResponseContent(
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial interface IApiEndpointsClient
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand All @@ -39,7 +39,7 @@ public partial interface IApiEndpointsClient
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand All @@ -65,7 +65,7 @@ public partial interface IApiEndpointsClient
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public partial interface IApiEndpointsClient
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down Expand Up @@ -48,7 +48,7 @@ public partial interface IApiEndpointsClient
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down Expand Up @@ -79,7 +79,7 @@ public partial interface IApiEndpointsClient
/// - URLs must be accessible by Descript servers<br/>
/// - URLs must support HTTP Range requests<br/>
/// - Recommended to sign URLs for 12-48 hours to reduce chance of failure<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)<br/>
/// - [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI<br/>
/// ### Direct file upload<br/>
/// Instead of providing a URL, you can upload files directly by specifying `content_type` and `file_size` for a media item. The response will include a signed `upload_url` for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.<br/>
/// ### Async Operations<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"Order": 7,
"Title": "Import media and sequences",
"Slug": "importprojectmedia",
"Description": "Import media files into a new or existing project and create compositions.\n\nThis endpoint can:\n- Create a new project if \u0060project_id\u0060 is not provided\n- Import media files from URLs\n- Create multitrack sequences\n- Create compositions (timelines) from existing or new media in the project\n- Trigger transcription and other background processing tasks\n\n### Media URL requirements\n- URLs must be accessible by Descript servers\n- URLs must support HTTP Range requests\n- Recommended to sign URLs for 12-48 hours to reduce chance of failure\n- [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types)\n\n### Direct file upload\n\nInstead of providing a URL, you can upload files directly by specifying \u0060content_type\u0060 and \u0060file_size\u0060 for a media item. The response will include a signed \u0060upload_url\u0060 for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.\n\n### Async Operations\n\nImports\u00A0run in the background and return a \u0060job_id\u0060. Monitor progress via the [GET /jobs/{job_id}](#operation/getJob) endpoint.\n\n### Dynamic webhook\n\nIf \u0060callback_url\u0060 is provided, Descript will POST the job status to that URL when the job finishes (successfully or not).\n\nThe payload will match the format returned by [GET /jobs/{job_id}](#operation/getJob).",
"Description": "Import media files into a new or existing project and create compositions.\n\nThis endpoint can:\n- Create a new project if \u0060project_id\u0060 is not provided\n- Import media files from URLs\n- Create multitrack sequences\n- Create compositions (timelines) from existing or new media in the project\n- Trigger transcription and other background processing tasks\n\n### Media URL requirements\n- URLs must be accessible by Descript servers\n- URLs must support HTTP Range requests\n- Recommended to sign URLs for 12-48 hours to reduce chance of failure\n- [Supported file types](https://help.descript.com/add-and-manage-media/supported-file-types#importing-with-the-api): the API accepts more containers and codecs than the app, including MXF, MPEG-TS, and AVI\n\n### Direct file upload\n\nInstead of providing a URL, you can upload files directly by specifying \u0060content_type\u0060 and \u0060file_size\u0060 for a media item. The response will include a signed \u0060upload_url\u0060 for each direct upload item. PUT the file bytes to that URL, and the import job will process it automatically. See the [Direct file upload](#tag/Direct-file-upload) guide for a full walkthrough.\n\n### Async Operations\n\nImports\u00A0run in the background and return a \u0060job_id\u0060. Monitor progress via the [GET /jobs/{job_id}](#operation/getJob) endpoint.\n\n### Dynamic webhook\n\nIf \u0060callback_url\u0060 is provided, Descript will POST the job status to that URL when the job finishes (successfully or not).\n\nThe payload will match the format returned by [GET /jobs/{job_id}](#operation/getJob).",
"Language": "csharp",
"Code": "using var client = new DescriptClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::Descript.ImportProjectMediaRequest\u003E(\n @\u0022{\n \u0022\u0022project_name\u0022\u0022: \u0022\u0022Marketing Video\u0022\u0022,\n \u0022\u0022add_media\u0022\u0022: {\n \u0022\u0022Misc/intro.mp4\u0022\u0022: {\n \u0022\u0022url\u0022\u0022: \u0022\u0022https://example.com/intro.mp4\u0022\u0022\n },\n \u0022\u0022demo.mp4\u0022\u0022: {\n \u0022\u0022url\u0022\u0022: \u0022\u0022https://example.com/demo.mp4\u0022\u0022\n },\n \u0022\u0022Misc/outro.mp4\u0022\u0022: {\n \u0022\u0022url\u0022\u0022: \u0022\u0022https://example.com/outro.mp4\u0022\u0022\n }\n },\n \u0022\u0022add_compositions\u0022\u0022: [\n {\n \u0022\u0022name\u0022\u0022: \u0022\u0022Rough Cut\u0022\u0022,\n \u0022\u0022clips\u0022\u0022: [\n {\n \u0022\u0022media\u0022\u0022: \u0022\u0022Misc/intro.mp4\u0022\u0022\n },\n {\n \u0022\u0022media\u0022\u0022: \u0022\u0022demo.mp4\u0022\u0022\n },\n {\n \u0022\u0022media\u0022\u0022: \u0022\u0022Misc/outro.mp4\u0022\u0022\n }\n ]\n }\n ]\n}\u0022)!;\n\nvar response = await client.ApiEndpoints.ImportProjectMediaAsync(\n request: request\n);",
"Format": "sdk",
Expand Down
Loading
Loading