action shotstack_get_render { label: "Get Render Status" description: "Get the rendering status, temporary asset url and details of a render by ID.\n\n**base URL:** https://api.shotstack.io/{version}" provider: shotstack method: GET path: "/render/{id}" encoding: json output: { type: "object" description: "The response received after a [render status request](#get-render-status) is submitted. The response includes details about status of a render and the output URL." required: ["message", "response", "success"] properties: { message: { type: "string" description: "`OK` or an error message." } response: { type: "object" description: "The response data returned with the [RenderResponse](#tocs_renderresponse) including status and URL." required: ["created", "data", "id", "owner", "status", "updated"] properties: { created: { type: "string" description: "The time the render task was initially queued." } data: { type: "object" description: "An edit defines the arrangement of a video on a timeline, an audio edit or an image design and the output format." required: ["output", "timeline"] properties: { callback: { type: "string" description: "An optional webhook callback URL used to receive status notifications when a render completes or fails. See [webhooks](https://shotstack.gitbook.io/docs/guides/architecting-an-application/webhooks) for more details." } disk: { type: "string" description: "The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.gitbook.io/docs/guides/architecting-an-application/disk-types) for more details. " enum: ["local", "mount"] } output: { type: "object" description: "The output format, render range and type of media to generate." required: ["format"] properties: { aspectRatio: { type: "string" description: "The aspect ratio (shape) of the video or image. Useful for social media output formats. Options are: " enum: ["16:9", "9:16", "1:1", "4:5", "4:3"] } destinations: { type: "array" description: "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. [DestinationShotstack](/#tocs_shotstackdestination) is currently the only option with plans to add more in the future such as S3, YouTube, Vimeo and Mux. If you do not require hosting you can opt-out using the `exclude` property." items: { type: "object" } } format: { type: "string" description: "The output format and type of media file to generate. " enum: ["mp4", "gif", "mp3", "jpg", "png", "bmp"] } fps: { type: "integer" description: "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. " enum: [12, 15, 24, 25, 30] } poster: { type: "object" description: "Generate 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." required: ["capture"] properties: { capture: { type: "number" description: "The point on the timeline in seconds to capture a single frame to use as the poster image." } } } quality: { type: "string" description: "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. " enum: ["low", "medium", "high"] } range: { type: "object" description: "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." properties: { length: { type: "number" format: "float" description: "The length of the portion of the video or audio to render - i.e. render 6 seconds of the video." } start: { type: "number" format: "float" description: "The point on the timeline, in seconds, to start the render from - i.e. start at second 3." } } } resolution: { type: "string" description: "The output resolution of the video or image. " enum: ["preview", "mobile", "sd", "hd", "1080"] } scaleTo: { type: "string" description: "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. " enum: ["preview", "mobile", "sd", "hd", "1080"] } size: { type: "object" description: "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." properties: { height: { type: "integer" description: "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." } width: { type: "integer" description: "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." } } } thumbnail: { type: "object" description: "Generate a thumbnail image for the video or image at a specific point from the timeline." required: ["capture", "scale"] properties: { capture: { type: "number" description: "The point on the timeline in seconds to capture a single frame to use as the thumbnail image." } scale: { type: "number" description: "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." } } } } } timeline: { type: "object" description: "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." required: ["tracks"] properties: { background: { type: "string" description: "A hexadecimal value for the timeline background colour. Defaults to #000000 (black)." } cache: { type: "boolean" description: "Disable the caching of ingested source footage and assets. See [caching](https://shotstack.gitbook.io/docs/guides/architecting-an-application/caching) for more details." } fonts: { type: "array" description: "An array of custom fonts to be downloaded for use by the HTML assets." items: { type: "object" description: "Download 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." required: ["src"] properties: { src: { type: "string" description: "The URL of the font file. The URL must be publicly accessible or include credentials." } } } } soundtrack: { type: "object" description: "A 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." required: ["src"] properties: { effect: { type: "string" description: "The effect to apply to the audio file " enum: ["fadeIn", "fadeOut", "fadeInFadeOut"] } src: { type: "string" description: "The URL of the mp3 audio file. The URL must be publicly accessible or include credentials." } volume: { type: "number" description: "Set the volume for the soundtrack between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1)." } } } tracks: { type: "array" description: "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." items: { type: "object" description: "A 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." required: ["clips"] properties: { clips: { type: "array" description: "An array of Clips comprising of TitleClip, ImageClip or VideoClip." items: { type: "object" description: "A 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." required: ["asset", "start", "length"] properties: { asset: { type: "object" additionalProperties: true } effect: { type: "object" additionalProperties: true } filter: { type: "object" additionalProperties: true } fit: { type: "object" additionalProperties: true } length: { type: "object" additionalProperties: true } offset: { type: "object" additionalProperties: true } opacity: { type: "object" additionalProperties: true } position: { type: "object" additionalProperties: true } scale: { type: "object" additionalProperties: true } start: { type: "object" additionalProperties: true } transition: { type: "object" additionalProperties: true } } } } } } } } } } } duration: { type: "number" description: "The output video or audio length in seconds." } error: { type: "string" description: "An error message, only displayed if an error occurred." } id: { type: "string" description: "The id of the render task in UUID format." } owner: { type: "string" description: "The owner id of the render task." } plan: { type: "string" description: "The customer subscription plan." } poster: { type: "string" description: "The URL of the poster image if requested. This will only be available if status is done." } renderTime: { type: "number" description: "The time taken to render the asset in milliseconds." } status: { type: "string" description: "The status of the render task. " enum: ["queued", "fetching", "rendering", "saving", "done", "failed"] } thumbnail: { type: "string" description: "The URL of the thumbnail image if requested. This will only be available if status is done." } updated: { type: "string" description: "The time the render status was last updated." } url: { type: "string" description: "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." } } } success: { type: "boolean" description: "`true` if status available, else `false`." } } } }