Skip to main content
GET
/
diagram-parsing
/
svg-data
/
diagram
/
{diagramId}
Get SVG data by diagramId
curl --request GET \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/svg-data/diagram/{diagramId} \
  --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

diagramId
string
required

External ID of a diagram The external ID provided by the client. Must be unique for the resource type.

Maximum string length: 255
Example:

"my.known.id"

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