{"id":13515235,"url":"https://github.com/shotstack/shotstack-sdk-node","last_synced_at":"2025-12-30T01:43:32.853Z","repository":{"id":38849486,"uuid":"199255182","full_name":"shotstack/shotstack-sdk-node","owner":"shotstack","description":"Node SDK for Shotstack, the cloud video editing API","archived":false,"fork":false,"pushed_at":"2024-07-30T02:33:53.000Z","size":596,"stargazers_count":32,"open_issues_count":3,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-18T14:06:07.095Z","etag":null,"topics":["api","api-client","node","nodejs","sdk","video","video-edit-sdk","video-editing","video-editing-api"],"latest_commit_sha":null,"homepage":"https://shotstack.io/product/sdk/node/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shotstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-28T07:12:35.000Z","updated_at":"2025-03-01T05:26:46.000Z","dependencies_parsed_at":"2024-07-30T06:44:18.102Z","dependency_job_id":null,"html_url":"https://github.com/shotstack/shotstack-sdk-node","commit_stats":{"total_commits":63,"total_committers":6,"mean_commits":10.5,"dds":0.3492063492063492,"last_synced_commit":"09ad2b5ebc16a670e9689caec45d85d61ccc8719"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotstack%2Fshotstack-sdk-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotstack%2Fshotstack-sdk-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotstack%2Fshotstack-sdk-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotstack%2Fshotstack-sdk-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shotstack","download_url":"https://codeload.github.com/shotstack/shotstack-sdk-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246156370,"owners_count":20732393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","node","nodejs","sdk","video","video-edit-sdk","video-editing","video-editing-api"],"created_at":"2024-08-01T05:01:08.105Z","updated_at":"2025-12-30T01:43:32.827Z","avatar_url":"https://github.com/shotstack.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Shotstack NodeJS SDK \u003c!-- omit in toc --\u003e\n\nNode SDK for [Shotstack](http://shotstack.io), the cloud video editing API.\n\nShotstack is a cloud based video editing platform that enables the editing of videos using code.\n\nThe platform uses an API and a JSON format for specifying how videos should be edited and what assets and titles should be used.\n\nA server based render farm takes care of rendering the videos allowing multiple videos to be created simultaneously.\n\nFor examples of how to use the SDK to create videos using code checkout the Node demo repo: https://github.com/shotstack/node-demos\n\n## Contents \u003c!-- omit in toc --\u003e\n- [Using the Node SDK](#using-the-node-sdk)\n    - [Installation](#installation)\n  - [Video Editing](#video-editing)\n    - [Video Editing Example](#video-editing-example)\n    - [Status Check Example](#status-check-example)\n    - [Save a Template Example](#save-a-template-example)\n    - [Render a Template Example](#render-a-template-example)\n  - [Video Editing Schemas](#video-editing-schemas)\n    - [Edit](#edit)\n    - [Timeline](#timeline)\n    - [Soundtrack](#soundtrack)\n    - [Font](#font)\n    - [Track](#track)\n    - [Clip](#clip)\n    - [VideoAsset](#videoasset)\n    - [ImageAsset](#imageasset)\n    - [TitleAsset](#titleasset)\n    - [HtmlAsset](#htmlasset)\n    - [AudioAsset](#audioasset)\n    - [LumaAsset](#lumaasset)\n    - [Transition](#transition)\n    - [Offset](#offset)\n    - [Crop](#crop)\n    - [Transformation](#transformation)\n    - [RotateTransformation](#rotatetransformation)\n    - [SkewTransformation](#skewtransformation)\n    - [FlipTransformation](#fliptransformation)\n    - [MergeField](#mergefield)\n  - [Template Schemas](#template-schemas)\n    - [Template](#template)\n    - [TemplateRender](#templaterender)\n  - [Output Schemas](#output-schemas)\n    - [Output](#output)\n    - [Size](#size)\n    - [Range](#range)\n    - [Poster](#poster)\n    - [Thumbnail](#thumbnail)\n  - [Destinations](#destinations)\n    - [ShotstackDestination](#shotstackdestination)\n    - [MuxDestination](#muxdestination)\n    - [MuxDestinationOptions](#muxdestinationoptions)\n    - [S3Destination](#s3destination)\n    - [S3DestinationOptions](#s3destinationoptions)\n  - [Render Response Schemas](#render-response-schemas)\n    - [QueuedResponse](#queuedresponse)\n    - [QueuedResponseData](#queuedresponsedata)\n    - [RenderResponse](#renderresponse)\n    - [RenderResponseData](#renderresponsedata)\n  - [Template Response Schemas](#template-response-schemas)\n    - [TemplateResponse](#templateresponse)\n    - [TemplateResponseData](#templateresponsedata)\n    - [TemplateDataResponse](#templatedataresponse)\n    - [TemplateDataResponseData](#templatedataresponsedata)\n    - [TemplateListResponse](#templatelistresponse)\n    - [TemplateListResponseData](#templatelistresponsedata)\n    - [TemplateListResponseItem](#templatelistresponseitem)\n  - [Inspecting Media](#inspecting-media)\n    - [Probe Example](#probe-example)\n  - [Probe Schemas](#probe-schemas)\n    - [ProbeResponse](#proberesponse)\n  - [Managing Assets](#managing-assets)\n    - [Assets by Render ID Example](#assets-by-render-id-example)\n    - [Assets by Asset ID Example](#assets-by-asset-id-example)\n  - [Asset Schemas](#asset-schemas)\n    - [AssetResponse](#assetresponse)\n    - [AssetRenderResponse](#assetrenderresponse)\n    - [AssetResponseData](#assetresponsedata)\n    - [AssetResponseAttributes](#assetresponseattributes)\n- [API Documentation and Guides](#api-documentation-and-guides)\n\n# Using the Node SDK\n### Installation\n\n```bash\nnpm install shotstack-sdk\n```\n\n## Video Editing\n\nThe Shotstack SDK enables programmatic video editing via the Edit API `render` endpoint. Prepare JSON edits using the\nprovided schema classes and `POST` to the API for rendering.\n### Video Editing Example\n\nThe example below trims the start of a video clip and plays it for 8 seconds. The edit is prepared using the SDK models\nand then sent to the API for rendering.\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst defaultClient = Shotstack.ApiClient.instance;\ndefaultClient.basePath = 'https://api.shotstack.io/stage';\n\nconst DeveloperKey = defaultClient.authentications['DeveloperKey'];\nDeveloperKey.apiKey = 'H7jKyj90kd09lbLOF7J900jNbSWS67X87xs9j0cD'; // use the correct API key\n\nconst api = new Shotstack.EditApi();\n\nlet videoAsset = new Shotstack.VideoAsset;\nvideoAsset\n    .setSrc('https://s3-ap-southeast-2.amazonaws.com/shotstack-assets/footage/skater.hd.mp4')\n    .setTrim(3)\n\nlet videoClip = new Shotstack.Clip;\nvideoClip\n    .setAsset(videoAsset)\n    .setStart(0)\n    .setLength(8);\n\nlet track = new Shotstack.Track;\ntrack.setClips([videoClip]);\n\nlet timeline = new Shotstack.Timeline;\ntimeline.setTracks([track]);\n\nlet output = new Shotstack.Output;\noutput\n    .setFormat('mp4')\n    .setResolution('sd');\n\nlet edit = new Shotstack.Edit;\nedit\n    .setTimeline(timeline)\n    .setOutput(output);\n\napi.postRender(edit).then((data) =\u003e {\n    console.log(data.response.id);\n});\n```\n\n### Status Check Example\n\nThe example request below can be called a few seconds after the render above is posted. It will return the status of \nthe render, which can take several seconds to process.\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst defaultClient = Shotstack.ApiClient.instance;\ndefaultClient.basePath = 'https://api.shotstack.io/stage';\n\nconst DeveloperKey = defaultClient.authentications['DeveloperKey'];\nDeveloperKey.apiKey = 'H7jKyj90kd09lbLOF7J900jNbSWS67X87xs9j0cD'; // use the correct API key\n\nconst api = new Shotstack.EditApi();\n\nconst id = '75143ec6-4b72-46f8-a67a-fd7284546935'; // use the render id from previous example\n\napi.getRender(id, { data: false, merged: true }).then((data) =\u003e {\n    if (data.response.status === 'done') {\n        console.log(data.response.url);\n    }\n});\n```\n\n### Save a Template Example\n\nThe example below uses the Edit we create in the [Video Editing Example](#video-editing-example) and saves it as a\ntemplate. The template can be rendered at a later date and can include placeholders. Placeholders can be replaced \nwhen rendered using [merge fields](#mergefield).\n\nThis example uses a placeholder for the video src (URL), trim (TRIM), and length (LENGTH) to allow you to trim any video\nusing a template.\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst defaultClient = Shotstack.ApiClient.instance;\ndefaultClient.basePath = 'https://api.shotstack.io/stage';\n\nconst DeveloperKey = defaultClient.authentications['DeveloperKey'];\nDeveloperKey.apiKey = 'H7jKyj90kd09lbLOF7J900jNbSWS67X87xs9j0cD'; // use the correct API key\n\nconst api = new Shotstack.EditApi();\n\nlet videoAsset = new Shotstack.VideoAsset;\nvideoAsset\n    .setSrc('{{ URL }}')\n    .setTrim('{{ TRIM }}');\n\nlet videoClip = new Shotstack.Clip;\nvideoClip\n    .setAsset(videoAsset)\n    .setStart(0)\n    .setLength('{{ LENGTH }}');\n\nlet track = new Shotstack.Track;\ntrack.setClips([videoClip]);\n\nlet timeline = new Shotstack.Timeline;\ntimeline.setTracks([track]);\n\nlet output = new Shotstack.Output;\noutput\n    .setFormat('mp4')\n    .setResolution('sd');\n\nlet edit = new Shotstack.Edit;\nedit\n    .setTimeline(timeline)\n    .setOutput(output);\n\nconst template = new Shotstack.Template;\ntemplate\n    .setName('Trim Template')\n    .setTemplate(edit);\n\napi.postTemplate(template).then((data) =\u003e {\n    console.log(data.response.id);\n});\n```\n\n### Render a Template Example\n\nThe example below renders the template we created in the previous example and includes merge fields that will replace\nthe placeholders. Once submitted use the returned render ID and call the [Status Check Example](#status-check-example)\nto get the render progress.\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst defaultClient = Shotstack.ApiClient.instance;\ndefaultClient.basePath = 'https://api.shotstack.io/stage';\n\nconst DeveloperKey = defaultClient.authentications['DeveloperKey'];\nDeveloperKey.apiKey = 'H7jKyj90kd09lbLOF7J900jNbSWS67X87xs9j0cD'; // use the correct API key\n\nconst api = new Shotstack.EditApi();\n\nconst id = '8aeabb0e-b5eb-8c5e-847d-82297dd4802a'; // use the template id from previous example\n\nconst mergeFieldUrl = new Shotstack.MergeField;\nmergeFieldUrl\n    .setFind('URL')\n    .setReplace('https://s3-ap-southeast-2.amazonaws.com/shotstack-assets/footage/skater.hd.mp4');\n\nconst mergeFieldTrim = new Shotstack.MergeField;\nmergeFieldTrim\n    .setFind('TRIM')\n    .setReplace(3);\n\nconst mergeFieldLength = new Shotstack.MergeField;\nmergeFieldLength\n    .setFind('LENGTH')\n    .setReplace(6);\n\nconst template = new Shotstack.TemplateRender;\ntemplate\n    .setId(id)\n    .setMerge([\n        mergeFieldUrl,\n        mergeFieldTrim,\n        mergeFieldLength,\n    ]);\n\napi.postTemplateRender(template).then((data) =\u003e {\n    console.log(data.response.id);\n});\n```\n\n## Video Editing Schemas\n\nThe following schemas are used to prepare a video edit.\n\n### Edit\n\nAn **Edit** defines the arrangement of a video on a timeline, an audio edit or an image design and the output format.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst edit = new Shotstack.Edit;\nedit\n  .setTimeline(timeline)\n  .setOutput(output)\n  .setMerge(merge)\n  .setCallback('https://my-server.com/callback.php')\n  .setDisk(\"local\");\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetTimeline([Shotstack.Timeline](#timeline)) | A timeline represents the contents of a video edit over time, an audio edit over time, in seconds, or an image layout. A timeline consists of layers called tracks. Tracks are composed of titles, images, audio, html or video segments referred to as clips which are placed along the track at specific starting point and lasting for a specific amount of time. | -\nsetOutput([Shotstack.Output](#output)) | The output format, render range and type of media to generate. | Y\nsetMerge([Shotstack.MergeField[]](#mergefield) mergeField) | An array of key/value pairs that provides an easy way to create templates with placeholders. The placeholders can be used to find and replace keys with values. For example you can search for the placeholder `{{NAME}}` and replace it with the value `Jane`. | -\nsetCallback(string callback) | An optional webhook callback URL used to receive status notifications when a render completes or fails. See [webhooks](https://shotstack.io/docs/guide/architecting-an-application/webhooks/) for  more details. | -\nsetDisk(string disk) | **(Deprecated)** The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types/) for more details. [default to `local`] \u003cul\u003e\u003cli\u003e`local` - optimized for high speed rendering with up to 512MB storage\u003c/li\u003e\u003cli\u003e`mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render\u003c/li\u003e\u003c/ul\u003e | -\n\n-----\n\n### Timeline\n\nA **Timeline** represents the contents of a video edit over time, an audio edit over time, in seconds, or an image layout. A timeline consists of layers called tracks. Tracks are composed of titles, images, audio, html or video segments referred to as clips which are placed along the track at specific starting point and lasting for a specific amount of time.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst timeline = new Shotstack.Timeline;\ntimeline\n  .setSoundtrack(soundtrack)\n  .setBackground('#000000')\n  .setFonts(fonts)\n  .setTracks(tracks)\n  .setCache(true);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetSoundtrack([Shotstack.Soundtrack](#soundtrack) soundtrack) | A music or audio soundtrack file in mp3 format. | -\nsetBackground(string background) | A hexadecimal value for the timeline background colour. Defaults to `#000000` (black). | -\nsetFonts([Shotstack.Font[]](#font) fonts) | An array of custom fonts to be downloaded for use by the HTML assets. | -\nsetTracks([Shotstack.Track[]](#track) tracks) | A timeline consists of an array of tracks, each track containing clips. Tracks are layered on top of each other in the same order they are added to the array with the top most track layered over the top of those below it. Ensure that a track containing titles is the top most track so that it is displayed above videos and images. | Y\nsetCache(bool cache) | Disable the caching of ingested source footage and assets. See  [caching](https://shotstack.io/docs/guide/architecting-an-application/caching) for more details. [default to `true`] | -\n\n---\n\n### Soundtrack\n\nA music or audio file in mp3 format that plays for the duration of the rendered video or the length of the audio file, which ever is shortest.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst soundtrack = new Shotstack.Soundtrack;\nsoundtrack\n  .setSrc('https://s3-ap-southeast-2.amazonaws.com/shotstack-assets/music/disco.mp3')\n  .setEffect('fadeIn')\n  .setVolume(1);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetSrc(string src) | The URL of the mp3 audio file. The URL must be publicly accessible or include credentials. | Y\nsetEffect(string effect) | The effect to apply to the audio file \u003cul\u003e\u003cli\u003e`fadeIn` - fade volume in only\u003c/li\u003e\u003cli\u003e`fadeOut` - fade volume out only\u003c/li\u003e\u003cli\u003e`fadeInFadeOut` - fade volume in and out\u003c/li\u003e\u003c/ul\u003e | -\nsetVolume(float volume) | Set the volume for the soundtrack between 0 and 1 where 0 is muted and 1 is full volume (defaults to `1`). | -\n\n---\n\n### Font\n\nDownload a custom font to use with the HTML asset type, using the font name in the CSS or font tag. See our [custom fonts](https://shotstack.io/learn/html-custom-fonts/) getting started guide for more details.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst font = new Shotstack.Font;\nfont\n  .setSrc('https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/fonts/OpenSans-Regular.ttf');\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetSrc(string src) | The URL of the font file. The URL must be publicly accessible or include credentials. | Y\n\n---\n\n### Track\n\nA track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst track = new Shotstack.Track;\ntrack\n  .setClips(clips);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetClips([Shotstack.Clip[]](#clip) clips) | An array of Clips comprising of TitleClip, ImageClip or VideoClip. | Y\n\n---\n\n### Clip\n\nA **Clip** is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nclip = new Shotstack.Clip;\nclip\n  .setAsset(asset)\n  .setStart(2)\n  .setLength(5)\n  .setFit('crop')\n  .setScale(0)\n  .setPosition('center')\n  .setOffset(offset)\n  .setTransition(transition)\n  .setEffect('zoomIn')\n  .setFilter('greyscale')\n  .setOpacity(1)\n  .setTransform(transform);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetAsset(asset) | The type of asset to display for the duration of this Clip. Value must be one of: \u003cul\u003e\u003cli\u003e[Shotstack.VideoAsset](#videoasset)\u003c/li\u003e\u003cli\u003e[Shotstack.ImageAsset](#imageasset)\u003c/li\u003e\u003cli\u003e[Shotstack.TitleAsset](#titleasset)\u003c/li\u003e\u003cli\u003e[Shotstack.HtmlAsset](#htmlasset)\u003c/li\u003e\u003cli\u003e[Shotstack.AudioAsset](#audioasset)\u003c/li\u003e\u003cli\u003e[Shotstack.LumaAsset](#lumaasset)\u003c/li\u003e\u003c/ul\u003e  | Y\nsetStart(float start) | The start position of the Clip on the timeline, in seconds. | Y\nsetLength(float length) | The length, in seconds, the Clip should play for. | Y\nsetFit(string fit) | Set how the asset should be scaled to fit the viewport using one of the following options [default to `crop`]: \u003cul\u003e\u003cli\u003e`cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.\u003c/li\u003e\u003cli\u003e`contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.\u003c/li\u003e\u003cli\u003e`crop` - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.\u003c/li\u003e\u003cli\u003e`none` - preserves the original asset dimensions and does not apply any scaling.\u003c/li\u003e\u003c/ul\u003e| -\nsetScale(float scale) | Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and  scaling images such as logos and watermarks. | -\nsetPosition(string position) | Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position [default to `center`].\u003cul\u003e\u003cli\u003e`top` - top (center)\u003c/li\u003e\u003cli\u003e`topRight` - top right\u003c/li\u003e\u003cli\u003e`right` - right (center)\u003c/li\u003e\u003cli\u003e`bottomRight` - bottom right\u003c/li\u003e\u003cli\u003e`bottom` - bottom (center)\u003c/li\u003e\u003cli\u003e`bottomLeft` - bottom left\u003c/li\u003e\u003cli\u003e`left` - left (center)\u003c/li\u003e\u003cli\u003e`topLeft` - top left\u003c/li\u003e\u003cli\u003e`center` - center\u003c/li\u003e\u003c/ul\u003e | -\nsetOffset([Shotstack.Offset](#offset) offset) | Offset the location of the asset relative to its position on the viewport. The offset distance is relative to the width of the viewport - for example an x offset of 0.5 will move the asset half the viewport width to the right. | -\nsetTransition([Shotstack.Transition](#transition) transition) | In and out transitions for a clip - i.e. fade in and fade out | -\nsetEffect(string effect) | A motion effect to apply to the Clip. \u003cul\u003e\u003cli\u003e`zoomIn` - slow zoom in\u003c/li\u003e\u003cli\u003e`zoomOut` - slow zoom out\u003c/li\u003e\u003cli\u003e`slideLeft` - slow slide (pan) left\u003c/li\u003e\u003cli\u003e`slideRight` - slow slide (pan) right\u003c/li\u003e\u003cli\u003e`slideUp` - slow slide (pan) up\u003c/li\u003e\u003cli\u003e`slideDown` - slow slide (pan) down\u003c/li\u003e\u003c/ul\u003e The motion effect speed can also be controlled by appending `Fast` or `Slow` to the effect, e.g. `zoomInFast` or `slideRightSlow`.| -\nsetFilter(string filter) | A filter effect to apply to the Clip. \u003cul\u003e\u003cli\u003e`boost` - boost contrast and saturation\u003c/li\u003e\u003cli\u003e`contrast` - increase contrast\u003c/li\u003e\u003cli\u003e`darken` - darken the scene\u003c/li\u003e\u003cli\u003e`greyscale` - remove colour\u003c/li\u003e\u003cli\u003e`lighten` - lighten the scene\u003c/li\u003e\u003cli\u003e`muted` - reduce saturation and contrast\u003c/li\u003e\u003cli\u003e`negative` - invert colors\u003c/li\u003e\u003c/ul\u003e | -\nsetOpacity(float opacity) | Sets the opacity of the Clip where 1 is opaque and 0 is transparent. [default to `1`] | -\nsetTransform([Shotstack.Transformation](#transformation) transformation) | A transformation lets you modify the visual properties of a clip. Available transformations are [Shotstack.RotateTransformation](#rotatetransformation), [Shotstack.SkewTransformation](#skewtransformation) and [Shotstack.FlipTransformation](#fliptransformation). Transformations can be combined to create interesting new shapes and effects. | -\n\n---\n\n### VideoAsset\n\nThe **VideoAsset** is used to create video sequences from video files. The src must be a publicly accessible URL to a video\nresource such as an mp4 file.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst videoAsset = new Shotstack.VideoAsset;\nvideoAsset\n  .setSrc('https://shotstack-assets.s3.aws.com/mountain.mp4')\n  .setTrim(5)\n  .setVolume(0.5)\n  .setVolumeEffect('fadeIn')\n  .setCrop(crop);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetSrc(string url) | The video source URL. The URL must be publicly accessible or include credentials. | Y\nsetTrim(float seconds) | The start trim point of the video clip, in seconds (defaults to 0). Videos will start from the in trim point. The video will play until the file ends or the Clip length is reached. | -\nsetVolume(float level) | Set the volume for the video clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 0). | -\nsetVolumeEffect(string effect) | The volume effect to apply to the video asset.\u003cul\u003e\u003cli\u003e`fadeIn` - fade volume in only\u003c/li\u003e\u003cli\u003e`fadeOut` - fade volume out only\u003c/li\u003e\u003cli\u003e`fadeInFadeOut` - fade volume in and out\u003c/li\u003e\u003c/ul\u003e | -\nsetCrop([Shotstack.Crop](#crop) crop) | Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e. a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset. | -\n\n---\n\n### ImageAsset\n\nThe **ImageAsset** is used to create video from images to compose an image. The src must be a publicly accessible URL to an image resource such as a jpg or png file.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst imageAsset = new Shotstack.ImageAsset;\nimageAsset\n  .setSrc('https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/images/earth.jpg')\n  .setCrop(crop);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetSrc(string url) | The image source URL. The URL must be publicly accessible or include credentials. | Y\nsetCrop([Shotstack.Crop](#crop) crop) | Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e. a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset. | -\n\n---\n\n### TitleAsset\n\nThe **TitleAsset** clip type lets you create video titles from a text string and apply styling and positioning.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst titleAsset = new Shotstack.TitleAsset;\ntitleAsset\n  .setText('My Title')\n  .setStyle('minimal')\n  .setColor('#ffffff')\n  .setSize('medium')\n  .setBackground('#000000')\n  .setPosition('center')\n  .setOffset(offset);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetText(string text) | The title text string. | Y\nsetStyle(string style) | Uses a preset to apply font properties and styling to the title. \u003cul\u003e\u003cli\u003e`minimal`\u003c/li\u003e\u003cli\u003e`blockbuster`\u003c/li\u003e\u003cli\u003e`vogue`\u003c/li\u003e\u003cli\u003e`sketchy`\u003c/li\u003e\u003cli\u003e`skinny`\u003c/li\u003e\u003cli\u003e`chunk`\u003c/li\u003e\u003cli\u003e`chunkLight`\u003c/li\u003e\u003cli\u003e`marker`\u003c/li\u003e\u003cli\u003e`future`\u003c/li\u003e\u003cli\u003e`subtitle`\u003c/li\u003e\u003c/ul\u003e | -\nsetColor(string color) | Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML),  i.e. #80ffffff will be white with  50% transparency [default to `#ffffff`]. | - \nsetSize(string zize) | Set the relative size of the text using predefined sizes from xx-small to xx-large [default to 'medium']. \u003cul\u003e\u003cli\u003e`xx-small`\u003c/li\u003e\u003cli\u003e`x-small`\u003c/li\u003e\u003cli\u003e`small`\u003c/li\u003e\u003cli\u003e`medium`\u003c/li\u003e\u003cli\u003e`large`\u003c/li\u003e\u003cli\u003e`x-large`\u003c/li\u003e\u003cli\u003e`xx-large`\u003c/li\u003e\u003c/ul\u003e | -\nsetBackground(string background) | Apply a background color behind the text. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML),  i.e. #80ffffff will be white with 50% transparency. Omit to use transparent background. | -\nsetPosition(string position) | Place the title in one of nine predefined positions of the viewport [default to `center`. \u003cul\u003e\u003cli\u003e`top` - top (center)\u003c/li\u003e\u003cli\u003e`topRight` - top right\u003c/li\u003e\u003cli\u003e`right` - right (center)\u003c/li\u003e\u003cli\u003e`bottomRight` - bottom right\u003c/li\u003e\u003cli\u003e`bottom` - bottom (center)\u003c/li\u003e\u003cli\u003e`bottomLeft` - bottom left\u003c/li\u003e\u003cli\u003e`left` - left (center)\u003c/li\u003e\u003cli\u003e`topLeft` - top left\u003c/li\u003e\u003cli\u003e`center` - center\u003c/li\u003e\u003c/ul\u003e | -\nsetOffset([Shotstack.Offset](#offset) offset) | Offset the location of the title relative to its position on the screen. | -\n\n---\n\n### HtmlAsset\n\nThe **HtmlAsset** clip type lets you create text based layout and formatting using HTML and CSS. You can also set the height and width of a bounding box for the HTML content to sit within. Text and elements will wrap within the bounding box.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst htmlAsset = new Shotstack.HtmlAsset;\nhtmlAsset\n  .setHtml('\u003cp\u003eHello \u003cb\u003eWorld\u003c/b\u003e\u003c/p\u003e')\n  .setCss('p { color: #ffffff; } b { color: #ffff00; }')\n  .setWidth(400)\n  .setHeight(200)\n  .setBackground('transparent')\n  .setPosition('center);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---:\nsetHtml(string html) | The HTML text string. See list of [supported HTML tags](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-html-tags). | Y\nsetCss(string css) | The CSS text string to apply styling to the HTML. See list of  [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-css-properties). | -\nsetWidth(int width) | Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box. | -\nsetHeight(int height) | Set the height of the HTML asset bounding box in pixels. Text and elements will be masked if they exceed the  height of the bounding box. | -\nsetBackground(string background) | Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal  color notation. Transparency is supported by setting the first two characters of the hex string  (opposite to HTML), i.e. #80ffffff will be white with 80% transparency [default to `transparent`]. | - \nsetPosition(string position) | Place the HTML in one of nine predefined positions within the HTML area [default to `center`]. \u003cul\u003e\u003cli\u003e`top` - top (center)\u003c/li\u003e\u003cli\u003e`topRight` - top right\u003c/li\u003e\u003cli\u003e`right` - right (center)\u003c/li\u003e\u003cli\u003e`bottomRight` - bottom right\u003c/li\u003e\u003cli\u003e`bottom` - bottom (center)\u003c/li\u003e\u003cli\u003e`bottomLeft` - bottom left\u003c/li\u003e\u003cli\u003e`left` - left (center)\u003c/li\u003e\u003cli\u003e`topLeft` - top left\u003c/li\u003e\u003cli\u003e`center` - center\u003c/li\u003e\u003c/ul\u003e | -\n\n---\n\n### AudioAsset\n\nThe **AudioAsset** is used to add sound effects and audio at specific intervals on the timeline. The src must be a \npublicly accessible URL to an audio resource such as an mp3 file.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst audioAsset = new Shotstack.AudioAsset;\naudioAsset\n  .setSrc('https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/music/unminus/lit.mp3')\n  .setTrim(2)\n  .setVolume(0.5)\n  .setEffect('fadeInFadeOut');\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetSrc(string url) | The audio source URL. The URL must be publicly accessible or include credentials. | Y\nsetTrim(float seconds) | The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the trim point. The audio will play until the file ends or the Clip length is reached. | -\nsetVolume(float level) | Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1). | -\nsetEffect(string crop) | The effect to apply to the audio asset: \u003cul\u003e\u003cli\u003e`fadeIn` - fade volume in only\u003c/li\u003e\u003cli\u003e`fadeOut` - fade volume out only\u003c/li\u003e\u003cli\u003e`fadeInFadeOut` - fade volume in and out\u003c/li\u003e\u003c/ul\u003e | -\n\n---\n\n### LumaAsset\n\nThe **LumaAsset** is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst lumaAsset = new Shotstack.LumaAsset;\nlumaAsset\n  .setSrc('https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/examples/luma-mattes/paint-left.mp4')\n  .setTrim(5);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetSrc(string src) | The luma matte source URL. The URL must be publicly accessible or include credentials. | Y\nsetTrim(float trim) | The start trim point of the luma matte clip, in seconds (defaults to 0). Videos will start from the in trim point. A luma matte video will play until the file ends or the Clip length is reached. | -\n\n---\n\n### Transition\n\nThe **Transition** clip type lets you define in and out transitions for a clip - i.e. fade in and fade out\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst transition = new Shotstack.Transition;\ntransition\n  .setIn('fade')\n  .setOut('fade');\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetIn(string in) | The transition in. Available transitions are:   \u003cul\u003e\u003cli\u003e`fade` - fade in\u003c/li\u003e\u003cli\u003e`reveal` - reveal from left to right\u003c/li\u003e\u003cli\u003e`wipeLeft` - fade across screen to the left\u003c/li\u003e\u003cli\u003e`wipeRight` - fade across screen to the right\u003c/li\u003e\u003cli\u003e`slideLeft` - move slightly left and fade in\u003c/li\u003e\u003cli\u003e`slideRight` - move slightly right and fade in\u003c/li\u003e\u003cli\u003e`slideUp` - move slightly up and fade in\u003c/li\u003e\u003cli\u003e`slideDown` - move slightly down and fade in\u003c/li\u003e\u003cli\u003e`carouselLeft` - slide in from right to left\u003c/li\u003e\u003cli\u003e`carouselRight` - slide in from left to right\u003c/li\u003e\u003cli\u003e`carouselUp` - slide in from bottom to top\u003c/li\u003e\u003cli\u003e`carouselDown` - slide in from top to bottom\u003c/li\u003e\u003cli\u003e`shuffleTopRight` - rotate in from top right\u003c/li\u003e\u003cli\u003e`shuffleRightTop` - rotate in from right top\u003c/li\u003e\u003cli\u003e`shuffleRightBottom` - rotate in from right bottom\u003c/li\u003e\u003cli\u003e`shuffleBottomRight` - rotate in from bottom right\u003c/li\u003e\u003cli\u003e`shuffleBottomLeft` - rotate in from bottom left\u003c/li\u003e\u003cli\u003e`shuffleLeftBottom` - rotate in from left bottom\u003c/li\u003e\u003cli\u003e`shuffleLeftTop` - rotate in from left top\u003c/li\u003e\u003cli\u003e`shuffleTopLeft` - rotate in from top left\u003c/li\u003e\u003cli\u003e`zoom` - fast zoom in\u003c/li\u003e\u003c/ul\u003e The transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`. | -\nsetOut(string out) | The transition out. Available transitions are:   \u003cul\u003e\u003cli\u003e`fade` - fade out\u003c/li\u003e\u003cli\u003e`reveal` - reveal from right to left\u003c/li\u003e\u003cli\u003e`wipeLeft` - fade across screen to the left\u003c/li\u003e\u003cli\u003e`wipeRight` - fade across screen to the right\u003c/li\u003e\u003cli\u003e`slideLeft` - move slightly left and fade out\u003c/li\u003e\u003cli\u003e`slideRight` - move slightly right and fade out\u003c/li\u003e\u003cli\u003e`slideUp` - move slightly up and fade out\u003c/li\u003e\u003cli\u003e`slideDown` - move slightly down and fade out\u003c/li\u003e\u003cli\u003e`carouselLeft` - slide out from right to left\u003c/li\u003e\u003cli\u003e`carouselRight` - slide out from left to right\u003c/li\u003e\u003cli\u003e`carouselUp` - slide out from bottom to top\u003c/li\u003e\u003cli\u003e`carouselDown` - slide out from top  to bottom\u003c/li\u003e\u003cli\u003e`shuffleTopRight` - rotate out from top right\u003c/li\u003e\u003cli\u003e`shuffleRightTop` - rotate out from right top\u003c/li\u003e\u003cli\u003e`shuffleRightBottom` - rotate out from right bottom\u003c/li\u003e\u003cli\u003e`shuffleBottomRight` - rotate out from bottom right\u003c/li\u003e\u003cli\u003e`shuffleBottomLeft` - rotate out from bottom left\u003c/li\u003e\u003cli\u003e`shuffleLeftBottom` - rotate out from left bottom\u003c/li\u003e\u003cli\u003e`shuffleLeftTop` - rotate out from left top\u003c/li\u003e\u003cli\u003e`shuffleTopLeft` - rotate out from top left\u003c/li\u003e\u003cli\u003e`zoom` - fast zoom out\u003c/li\u003e\u003c/ul\u003e The transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`. | -\n\n---\n\n### Offset\n\nOffsets the position of an asset horizontally or vertically by a relative distance.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst offset = new Shotstack.Offset;\noffset\n  .setX(0.1)\n  .setY(-0.2);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetX(float x) | Offset an asset on the horizontal axis (left or right), range varies from -10 to 10. Positive numbers move the asset right, negative left. For all assets except titles the distance moved is relative to the width  of the viewport - i.e. an X offset of 0.5 will move the asset half the  screen width to the right. [default to `0`] | -\nsetY(float y) | Offset an asset on the vertical axis (up or down), range varies from -10 to 10. Positive numbers move the asset up, negative down. For all assets except titles the distance moved is relative to the height  of the viewport - i.e. an Y offset of 0.5 will move the asset up half the  screen height. [default to `0`] | -\n\n---\n\n### Crop\n\nCrop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst crop = new Shotstack.Crop;\ncrop\n  .setTop(0.15)\n  .setBottom(0.15)\n  .setLeft(0)\n  .setRight(0);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetTop(float top) | Crop from the top of the asset | -\nsetBottom(float bottom) | Crop from the bottom of the asset | -\nsetLeft(float left) | Crop from the left of the asset | -\nsetRight(float right) | Crop from the right of the asset | -\n\n---\n\n### Transformation\n\nApply one or more transformations to a clip. **Transformations** alter the visual properties of a clip and can be combined to create new shapes and effects.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst transformation = new Shotstack.Transformation;\ntransformation\n  .setRotate(rotate)\n  .setSkew(skew)\n  .setFlip(flip);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetRotate([Shotstack.RotateTransformation](#rotatetransformation) rotate) | Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`. | -\nsetSkew([Shotstack.SkewTransformation](#skewtransformation) skew) | Skew a clip so its edges are sheared at an angle. Use values between 0 and 3. Over 3 the clip will be skewed almost flat. | -\nsetFlip([Shotstack.FlipTransformation](#fliptransformation) flip) | Flip a clip vertically or horizontally. Acts as a mirror effect of the clip along the selected plane. | -\n\n---\n\n### RotateTransformation\n\nRotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst rotateTransformation = new Shotstack.RotateTransformation;\nrotateTransformation\n  .setAngle(45);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetAngle(int angle) | The angle to rotate the clip. Can be 0 to 360, or 0 to -360. Using a positive number rotates the clip clockwise, negative numbers counter-clockwise. | -\n\n---\n\n### SkewTransformation\n\nSkew a clip so its edges are sheared at an angle. Use values between 0 and 3. Over 3 the clip will be skewed almost flat.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst skewTransformation = new Shotstack.SkewTransformation;\nskewTransformation\n  .setX(0.5)\n  .setY(0.5);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetX(float x) | Skew the clip along it\u0026#39;s x axis. [default to `0`] | -\nsetY(float y) | Skew the clip along it\u0026#39;s y axis. [default to `0`] | -\n\n---\n\n### FlipTransformation\n\nFlip a clip vertically or horizontally. Acts as a mirror effect of the clip along the selected plane.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst flipTransformation = new Shotstack.FlipTransformation;\nflipTransformation\n  .setHorizontal(true)\n  .setVertical(true);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetHorizontal(bool horizontal) | Flip a clip horizontally. [default to `false`] | - \nsetVertical(bool vertical) | Flip a clip vertically. [default to `false`] | -\n\n---\n\n### MergeField\n\nA merge field consists of a key; `find`, and a `value`; replace. Merge fields can be used to replace placeholders within the JSON edit to create re-usable templates. Placeholders should be a string with double brace delimiters, i.e. `\"{{NAME}}\"`. A placeholder can be used for any value within the JSON edit.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst mergeField = new Shotstack.MergeField;\nmergeField\n  .setFind('NAME')\n  .setReplace('Jane');\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetFind(string find) | The string to find \u003cu\u003ewithout\u003c/u\u003e delimiters. | Y\nsetReplace(replace) | The replacement value. The replacement can be any valid JSON type - string, boolean, number, etc... | Y\n\n---\n\n## Template Schemas\n\nThe following schemas specify how to use templates to store and render templates. A template lets you save an\n[Edit](#edit) that can be rendered by its template ID and optionally include merge fields that are merged with the\ntemplate when rendered.\n\n### Template\n\nA template is a saved [Edit](#edit) than can be loaded and re-used.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst template = new Shotstack.Template;\ntemplate\n  .setName('My Template')\n  .setTemplate(edit);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetName(string name) | The template name. | Y\nsetTemplate([Shotstack.Edit](#edit) edit)) | An edit defines the arrangement of a video on a timeline, an audio edit or an image design and the output format. | Y\n\n### TemplateRender\n\nConfigure the id and optional merge fields to render a template by id.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst template = new Shotstack.TemplateRender;\ntemplate\n  .setId('21e781c0-8232-4418-fec1-cc99f0280c21')\n  .setMerge(merge);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetId(string id) | The id of the template to render in UUID format. | Y\nsetMerge([Shotstack.MergeField[]](#mergefield) mergeField) | An array of key/value pairs that provides an easy way to create templates with placeholders. The placeholders can be used to find and replace keys with values. For example you can search for the placeholder `{{NAME}}` and replace it with the value `Jane`. | -\n\n---\n## Output Schemas\n\nThe following schemas specify the output format and settings.\n### Output\n\nThe output format, render range and type of media to generate.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst output = new Shotstack.Output;\noutput\n  .setFormat('mp4')\n  .setResolution('sd')\n  .setAspectRatio('16:9')\n  .setSize(size)\n  .setFps(25)\n  .setScaleTo('preview')\n  .setQuality('medium')\n  .setRepeat(true)\n  .setMute(false)\n  .setRange(range)\n  .setPoster(poster)\n  .setThumbnail(thumbnail)\n  .setDestinations(destinations);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetFormat(string format) | The output format and type of media file to generate. \u003cul\u003e\u003cli\u003e`mp4` - mp4 video file\u003c/li\u003e\u003cli\u003e`gif` - animated gif\u003c/li\u003e\u003cli\u003e`jpg` - jpg image file\u003c/li\u003e\u003cli\u003e`png` - png image file\u003c/li\u003e\u003cli\u003e`bmp` - bmp image file\u003c/li\u003e\u003cli\u003e`mp3` - mp3 audio file (audio only)\u003c/li\u003e\u003c/ul\u003e | Y\nsetResolution(string resolution) | The output resolution of the video or image. \u003cul\u003e\u003cli\u003e`preview` - 512px x 288px @ 15fps\u003c/li\u003e\u003cli\u003e`mobile` - 640px x 360px @ 25fps\u003c/li\u003e\u003cli\u003e`sd` - 1024px x 576px @ 25fps\u003c/li\u003e\u003cli\u003e`hd` - 1280px x 720px @ 25fps\u003c/li\u003e\u003cli\u003e`1080` - 1920px x 1080px @ 25fps\u003c/li\u003e\u003c/ul\u003e | -\nsetAspectRatio(string aspectRatio) | The aspect ratio (shape) of the video or image. Useful for social media output formats. Options are: \u003cul\u003e\u003cli\u003e`16:9` - regular landscape/horizontal aspect ratio (default)\u003c/li\u003e\u003cli\u003e`9:16` - vertical/portrait aspect ratio\u003c/li\u003e\u003cli\u003e`1:1` - square aspect ratio\u003c/li\u003e\u003cli\u003e`4:5` - short vertical/portrait aspect ratio\u003c/li\u003e\u003cli\u003e`4:3` - legacy TV aspect ratio\u003c/li\u003e\u003c/ul\u003e | -\nsetSize([Shotstack.Size](#size) size) | Set a custom size for a video or image. When using a custom size omit the `resolution` and `aspectRatio`. Custom sizes must be divisible by 2 based on the encoder specifications. | -\nsetFps(float fps) | Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on  mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps. \u003cul\u003e\u003cli\u003e`12` - 12fps\u003c/li\u003e\u003cli\u003e`15` - 15fps\u003c/li\u003e\u003cli\u003e`23.976` - 23.976fps\u003c/li\u003e\u003cli\u003e`24` - 24fps\u003c/li\u003e\u003cli\u003e`25` - 25fps\u003c/li\u003e\u003cli\u003e`29.97` - 29.97fps\u003c/li\u003e\u003cli\u003e`30` - 30fps\u003c/li\u003e\u003c/ul\u003e | - \nsetScaleTo(string scaleTo) | Override the resolution and scale the video or image to render at a different size. When using scaleTo the asset should be edited at the resolution dimensions, i.e. use font sizes that look best at HD, then use scaleTo to output the file at SD and the text will be scaled to the correct size. This is useful if you want to create multiple asset sizes. \u003cul\u003e\u003cli\u003e`preview` - 512px x 288px @ 15fps\u003c/li\u003e\u003cli\u003e`mobile` - 640px x 360px @ 25fps\u003c/li\u003e\u003cli\u003e`sd` - 1024px x 576px @25fps\u003c/li\u003e\u003cli\u003e`hd` - 1280px x 720px @25fps\u003c/li\u003e\u003cli\u003e`1080` - 1920px x 1080px @25fps\u003c/li\u003e\u003c/ul\u003e | -\nsetQuality(string quality) | Adjust the output quality of the video, image or audio. Adjusting quality affects  render speed, download speeds and storage requirements due to file size. The default `medium` provides the most optimized choice for all three  factors. \u003cul\u003e\u003cli\u003e`low` - slightly reduced quality, smaller file size\u003c/li\u003e\u003cli\u003e`medium` - optimized quality, render speeds and file size\u003c/li\u003e\u003cli\u003e`high` - slightly increased quality, larger file size\u003c/li\u003e\u003c/ul\u003e | -\nsetRepeat(bool repeat) | Loop settings for gif files. Set to `true` to loop, `false` to play only once. [default to `true`] | -\nsetMute(bool mute) | Mute the audio track of the output video. Set to `true` to mute, `false` to un-mute. | -\nsetRange([Shotstack.Range](#range) range) | Specify a time range to render, i.e. to render only a portion of a video or audio file. Omit this setting to export the entire video. Range can also be used to render a frame at a specific time point - setting a range and output format as `jpg` will output a single frame image at the range `start` point. | -\nsetPoster([Shotstack.Poster](#poster) poster) | Generate a poster image from a specific point on the timeline. | -\nsetThumbnail([Shotstack.Thumbnail](#thumbnail) thumbnail) | Generate a thumbnail image from a specific point on the timeline. | -\nsetDestinations([Destinations[]](#destinations) destinations) | A destination is a location where output files can be sent to for serving or hosting. By default all rendered assets are automatically sent to the Shotstack hosting destination. | -\n\n---\n\n### Size\n\nSet a custom size for a video or image. When using a custom size omit the `resolution` and `aspectRatio`. Custom sizes must be divisible by 2 based on the encoder specifications.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst size = new Shotstack.Size;\nsize\n  .setWidth(1200)\n  .setHeight(800);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetWidth(int width) | Set a custom width for the video or image file. Value must be divisible by 2. Maximum video width is 1920px, maximum image width is 4096px. | -\nsetHeight(int height) | Set a custom height for the video or image file. Value must be divisible by 2. Maximum video height is 1920px, maximum image height is 4096px. | -\n\n---\n\n### Range\n\nSpecify a time range to render, i.e. to render only a portion of a video or audio file. Omit this setting to export the entire video. Range can also be used to render a frame at a specific time point - setting a range and output format as `jpg` will output a single frame image at the range `start` point.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst range = new Shotstack.Range;\nrange\n  .setStart(3)\n  .setLength(6);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetStart(float start) | The point on the timeline, in seconds, to start the render from - i.e. start at second 3. | -\nsetLength(float length) | The length of the portion of the video or audio to render - i.e. render 6 seconds of the video. | -\n\n---\n\n### Poster\n\nGenerate a **Poster** image for the video at a specific point from the timeline. The poster image size will match the size of the output video.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst poster = new Shotstack.Poster;\nposter\n  .setCapture(1);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetCapture(float capture) | The point on the timeline in seconds to capture a single frame to use as the poster image. | Y\n\n---\n\n### Thumbnail\n\nGenerate a thumbnail image for the video or image at a specific point from the timeline.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst thumbnail = new Shotstack.Thumbnail;\nthumbnail\n  .setCapture(1)\n  .setScale(0.3);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetCapture(float capture) | The point on the timeline in seconds to capture a single frame to use as the thumbnail image. | Y\nsetScale(float scale) | Scale the thumbnail size to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale  the thumbnail to half the size of the viewport. | Y\n\n---\n\n## Destinations\n\n### ShotstackDestination\n\nSend rendered assets to the Shotstack hosting and CDN service. This destination is enabled by default.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst shotstackDestination = new Shotstack.ShotstackDestination;\nshotstackDestination\n  .setProvider('shotstack')\n  .setExclude(false);\n```\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \nsetProvider(string provider) | The destination to send rendered assets to - set to `shotstack` for Shotstack. | Y\nsetExclude(bool exclude) | Set to `true` to opt-out from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering. [default to `false`] | -\n\n---\n\n### MuxDestination\n\nSend rendered videos to the [Mux](https://shotstack.io/docs/guide/serving-assets/destinations/mux) video hosting and\nstreaming service. Mux credentials are required and added via the \n[dashboard](https://dashboard.shotstack.io/integrations/mux), not in the request.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst muxDestination = new Shotstack.MuxDestination;\nmuxDestination\n  .setProvider('mux')\n  .setOptions(muxDestinationOptions);\n```\n#### Methods:\n\nName | Description | Required\n:--- | :--- | :---: \nsetProvider(string provider) | The destination to send rendered assets to - set to `mux` for Mux. | Y\nsetOptions([MuxDestinationOptions](#muxdestinationoptions) options) | Additional Mux configuration and features. | - \n\n### MuxDestinationOptions\n\nPass additional options to control how Mux processes video. Currently supports playback policy option.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst muxDestinationOptions = new Shotstack.MuxDestinationOptions;\nmuxDestinationOptions\n  .setPlaybackPolicy(['public']);\n```\n#### Methods:\n\nName | Description | Required\n:--- | :--- | :---: \nsetPlaybackPolicy([string] policy) | Sets the Mux `playback_policy` option. Value is an array of strings - use **public**, **signed**, or both. | -  \n\n### S3Destination\n\nSend rendered videos to an [Amazon S3](https://shotstack.io/docs/guide/serving-assets/destinations/s3) bucket. Send \nfiles to any region with your own prefix and filename. AWS credentials are required and added via the \n[dashboard](https://dashboard.shotstack.io/integrations/s3), not in the request.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst s3Destination = new Shotstack.S3Destination;\ns3Destination\n  .setProvider('s3')\n  .setOptions(S3DestinationOptions);\n```\n#### Methods:\n\nName | Description | Required\n:--- | :--- | :---: \nsetProvider(string provider) | The destination to send rendered assets to - set to `s3` for S3. | Y\nsetOptions([S3DestinationOptions](#s3destinationoptions) options) | Additional S3 configuration options. | - \n\n### S3DestinationOptions\n\nPass additional options to control how files are stored in S3.\n\n#### Example:\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst S3DestinationOptions = new Shotstack.S3DestinationOptions;\nS3DestinationOptions\n  .setRegion('us-east-1');\n  .setBucket('my-bucket');\n  .setPrefix('my-renders');\n  .setFilename('my-file');\n  .setAcl('public-read');\n```\n#### Methods:\n\nName | Description | Required\n:--- | :--- | :---: \nsetRegion(string region) | Choose the region to send the file to. Must be a valid [AWS region](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region) string like `us-east-1` or `ap-southeast-2` | Y\nsetBucket(string bucket) | The bucket name to send files to. The bucket must exist in the AWS account before files can be sent. | Y\nsetPrefix(string prefix) | A prefix for the file being sent. This is typically a folder name, i.e. `videos` or `customerId/videos`. | -\nsetFilename(string filename) | Use your own filename instead of the default render ID filename. Note: omit the file extension as this will be appended depending on the output format. Also `-poster.jpg` and `-thumb.jpg` will be appended for poster and thumbnail images. | -\nsetAcl(string acl) | Sets the S3 Access Control List (acl) permissions. Default is `private`. Must use a valid  S3 [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl). | -\n\n\n## Render Response Schemas\n\nThe following schemas are returned by the render request and status request.\n\n### QueuedResponse\n\nThe response received after a [render request](https://shotstack.io/docs/api/#render-asset) is submitted. The render task is queued for rendering and a unique render id is returned.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetSuccess(): bool | `true` if successfully queued, else `false`. | Y\ngetMessage(): string | `Created`, `Bad Request` or an error message. | Y\ngetResponse(): [Shotstack.QueuedResponseData](#queuedresponsedata) | `QueuedResponseData` or an error message. | Y\n\n---\n\n### QueuedResponseData\n\nThe **QueuedResponseData** is the response data returned with the [QueuedResponse](#queuedresponse).\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetMessage(): string | Success response message or error details. | Y\ngetId(): string | The id of the render task in UUID format. | Y\n\n---\n\n### RenderResponse\n\nThe **RenderResponse** is the response received after a [render status request](https://shotstack.io/docs/api/#get-render-status) is submitted. The response includes details about status of a render and the output URL.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetSuccess(): bool | `true` if status available, else `false`. | Y\ngetMessage(): string | `OK` or an error message. | Y\ngetResponse(): [Shotstack.RenderResponseData](#renderresponsedata) | `RenderResponse` or an error message. | Y\n\n---\n\n### RenderResponseData\n\nThe **RenderResponseData** is the response data returned with the [RenderResponse](https://shotstack.io/docs/api/#tocs_renderresponse) request including status and URL.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetId(): string | The id of the render task in UUID format. | Y\ngetOwner(): string | The owner id of the render task. | Y\ngetPlan(): string | The customer subscription plan. | -\ngetStatus(): string | The status of the render task. \u003cul\u003e   \u003cli\u003e`queued` - render is queued waiting to be rendered\u003c/li\u003e\u003cli\u003e`fetching` - assets are being fetched\u003c/li\u003e\u003cli\u003e`rendering` - the asset is being rendered\u003c/li\u003e\u003cli\u003e`saving` - the final asset is being saved to storage\u003c/li\u003e\u003cli\u003e`done` - the asset is ready to be downloaded\u003c/li\u003e\u003cli\u003e`failed` - there was an error rendering the asset\u003c/li\u003e\u003c/ul\u003e | Y\ngetError(): string | An error message, only displayed if an error occurred. | -\ngetDuration(): float | The output video or audio length in seconds. | -\ngetRender_time(): float | The time taken to render the asset in milliseconds. | -\ngetUrl(): string | The URL of the final asset. This will only be available if status is done. This is a temporary URL and will be deleted after 24 hours. By default all assets are copied to the Shotstack hosting and CDN destination. | -\ngetPoster(): string | The URL of the poster image if requested. This will only be available if status is done. | -\ngetThumbnail(): string | The URL of the thumbnail image if requested. This will only be available if status is done. | -\ngetData(): [Shotstack.Edit](#edit) | The timeline and output data to be rendered. | Y\ngetCreated(): string | The time the render task was initially queued. | Y\ngetUpdated(): string | The time the render status was last updated. | Y\n\n---\n\n## Template Response Schemas\n\nThe following schemas are returned by the templates endpoint, including create, update and rendering a template.\n\n### TemplateResponse\n\nThe response received after a [template](#create-template) is submitted. The template is saved and a unique\ntemplate id is returned.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetSuccess(): bool | `true` if successfully queued, else `false`. | Y\ngetMessage(): string | `Created`, `Bad Request` or an error message. | Y\ngetResponse(): [Shotstack.TemplateResponseData](#templateresponsedata) | `TemplateResponseData` or an error message. | Y\n\n### TemplateResponseData\n\nThe response data returned with the [Shotstack.TemplateResponse](#templateresponse).\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetMessage(): string | Success response message or error details. | Y\ngetId(): string | The unique id of the template in UUID format. | Y\n\n### TemplateDataResponse\n\nThe template data including the template name and [Edit](#edit).\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetSuccess(): bool | `true` if successfully queued, else `false`. | Y\ngetMessage(): string | `Created`, `Bad Request` or an error message. | Y\ngetResponse(): [Shotstack.TemplateDataResponseData](#templatedataresponsedata) | `TemplateDataResponseData` or an error message. | Y\n\n### TemplateDataResponseData\n\nThe response data returned with the [TemplateDataResponse](#templatedataresponse).\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetId(): string | The unique id of the template in UUID format. | Y\ngetName(): string | The template name. | Y\ngetOwner(): string | The owner id of the templates. | Y\ngetTemplate(): [Shotstack.Edit](#edit) | `Edit` or an error message. | Y\n\n### TemplateListResponse\n\nA list of previously saved templates.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetSuccess(): bool | `true` if successfully queued, else `false`. | Y\ngetMessage(): string | `Created`, `Bad Request` or an error message. | Y\ngetResponse(): [Shotstack.TemplateListResponseData](#templatelistresponsedata) | `TemplateListResponseData` or an error message. | Y\n\n### TemplateListResponseData\n\nThe response data returned with the [TemplateListResponse](#templatelistresponse).\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetOwner(): bool | The owner id of the templates. | Y\ngetTemplates(): [Shotstack.TemplateListResponseItem[]](#templatelistresponseitem) | The list of templates. | Y\n\n### TemplateListResponseItem\n\nThe individual template item returned with the [TemplateListResponseData](#templatelistresponsedata) templates\nlist.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetId(): string | The unique id of the template in UUID format. | Y\ngetName(): string | The template name | Y\ngetCreated(): string | The time the template was created. | -\ngetUpdated(): string | The time the template was last updated. | -\n\n---\n## Inspecting Media\n\nThe SDK `probe` endpoint can be used to inspect media hosted online. Simply pass the URL of an asset to inspect.\n### Probe Example\n\nThe example below inspects (probes) a video hosted on GitHub and returns metadata about the file.\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst defaultClient = Shotstack.ApiClient.instance;\ndefaultClient.basePath = 'https://api.shotstack.io/stage';\n\nconst DeveloperKey = defaultClient.authentications['DeveloperKey'];\nDeveloperKey.apiKey = 'H7jKyj90kd09lbLOF7J900jNbSWS67X87xs9j0cD'; // use the correct API key\n\nconst api = new Shotstack.EditApi();\n\nconst url = 'https://github.com/shotstack/test-media/raw/main/captioning/scott-ko.mp4';\n\napi.probe(url).then((data) =\u003e {\n    data.response.metadata.streams.forEach(stream =\u003e {\n        if (stream.codec_type === 'video') {\n            console.log('Example settings for: ' + data.response.metadata.format.filename);\n            console.log('Width: ' + stream.width + 'px');\n            console.log('Height: ' + stream.height + 'px');\n            console.log('Framerate: ' + stream.r_frame_rate + ' fps');\n            console.log('Duration: ' + stream.duration + ' secs');\n        }\n    });\n});\n```\n## Probe Schemas\n\nThe following schemas are returned by the probe request.\n### ProbeResponse\n\nThe **ProbeResponse** is the response returned after a [probe request](https://shotstack.io/docs/api/#inspect-media) is submitted. The probe requests returns data from FFprobe formatted as JSON.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetSuccess(): bool | `true` if media successfully read, else `false`. | Y\ngetMessage(): string | `Created`, `Bad Request` or an error message. | Y\ngetResponse(): object | The response from FFprobe in JSON format | Y\n\n---\n\n## Managing Assets\n\nBy default, all assets generated by the editing API are hosted by Shotstack and served via our CDN. The SDK provides\naccess to the Serve API to retrieve information about hosted files. Files can also be deleted.\n\n### Assets by Render ID Example\n\nThe example below uses a render ID to look up hosted assets associated with the render. Note that multiple assets can be\ncreated for a render, i.e. video, thumb and poster. Each asset has a unique asset ID different to the render ID.\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst defaultClient = Shotstack.ApiClient.instance;\ndefaultClient.basePath = 'https://api.shotstack.io/stage';\n\nconst DeveloperKey = defaultClient.authentications['DeveloperKey'];\nDeveloperKey.apiKey = 'H7jKyj90kd09lbLOF7J900jNbSWS67X87xs9j0cD'; // use the correct API key\n\nconst api = new Shotstack.ServeApi();\n\nconst id = '140924c6-077d-4334-a89f-94befcfc0155'; // Use a valid render ID\n\napi.getAssetByRenderId(id).then((assets) =\u003e {\n    assets.data.forEach((asset) =\u003e {\n        if (asset.attributes.status === 'ready') {\n            console.log('\u003e\u003e Asset CDN URL: ' + asset.attributes.url);\n            console.log('\u003e\u003e Asset ID: ' + asset.attributes.id);\n            console.log('\u003e\u003e Render ID: ' + asset.attributes.renderId);\n        }\n    });\n});\n```\n\n### Assets by Asset ID Example\n\nEvery asset has a unique asset ID, the example below looks up an asset by its asset ID.\n\n```javascript\nconst Shotstack = require('shotstack-sdk');\n\nconst defaultClient = Shotstack.ApiClient.instance;\ndefaultClient.basePath = 'https://api.shotstack.io/stage';\n\nconst DeveloperKey = defaultClient.authentications['DeveloperKey'];\nDeveloperKey.apiKey = 'H7jKyj90kd09lbLOF7J900jNbSWS67X87xs9j0cD'; // use the correct API key\n\nconst api = new Shotstack.ServeApi();\n\nconst id = 'ed43eae3-4825-4c03-979d-f7dc47b9997c'; // use a valid asset ID\n\napi.getAsset(id).then((asset) =\u003e {\n    if (asset.data.attributes.status === 'ready') {\n        console.log('\u003e\u003e Asset CDN URL: ' + asset.data.attributes.url);\n        console.log('\u003e\u003e Asset ID: ' + asset.data.attributes.id);\n        console.log('\u003e\u003e Render ID: ' + asset.data.attributes.renderId);\n    }\n});\n```\n\n## Asset Schemas\n\nThe following schemas are returned by requests to the Serve API.\n### AssetResponse\n\nThe **AssetResponse** is the response returned by the Serve API [get asset](https://shotstack.io/docs/api/#get-asset) request. Includes details of a hosted video, image, audio file, thumbnail or poster image. The response follows  the [json:api](https://jsonapi.org/) specification.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetData(): [Shotstack.AssetResponseData](#assetresponsedata) | Returns an asset resource. | -\n\n---\n\n### AssetRenderResponse\n\nThe **AssetRenderResponse** is the response returned by the Serve API [get asset by render id](https://shotstack.io/docs/api/#get-asset-by-render-id) request. The response is an array of asset resources, including video, image, audio, thumbnail and poster image. The response follows  the [json:api](https://jsonapi.org/) specification.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetData(): [Shotstack.AssetResponseData[]](#assetresponsedata) | Returns an array of asset resources grouped by render id. | -\n\n---\n\n### AssetResponseData\n\nThe **AssetResponseData** contains the type of resource (an asset) and attributes of the asset.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---: \ngetType(): string | The type of resource, in this case it is an `asset`. | -\ngetAttributes(): [Shotstack.AssetResponseAttributes](#assetresponseattributes) | The asset attributes including render id, url, filename, file size, etc... | -\n\n---\n\n### AssetResponseAttributes\n\nThe **AssetResponseAttributes** contains the list of asset attributes and their values.\n\n#### Methods:\n\nMethod | Description | Required\n:--- | :--- | :---:\ngetId(): string | The unique id of the hosted asset in UUID format. | -\ngetOwner(): string | The owner id of the render task. | -\ngetRegion(): string | The region the asset is hosted, currently only `au` (Australia). | -\ngetRenderId(): string | The original render id that created the asset in UUID format. Multiple assets can share the same render id. | -\ngetFilename(): string | The asset file name. | -\ngetUrl(): string | The asset file name. | -\ngetStatus(): string | The status of the asset. \u003cul\u003e\u003cli\u003e`importing` - the asset is being copied to the hosting service\u003c/li\u003e\u003cli\u003e`ready` - the asset is ready to be served to users\u003c/li\u003e\u003cli\u003e`failed` - the asset failed to copy or delete\u003c/li\u003e\u003cli\u003e`deleted` - the asset has been deleted\u003c/li\u003e\u003c/ul\u003e | -\ngetCreated(): string | The time the asset was created. | -\ngetUpdated(): string | The time the asset status was last updated. | -\n\n# API Documentation and Guides\n\n- [Getting Started Guide](https://shotstack.io/docs/guide/getting-started/core-concepts/)\n- [API Reference](https://shotstack.io/docs/api/)\n- [Examples](https://github.com/shotstack/node-demos)\n- [Shotstack Website](https://shotstack.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshotstack%2Fshotstack-sdk-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshotstack%2Fshotstack-sdk-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshotstack%2Fshotstack-sdk-node/lists"}