getTemporaryUrl

API reference for the getTemporaryUrl method.

Returns a temporary URL to an asset already present in the current design.

#optionsGetTemporaryUrlOptions
Required

Options for retrieving a temporary URL that points to an asset in Canva's backend.

Options for retrieving a temporary URL that points to an image asset in Canva's backend.

#typestring
Required

The type of asset.

This must be "image".

#refImageRef
Required

A unique identifier that points to an image asset in Canva's backend.

The result of retrieving a temporary URL of an asset in Canva's backend. This is a Promise that resolves with the following object:

The result of retrieving a temporary URL of an image asset in Canva's backend.

#typestring

The type of asset.

This must be "image".

#refImageRef

A unique identifier that points to an image asset in Canva's backend.

#urlstring

A temporary URL for downloading the asset.