getTemporaryUrl
Returns a temporary URL to an asset already present in the current design.
Parameters
options
GetTemporaryUrlOptions
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.
type
string
The type of asset.
This must be "image"
.
ref
ImageRef
A unique identifier that points to an image asset in Canva's backend.
Options for retrieving a temporary URL that points to a video asset in Canva's backend.
type
string
The type of asset.
This must be "video"
.
ref
VideoRef
A unique identifier that points to a video asset in Canva's backend.
Returns
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.
type
string
The type of asset.
This must be "image"
.
ref
ImageRef
A unique identifier that points to an image asset in Canva's backend.
url
string
A temporary URL for downloading the asset.
The result of retrieving a temporary URL of a video asset in Canva's backend.
type
string
The type of asset.
This must be "video"
.
ref
VideoRef
A unique identifier that points to a video asset in Canva's backend.
url
string
A temporary URL for downloading the asset.