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
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.
Response 200 OK
OK
{ "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.
{ "error": { "code": "HeaderNotFound", "message": "Header Authorization was not found in the request. Access denied." } }
Response 404 Not Found
This response indicates that the requested operation or resource could not be found.
{ "error": { "code": "ResourceNotFound", "message": "The requested resource was not found. Verify the API URL and the Accept header.", "details": [{ "code": "OperationNotFound", "message": "Unable to match incoming request to an operation." }] } }
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)
{ "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.
{ "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.
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 }
Content
The unique identifier for the content.
The name of the content.
A Markdown compatible string containing any required attribution for the content. Clients will be required to display the attribution to end users.
A Markdown string describing the content.
{ "type": "object", "properties": { "id": { "type": "number", "description": "The unique identifier for the content." }, "name": { "type": "string", "description": "The name of the content." }, "type": { "$ref": "#/components/schemas/ContentType" }, "status": { "$ref": "#/components/schemas/ContentStatus" }, "attribution": { "type": "string", "description": "A Markdown compatible string containing any required attribution for the content. Clients will be required to display the attribution to end users." }, "description": { "type": "string", "description": "A Markdown string describing the content." } }, "additionalProperties": false }
ContentType
The type of content.
{ "enum": [ "3DTILES", "GLTF", "IMAGERY", "TERRAIN", "KML", "CZML", "GEOJSON" ], "type": "string", "description": "The type of content." }
ContentStatus
Describes the state of the content during the upload and tiling processes.
{ "enum": [ "AWAITING_FILES", "NOT_STARTED", "IN_PROGRESS", "COMPLETE", "ERROR", "DATA_ERROR" ], "type": "string", "description": "Describes the state of the content during the upload and tiling processes." }
DetailedError
Contains error information and an array of more specific errors.
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", "details" ], "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." }, "details": { "type": "array", "items": { "$ref": "#/components/schemas/Error" }, "description": "Optional array of more specific errors." }, "message": { "type": "string", "description": "A human-readable representation of the error." } }, "description": "Contains error information and an array of more specific errors.", "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 }
ContentResponse
{ "type": "object", "required": [ "items" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Content" }, "description": "List of content." } }, "additionalProperties": false }
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.
{ "type": "object", "title": "Detailed Error Response", "required": [ "error" ], "properties": { "error": { "$ref": "#/components/schemas/DetailedError", "description": "Error Detailed 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 }
Was this page helpful?