Table of contents
Mesh Export
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/mesh-export/{id}[?cdn]

Retrieves the information for a single export. Exports are persisted until deleted.

Request parameters

Name
Required?
Description
id
Yes

Export Id to get the results

cdn
No

Optional cdn query parameter. Will return cdn based urls if set to 1.

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

Specified export

json
{
    "export": {
        "id": "fc3aa1e5-5196-4dd9-a73e-4cfda693e576",
        "displayName": "My previous iModel",
        "status": "Complete",
        "lastModified": "2024-08-22T03:18:43.0000000+00:00",
        "request": {
            "iModelId": "b80f4fc2-4dbb-42c5-bb1f-f5aace3977dc",
            "changesetId": "ed94ed9a0704918d36eeb620219f5e17d8858858",
            "exportType": "3DTiles"
        },
        "_links": {
            "mesh": {
                "href": "https://api.bentley.com/mesh-export/fc3aa1e5-5196-4dd9-a73e-4cfda693e576"
            }
        }
    }
}

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

Requested export is not available.

json
{
    "error": {
        "code": "ExportNotFound",
        "message": "Requested export is not available."
    }
}

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.

Link

An href link reference.

Name
Type
Description
href
String

Http reference

Error

Contains error information.

Name
Type
Description
code
String

One of a server-defined set of error codes.

target
String, null

The target of the error.

message
String

A human-readable representation of the error.

Export

An export with all its details.

Name
Type
Description
id
String

ID of the export request.

error
String

Error message for Invalid exports.

_links.mesh
displayName
String

Name of the exported iModel

lastModified
String

Date when job metadata was last modified

ExportStatus

Status of the export.

Name
Type
Description
NotStarted
String
InProgress
String
Complete
String
Invalid
String

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.

ExportMetrics

Memory and CPU usage metrics from the graphics and tiles producer.

ExportResponse

Response containing the details of a single export.

Name
Type
Description
export

TilerConfigItem

A key-value configuration item for the tilerConfig.

Name
Type
Description
key
String

Configuration key name.

value

Configuration value; may be a string, number, or boolean.

ExportResultBody exportType

Type of mesh exported.

Name
Type
Description
IMODEL
String
CESIUM
String
3DTILES
String
3DTiles
String

ExportResultBody

The original export request body stored with the result.

Name
Type
Description
iTwinId
String

iTwin ID of the export.

iModelId
String

ID of the iModel.

contextId
String

Context/iTwin ID of the export (kept for backwards compatibility).

ExportResultBody exportType

Type of mesh exported.

changesetId
String

ID of the changeset extracted from.

Tiler Config

A list of key value pairs forwarded to the tiler executable.

changesetIndex
String

Index of the changeset.

ExportDirStructure

List of export directory children along with their size, in bytes.

ExportStatsDisplay

Statistics of the export job. This obsoletes the Consumption type.

Name
Type
Description
rawSize
Number

Size of the exported tiles, in bytes.

diskSize
Number

Disk size, in bytes.

duration
Number

Duration of the export job, in milliseconds.

startTime
Date-time

Starting date of the export job, pretty-printed.

iModelSize
Number

Size of the iModel .bin file, in bytes

exportDirSize
Number

Export directory size, in bytes.

freeDiskSpace
Number

Free disk space, in bytes.

compressedSize
Number

Size of the exported and compressed tiles, in bytes.

exportDirStructure

Was this page helpful?