Table of contents
Cesium Curated Content
Download API definition:
This API is a Technical Preview and is available for testing purposes only. Do not use in production.
GET https://api.bentley.com/curated-content/cesium/

Retrieves all available content.

Authentication

Requires Authorization header with valid Bearer token for scope itwin-platform.

For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.

Request headers

Name
Required?
Description
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

OK

json
{
    "items": [{
            "id": 1,
            "type": "TERRAIN",
            "name": "Cesium World Terrain",
            "description": "High-resolution global terrain tileset curated from several data sources. See the official [Cesium World Terrain](https://cesium.com/content/cesium-world-terrain/) page for details.",
            "attribution": "Data available from the U.S. Geological Survey, © CGIAR-CSI, Produced using Copernicus data and information funded by the European Union - EU-DEM layers, Data available from Land Information New Zealand, Data available from data.gov.uk, Data courtesy Geoscience Australia",
            "status": "COMPLETE"
        },
        {
            "id": 2,
            "type": "3DTILES",
            "name": "Cesium OSM Buildings",
            "description": "3D buildings from OpenStreetMap with attributes such as height, name, and type of building. See the official [Cesium OSM Buildings](https://cesium.com/content/cesium-osm-buildings/) page for details.",
            "attribution": "Data available from OpenStreetMap contributors",
            "status": "COMPLETE"
        }
    ]
}

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 422 Unprocessable Entity

The 422 (Unprocessable Entity) status code indicates that the request cannot be processed by the server due to a client error (e.g. malformed request syntax)

json
{
    "error": {
        "code": "InvalidCesiumCuratedContentRequest",
        "message": "Cannot retrieve Cesium curated content.",
        "details": [{
            "code": "InvalidValue",
            "message": "not-a-guid is not a valid iTwin id.",
            "target": "itwinId"
        }]
    }
}

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.

Content

Name
Type
Description
id
Number

The unique identifier for the content.

name
String

The name of the content.

description
String

A Markdown string describing the content.

attribution
String

A Markdown compatible string containing any required attribution for the content. Clients will be required to display the attribution to end users.

ContentType

The type of content.

Name
Type
Description
3DTILES
String
GLTF
String
IMAGERY
String
TERRAIN
String
KML
String
CZML
String
GEOJSON
String

ContentStatus

Describes the state of the content during the upload and tiling processes.

Name
Type
Description
AWAITING_FILES
String
NOT_STARTED
String
IN_PROGRESS
String
COMPLETE
String
ERROR
String
DATA_ERROR
String

ContentResponse

Name
Type
Description
items

List of content.

DetailedError

Contains error information and an array of more specific errors.

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.

details

Optional array of more specific errors.

Detailed 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 Detailed information.

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?