Skip to main content
GET
/
diagram-parsing
/
svg-data
/
file
/
{fileSpace}
/
{fileExternalId}
/
{pageNumber}
Get SVG data by file reference
curl --request GET \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/svg-data/file/{fileSpace}/{fileExternalId}/{pageNumber} \
  --header 'Authorization: Bearer <token>'
{
  "height": 123,
  "paths": {},
  "pathStyles": {},
  "viewBox": "<string>",
  "width": 123
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Path Parameters

fileSpace
string
required

A DMS space where the files reside

fileExternalId
string
required

Retrieve data related to a file

pageNumber
integer
required

The file's page number

Response

The SVG data for a file

SVG data extracted for a file.

height
number
required

Height attribute of the SVG diagram

paths
object
required

Map representation of paths

pathStyles
object
required

Map linking styleIds to SVG path style properties

viewBox
string
required

ViewBox attribute of the SVG diagram

width
number
required

Width attribute of the SVG diagram

Last modified on April 23, 2026