const annotationIds = [{ id: 1 }, { id: 2 }];
const response = await client.annotations.retrieve(annotationIds);{
"id": 4096,
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000,
"annotatedResourceType": "file",
"annotatedResourceId": 1337,
"annotationType": "pointcloud.BoundingVolume",
"creatingApp": "cognite-vision",
"creatingAppVersion": "1.2.1",
"creatingUser": "john.doe@cognite.com",
"data": {
"assetRef": {
"externalId": "abc"
},
"symbolRegion": {
"xMin": 0.1,
"xMax": 0.2,
"yMin": 0.1,
"yMax": 0.2
},
"textRegion": {
"xMin": 0.2,
"xMax": 0.3,
"yMin": 0.2,
"yMax": 0.3
},
"pageNumber": 43
},
"status": "approved"
}Retrieves the referenced annotation.
The caller must have read-access on the annotated resource, otherwise the call will fail.
const annotationIds = [{ id: 1 }, { id: 2 }];
const response = await client.annotations.retrieve(annotationIds);{
"id": 4096,
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000,
"annotatedResourceType": "file",
"annotatedResourceId": 1337,
"annotationType": "pointcloud.BoundingVolume",
"creatingApp": "cognite-vision",
"creatingAppVersion": "1.2.1",
"creatingUser": "john.doe@cognite.com",
"data": {
"assetRef": {
"externalId": "abc"
},
"symbolRegion": {
"xMin": 0.1,
"xMax": 0.2,
"yMin": 0.1,
"yMax": 0.2
},
"textRegion": {
"xMin": 0.2,
"xMax": 0.3,
"yMin": 0.2,
"yMax": 0.3
},
"pageNumber": 43
},
"status": "approved"
}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.
The internal ID of the annotation Server-generated identifier for the annotation
1 <= x <= 90071992547409914096
Successful retrieval
Server-generated identifier for the annotation
1 <= x <= 90071992547409914096
The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
The annotated CDF resource type. Files as well as 3d-Models are supported.
file, threedmodel "file"
The internal ID of the annotated resource.
1 <= x <= 90071992547409911337
The type of the annotation. This uniquely decides what the structure of the data block will be.
pointcloud.BoundingVolume, images.Classification, forms.Detection, documents.ExtractedText, diagrams.FileLink, isoplan.IsoPlanAnnotation, diagrams.Junction, images.KeypointCollection, diagrams.Line, images.ObjectDetection, images.TextRegion, diagrams.UnhandledSymbolObject, diagrams.UnhandledTextObject, diagrams.AssetLink, diagrams.InstanceLink, images.AssetLink, images.InstanceLink "pointcloud.BoundingVolume"
The application name or identifier. This is neither checked nor enforced.
1 - 255"cognite-vision"
A version number in the SemVer sense. See semver.org for the specification.
1 - 255"1.2.1"
A username, or email, or name. This is not checked nor enforced. If the value is null, it means the annotation was created by a service.
1 - 255"john.doe@cognite.com"
The annotation information. The format of this object is decided by and validated against the annotationType
attribute.
Show child attributes
{
"assetRef": { "externalId": "abc" },
"symbolRegion": {
"xMin": 0.1,
"xMax": 0.2,
"yMin": 0.1,
"yMax": 0.2
},
"textRegion": {
"xMin": 0.2,
"xMax": 0.3,
"yMin": 0.2,
"yMax": 0.3
},
"pageNumber": 43
}The status of the annotation
suggested, approved, rejected "approved"
Was this page helpful?