Retrieves the specified scene.
Scene data will be filtered based on user's roles and permissions. See Scene API Permissions for more information.
Request parameters
Scene Id
Primary iTwin Id associated with the scene
Request headers
Activity id used for tracking request
OAuth access token with itwin-platform
scope
Setting to application/vnd.bentley.itwin-platform.v1+json
is recommended.
Response 200 OK
Specified scene.
{ "scene": { "id": "eda9e67f-24a3-4bd5-aeca-981d2abdb610", "displayName": "Construction Site Overview", "description": "Bridge construction site showing pier placement and equipment staging areas.", "iTwinId": "1ba4c28a-e518-42d4-85e4-ff9f9ef44bb6", "sceneData": { "objects": { "href": "https://api.bentley.com/scenes/eda9e67f-24a3-4bd5-aeca-981d2abdb610/objects?iTwinId=1ba4c28a-e518-42d4-85e4-ff9f9ef44bb6" } }, "createdById": "37f457a6-25fd-4d4a-8947-974b690158be", "creationTime": "2025-05-04T04:14:08Z", "lastModified": "2025-05-07T01:15:25Z" } }
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": "SceneNotFound", "message": "Requested scene is not available.", "target": "scene" } }
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
{ "required": [ "href" ], "type": "object", "properties": { "href": { "type": "string", "example": "https://example.com/" } }, "additionalProperties": false }
SceneDataLinksDTO
{ "required": [ "objects" ], "type": "object", "properties": { "objects": { "allOf": [ { "$ref": "#/components/schemas/Link" } ], "description": "URL to retrieve scene objects" } }, "additionalProperties": false }
SceneWithLinksDTO
Unique identifier for the scene
User defined display name of the scene
Optional detailed description of the scene
Optional parent Id for the scene
Id of the user who created the scene
iTwin Id
Time the scene was created as an ISO8601 string, 'YYYY-MM-DDTHH:mm:ss.sssZ'
Time the scene was last modified as an ISO8601 string, 'YYYY-MM-DDTHH:mm:ss.sssZ'
{ "required": [ "id", "displayName", "createdById", "iTwinId", "creationTime", "lastModified", "sceneData" ], "type": "object", "properties": { "id": { "type": "string", "description": "Unique identifier for the scene", "format": "UUID", "example": "eda9e67f-24a3-4bd5-aeca-981d2abdb610" }, "displayName": { "type": "string", "description": "User defined display name of the scene", "example": "Construction Site Overview" }, "description": { "type": "string", "description": "Optional detailed description of the scene", "example": "Bridge construction site showing pier placement and equipment staging areas." }, "parentId": { "type": "string", "description": "Optional parent Id for the scene", "format": "UUID", "example": "d21dd09b-bb38-483a-b34f-5d3d7b3e1bd2" }, "createdById": { "type": "string", "description": "Id of the user who created the scene", "format": "UUID", "example": "37f457a6-25fd-4d4a-8947-974b690158be" }, "iTwinId": { "type": "string", "description": "iTwin Id", "format": "UUID", "example": "eda9e67f-24a3-4bd5-aeca-981d2abdb610" }, "creationTime": { "type": "string", "description": "Time the scene was created as an ISO8601 string, 'YYYY-MM-DDTHH:mm:ss.sssZ'", "format": "date-time", "example": "2025-05-04T04:14:08Z" }, "lastModified": { "type": "string", "description": "Time the scene was last modified as an ISO8601 string, 'YYYY-MM-DDTHH:mm:ss.sssZ'", "format": "date-time", "example": "2025-05-07T01:15:25Z" }, "sceneData": { "allOf": [ { "$ref": "#/components/schemas/SceneDataLinksDTO" } ], "description": "Scene data with links to resources" } }, "additionalProperties": false }
SceneResponse
{ "required": [ "scene" ], "type": "object", "properties": { "scene": { "$ref": "#/components/schemas/SceneWithLinksDTO" } }, "additionalProperties": false }
Error
Contains error information.
One of a server-defined set of error codes.
A human-readable representation of the error.
The target of the error.
{ "type": "object", "description": "Contains error information.", "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "message": { "type": "string", "description": "A human-readable representation of the error." }, "target": { "type": "string", "description": "The target of the error.", "nullable": true } }, "required": [ "code", "message" ], "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", "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.", "properties": { "error": { "description": "Error information.", "$ref": "#/components/schemas/Error" } }, "required": [ "error" ], "additionalProperties": false }
Was this page helpful?