Table of contents
Scenes API
Download API definition:
This API is a Technical Preview and is available for testing purposes only. Do not use in production.
GET https://dev-api.bentley.com/scenes/?iTwinId={iTwinId}[&$skip][&$top]

Retrieves the list of all scenes associated with an iTwin.

This endpoint returns metadata only. To retrieve the scene data, make a call to Get scene

Request parameters

Name
Required?
Description
iTwinId
Yes

Primary iTwin Id associated with the scene

$skip
No

Specifies the number of items in the queried collection that are to be skipped and not included in the result. The default is 0.

$top
No

Specifies the number of items in the queried collection to be included in the result. The default is 100. Max is 1000.

Request headers

Name
Required?
Description
x-correlation-id
No

Activity id used for tracking request

Authorization
Yes

OAuth access token with itwin-platform scope

Accept
Yes

Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.

Response 200 OK

List of all scenes.

json
{
    "scenes": [{
        "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",
        "createdById": "37f457a6-25fd-4d4a-8947-974b690158be",
        "creationTime": "2025-05-04T04:14:08Z",
        "lastModified": "2025-05-07T01:15:25Z"
    }],
    "_links": {
        "self": {
            "href": "https://api.bentley.com/scenes?iTwinId=1ba4c28a-e518-42d4-85e4-ff9f9ef44bb6&$skip=0&$top=100"
        }
    }
}

Response 400 Bad Request

Unprocessable Entity

json
{
    "error": {
        "code": "InvalidScenesRequest",
        "message": "Cannot retrieve scene.",
        "target": "scene",
        "details": [{
            "code": "InvalidRequestBody",
            "message": "ITwinId must be a UUID.",
            "target": "iTwinId"
        }]
    }
}

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.

json
{
    "error": {
        "code": "HeaderNotFound",
        "message": "Header Authorization was not found in the request. Access denied."
    }
}

Response 404 Not Found

Not Found

json
{
    "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.

json
{
    "error": {
        "code": "RateLimitExceeded",
        "message": "The client sent more requests than allowed by this API for the current tier of the client."
    }
}

Response headers

Name
Description
retry-after

Number of seconds to wait until client is allowed to make more requests.

SceneMinimalDTO

Name
Type
Description
id
Uuid

Unique identifier for the scene

displayName
String

User defined display name of the scene

description
String

Optional detailed description of the scene

parentId
Uuid

Optional parent Id for the scene

createdById
Uuid

Id of the user who created the scene

iTwinId
Uuid

iTwin Id

creationTime
Date-time

Time the scene was created as an ISO8601 string, 'YYYY-MM-DDTHH:mm:ss.sssZ'

lastModified
Date-time

Time the scene was last modified as an ISO8601 string, 'YYYY-MM-DDTHH:mm:ss.sssZ'

Link

Name
Type
Description
href
String

PagingLinks

Name
Type
Description
self
prev
next

SceneListResponse

Name
Type
Description

Error

Contains error information.

Name
Type
Description
code
String

One of a server-defined set of error codes.

message
String

A human-readable representation of the error.

target
String, null

The target of the error.

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.

Name
Type
Description
error

Error information.

Was this page helpful?