> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cadrooms.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cadrooms.com/_mcp/server.

# Create an annotation

POST https://api.cadrooms.workers.dev/v1/revisions/{revisionId}/annotations
Content-Type: application/json

Creates an annotation on the underlying file version of a revision. CAD ROOMS assigns the next annotation number and notifies mentioned users.

Sends the `annotation.created` event.

Required permission: Viewer or higher in the project, or a share of the file.


Reference: https://docs.cadrooms.com/api-reference/annotations/create-annotation

## Authentication

- `Authorization` header (bearer token, required) — An API key associated with your user account and workspace. API requests inherit your existing workspace permissions.
- `Authorization` header (bearer token, required) — The session token of a user signed in to the CAD ROOMS app. Every endpoint accepts it in place of an API key.

## Request

### Path parameters

- `revisionId` (string, required) — Unique identifier of the revision.

### Body (application/json)

This endpoint expects an AnnotationCreate.

- `content` (string, required) — Text of the annotation, in Markdown.
- `mentions` (list of string, optional) — IDs of the users mentioned in the text.
- `nodeId` (long, optional) — ID of the part the annotation is pinned to.
- `nodeName` (string, optional) — Name of the part the annotation is pinned to.
- `position` (AnnotationPosition, optional) — A point in 3D.
- `camera` (AnnotationCamera, optional) — The camera of the 3D view saved with an annotation.
- `scene` (AnnotationCreateScene, optional) — Snapshot of the 3D view, such as part visibility, markup and section view. CAD ROOMS stores it as sent.

## Response

### 201

Returns the new annotation.

- `id` (string, required) — Unique identifier for the annotation.
- `projectId` (string, required) — ID of the project.
- `path` (string, required) — Full path of the annotated file.
- `revisionId` (string, required) — Latest revision of the annotated file version when the annotation was created.
- `number` (integer, required) — Annotation number, unique within a file version. Numbering starts at 1 on each file version.
- `url` (string, required) — Link that opens the annotation in the CAD ROOMS app. Use it to share the annotation, as Copy link does in the app.
- `content` (string, required) — Text of the annotation, in Markdown.
- `author` (User, required) — Represents a CAD ROOMS user.
- `mentions` (list of User, required) — Users mentioned in the text.
- `nodeId` (long, required, nullable) — ID of the part the annotation is pinned to, or `null` if none.
- `nodeName` (string, required, nullable) — Name of the part the annotation is pinned to, or `null` if none.
- `position` (AnnotationPosition, required, nullable) — Position of the annotation in 3D, or `null` if none.
- `resolvedAt` (datetime, required, nullable) — Timestamp when the annotation was resolved, or `null` if it is unresolved.
- `previews` (list of AnnotationPreviewsItems, required) — Thumbnails of the annotation. Use Download an annotation thumbnail to get the image.
- `createdAt` (datetime, required) — Timestamp when the annotation was created.
- `updatedAt` (datetime, required) — Timestamp when the annotation was last updated.
- `replyCount` (integer, required) — Number of replies.

## Errors

### 400 Bad Request Error

The request contains invalid or missing parameters. See `details` for specific validation errors.

- `error` (ErrorError, required)

### 401 Unauthorized Error

The API key is missing, invalid, expired, or revoked.

- `error` (ErrorError, required)

### 404 Not Found Error

The requested resource does not exist or is not accessible to your account. Both cases return the same response.

- `error` (ErrorError, required)

### 429 Too Many Requests Error

The rate limit has been exceeded. Wait for the duration specified in the `Retry-After` header before retrying.

- `error` (ErrorError, required)

### 500 Internal Server Error

An unexpected server error occurred. Retry later. Include the `requestId` when contacting support.

- `error` (ErrorError, required)

## Types

### AnnotationPosition

A point in 3D.

- `x` (double, required)
- `y` (double, required)
- `z` (double, required)

### AnnotationCamera

The camera of the 3D view saved with an annotation.

- `position` (AnnotationPosition, required) — A point in 3D.
- `target` (AnnotationPosition, required) — A point in 3D.
- `up` (AnnotationPosition, required) — A point in 3D.
- `projection` (string, optional) — Camera projection.
- `nearLimit` (double, optional) — Near limit of the camera.
- `width` (double, optional) — Width of the camera view.
- `height` (double, optional) — Height of the camera view.

### AnnotationCreateScene

Snapshot of the 3D view, such as part visibility, markup and section view. CAD ROOMS stores it as sent.

### User

Represents a CAD ROOMS user.

- `id` (string, required) — Unique identifier for the user.
- `displayName` (string, required) — User's display name in the CAD ROOMS app.

### AnnotationPreviewsItems

- `id` (string, required) — Unique identifier of the thumbnail.
- `createdAt` (datetime, required) — Timestamp when the thumbnail was created.

### ErrorError

- `code` (string, required) — Stable error identifier for programmatic error handling. Every endpoint can return the general codes listed on the Errors page. Where a business condition applies, an endpoint returns a more specific code, documented on that endpoint.
- `message` (string, required) — Human-readable error description. May change over time.
- `requestId` (string, required) — Unique request identifier used for troubleshooting. The same value is returned in the `Request-Id` header of every response. Include this when contacting support.
- `details` (list of ErrorErrorDetailsItems, optional) — Optional. Contains field-level validation errors for `400` responses.

### ErrorErrorDetailsItems

- `field` (string, required) — Name of the request field that failed validation.
- `message` (string, required) — Description of the validation issue.

## Examples

**Request**

```json
{
  "content": "Check the fillet on this edge. @Jane Doe",
  "mentions": [
    "f008611c-2eef-4880-af86-94dbc7ecf9f7"
  ],
  "nodeId": 1042,
  "nodeName": "Bracket_Body",
  "position": {
    "x": 12.5,
    "y": -3.2,
    "z": 40
  }
}
```

**Response**

```json
{
  "id": "3bd39cb1-6825-497d-a596-92451f6c3f9c",
  "projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
  "path": "parts/bracket.prt",
  "revisionId": "e88d65cd-879d-4df3-adfc-ef0ca99238bf",
  "number": 4,
  "url": "https://app.example.com/+acme/gearbox-v2/files/9f1c2b7e-4d3a-4e8b-a6f5-2c9d8e7b1a30?annotation=4",
  "content": "Check the fillet on this edge. @Jane Doe",
  "author": {
    "id": "40a078d1-1f99-459a-a09a-f21da9c5dce4",
    "displayName": "John Doe"
  },
  "mentions": [
    {
      "id": "f008611c-2eef-4880-af86-94dbc7ecf9f7",
      "displayName": "Jane Doe"
    }
  ],
  "nodeId": 1042,
  "nodeName": "Bracket_Body",
  "position": {
    "x": 12.5,
    "y": -3.2,
    "z": 40
  },
  "resolvedAt": null,
  "previews": [],
  "createdAt": "2026-10-09T09:00:00Z",
  "updatedAt": "2026-10-09T09:00:00Z",
  "replyCount": 0
}
```

**SDK Code**

```python Annotations_createAnnotation_example
import requests

url = "https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/annotations"

payload = {
    "content": "Check the fillet on this edge. @Jane Doe",
    "mentions": ["f008611c-2eef-4880-af86-94dbc7ecf9f7"],
    "nodeId": 1042,
    "nodeName": "Bracket_Body",
    "position": {
        "x": 12.5,
        "y": -3.2,
        "z": 40
    }
}
headers = {
    "Authorization": "Bearer <API key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Annotations_createAnnotation_example
const url = 'https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/annotations';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API key>', 'Content-Type': 'application/json'},
  body: '{"content":"Check the fillet on this edge. @Jane Doe","mentions":["f008611c-2eef-4880-af86-94dbc7ecf9f7"],"nodeId":1042,"nodeName":"Bracket_Body","position":{"x":12.5,"y":-3.2,"z":40}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Annotations_createAnnotation_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/annotations"

	payload := strings.NewReader("{\n  \"content\": \"Check the fillet on this edge. @Jane Doe\",\n  \"mentions\": [\n    \"f008611c-2eef-4880-af86-94dbc7ecf9f7\"\n  ],\n  \"nodeId\": 1042,\n  \"nodeName\": \"Bracket_Body\",\n  \"position\": {\n    \"x\": 12.5,\n    \"y\": -3.2,\n    \"z\": 40\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <API key>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Annotations_createAnnotation_example
require 'uri'
require 'net/http'

url = URI("https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/annotations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <API key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"content\": \"Check the fillet on this edge. @Jane Doe\",\n  \"mentions\": [\n    \"f008611c-2eef-4880-af86-94dbc7ecf9f7\"\n  ],\n  \"nodeId\": 1042,\n  \"nodeName\": \"Bracket_Body\",\n  \"position\": {\n    \"x\": 12.5,\n    \"y\": -3.2,\n    \"z\": 40\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Annotations_createAnnotation_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/annotations")
  .header("Authorization", "Bearer <API key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"content\": \"Check the fillet on this edge. @Jane Doe\",\n  \"mentions\": [\n    \"f008611c-2eef-4880-af86-94dbc7ecf9f7\"\n  ],\n  \"nodeId\": 1042,\n  \"nodeName\": \"Bracket_Body\",\n  \"position\": {\n    \"x\": 12.5,\n    \"y\": -3.2,\n    \"z\": 40\n  }\n}")
  .asString();
```

```php Annotations_createAnnotation_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/annotations', [
  'body' => '{
  "content": "Check the fillet on this edge. @Jane Doe",
  "mentions": [
    "f008611c-2eef-4880-af86-94dbc7ecf9f7"
  ],
  "nodeId": 1042,
  "nodeName": "Bracket_Body",
  "position": {
    "x": 12.5,
    "y": -3.2,
    "z": 40
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <API key>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Annotations_createAnnotation_example
using RestSharp;

var client = new RestClient("https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/annotations");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <API key>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"content\": \"Check the fillet on this edge. @Jane Doe\",\n  \"mentions\": [\n    \"f008611c-2eef-4880-af86-94dbc7ecf9f7\"\n  ],\n  \"nodeId\": 1042,\n  \"nodeName\": \"Bracket_Body\",\n  \"position\": {\n    \"x\": 12.5,\n    \"y\": -3.2,\n    \"z\": 40\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Annotations_createAnnotation_example
import Foundation

let headers = [
  "Authorization": "Bearer <API key>",
  "Content-Type": "application/json"
]
let parameters = [
  "content": "Check the fillet on this edge. @Jane Doe",
  "mentions": ["f008611c-2eef-4880-af86-94dbc7ecf9f7"],
  "nodeId": 1042,
  "nodeName": "Bracket_Body",
  "position": [
    "x": 12.5,
    "y": -3.2,
    "z": 40
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cadrooms.workers.dev/v1/revisions/a7e9d949-ebc6-4707-a493-a3f13f2a1b51/annotations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```