GET https://api.bentley.com/itwins/{iTwinId}/image
Gets the image metadata for the specified iTwin.
The metadata will contain the name of the image and a URL for downloading the image. The name of the image is unique and will only change if the image changes. It can be used as a long term cache key to determine if you have already downloaded the image. The URLs will be valid for a minimum of 1 hour.
This API is used to get a link to the small image and the original uploaded image. To make it easier to use the small image as a thumbnail, the small image link is also included as a property on every iTwin.
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
json
HeaderNotFound
{"error":{"code":"HeaderNotFound","message":"Header Authorization was not found in the request. Access denied."}}
The generated name of the small image. It is unique and will only change if the image changes. The small image is an automatically generated thumbnail of the uploaded image.
smallImageUrl
String
The URL of the small image. This URL is also returned as a property on each iTwin. This makes it easy to use as a thumbnail.
largeImageName
String
The generated name of the uploaded image. It is unique and will only change if the image changes.
largeImageUrl
String
The URL of the large image. Usually, only the small image is used but this URL will provide the orginal large image if needed.
Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.