Retrieves a link to fetch the specified scene object's image.
Optionally specify either the small or original image via the size query parameter. If size is not specified, the small thumbnail will be returned.
Request parameters
Scene Id
Object Id
Size of the image to retrieve. Defaults to small (thumbnail).
Primary iTwin Id associated with the scene
Request headers
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.
Response 200 OK
Link to fetch the image.
{ "image": { "href": "https://example.net/scene-images/[...]?sv=[...]&sig=[...]" } }
Response 401 Unauthorized
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.
{ "error": { "code": "HeaderNotFound", "message": "Header Authorization was not found in the request. Access denied." } }
Response 404 Not Found
Not Found
{ "error": { "code": "ImageNotFound", "message": "Requested image is not available.", "target": "image" } }
Response 429 Too many requests
This response indicates that the client sent more requests than allowed by this API for the current tier of the client.
{ "error": { "code": "RateLimitExceeded", "message": "The client sent more requests than allowed by this API for the current tier of the client." } }
Response headers
Number of seconds to wait until client is allowed to make more requests.
Link
{ "type": "object", "required": [ "href" ], "properties": { "href": { "type": "string", "example": "https://example.com/" } }, "additionalProperties": false }
Error
Contains error information.
One of a server-defined set of error codes.
The target of the error.
A human-readable representation of the error.
{ "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "target": { "type": "string", "nullable": true, "description": "The target of the error." }, "message": { "type": "string", "description": "A human-readable representation of the error." } }, "description": "Contains error information.", "additionalProperties": true }
Error Response
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.
{ "type": "object", "title": "Error Response", "required": [ "error" ], "properties": { "error": { "$ref": "#/components/schemas/Error", "description": "Error information." } }, "description": "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.", "additionalProperties": false }
ImageResponse
{ "type": "object", "required": [ "image" ], "properties": { "image": { "allOf": [ { "$ref": "#/components/schemas/Link" } ], "description": "The URL of the image" } }, "additionalProperties": false }
Was this page helpful?