Skip to navigation

Webhook endpoints

CAD ROOMS sends webhook events to your registered HTTPS endpoint whenever an event you have subscribed to occurs.

Each event is delivered as an HTTP POST request containing a JSON payload. All events share a common structure, with the event-specific resource included in data.object.

Webhook endpoints are configured at the workspace level and managed by workspace owners and admins. When creating a webhook endpoint, you select which events to receive. To modify an existing endpoint, create a new one and delete the old one.

For information about delivery behavior, retries, and signature verification, see the Webhooks guide.

Event structure

Every webhook event follows the same JSON structure:

  • id (string): Unique identifier for the event. Remains unchanged across all delivery attempts, including retries.
  • type (enum): Type of event that occurred.
  • createdAt (datetime): Timestamp at which the event occurred.
  • data (object): Container for the resource associated with the event.
  • data.object (object): Resource associated with the event. Its structure depends on the event type.

Important: Use the event id to identify duplicate deliveries. An event may be delivered more than once, but its ID remains unchanged.

Supported event types

CAD ROOMS supports seven webhook event types in API v1. Five additional event types are available in preview: eco.opened, eco.reviewed, annotation.resolved, member.added, and member.removed.

  • contribution.created
    • Description: A user contributes changes to a project. This event is also triggered by a release.
    • Resource: Contribution
  • revision.released
    • Description: Files are released, either manually or through an ECO. A single event is triggered per release.
    • Resource: Released revisions, a list of up to 100 Revision objects
  • eco.created
    • Description: A new ECO is created.
    • Resource: ECO
  • eco.released
    • Description: An ECO is released.
    • Resource: ECO
  • eco.closed
    • Description: An ECO is closed.
    • Resource: ECO
  • annotation.created
    • Description: A user creates an annotation.
    • Resource: Annotation
  • annotation.replied
    • Description: A user replies to an annotation.
    • Resource: Annotation reply
  • annotation.resolved (preview)
    • Description: A user marks an annotation as resolved.
    • Resource: Annotation
  • eco.opened (preview)
    • Description: An ECO transitions from draft to open and is ready for review.
    • Resource: ECO
  • eco.reviewed (preview)
    • Description: A reviewer approves or rejects an ECO.
    • Resource: ECO, including the reviewer who made the decision
  • member.added (preview)
    • Description: A user joins a workspace or project.
    • Resource: Membership
  • member.removed (preview)
    • Description: A member leaves or is removed from a workspace or project.
    • Resource: Membership

Event payloads

contribution.created

The data.object field contains a Contribution object, including the project ID, contribution details, author, and affected files.

The files array contains FileReference objects that identify the files included in the contribution.

Resource: Contribution

Example payload:

{
"id": "c2a24077-8111-4ece-a6d3-acf56c9ac6ce",
"type": "contribution.created",
"createdAt": "2026-10-02T09:00:00Z",
"data": {
"object": {
"id": "bc06695b-d65d-4446-a075-82a9b9d33a22",
"projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
"title": "Fillet edges",
"description": "",
"author": {
"id": "40a078d1-1f99-459a-a09a-f21da9c5dce4",
"displayName": "John Doe"
},
"files": [
{
"path": "parts/bracket.prt",
"name": "bracket.prt",
"revisionId": "e88d65cd-879d-4df3-adfc-ef0ca99238bf"
}
],
"createdAt": "2026-10-02T09:00:00Z"
}
}
}

revision.released

A single event is triggered per release, regardless of the number of files released. The data.object field contains the following:

  • projectId (string): ID of the project containing the released files.
  • contribution (object): Contribution created by the release.
  • revisions (array): Up to 100 released Revision objects, sorted by path.
  • hasMore (boolean): true if the release created more than 100 revisions.

To retrieve all released files, call List contribution files with contribution.id. Each file’s revisionId identifies its released revision.

Resource: Released revisions

Example payload:

{
"id": "5c99781b-4f88-453f-a562-0b63d2d65891",
"type": "revision.released",
"createdAt": "2026-10-07T14:03:11Z",
"data": {
"object": {
"projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
"contribution": {
"id": "a41c7e0b-2d5f-4f7a-9b3e-6c8d1f2a4b5c",
"title": "Release bracket for production",
"description": "",
"author": {
"id": "40a078d1-1f99-459a-a09a-f21da9c5dce4",
"displayName": "John Doe"
},
"createdAt": "2026-10-07T14:03:11Z"
},
"revisions": [
{
"id": "5e2f66fe-f4dd-49b9-acba-b84f5e66328b",
"projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
"path": "parts/bracket.prt",
"name": "bracket.prt",
"major": "B",
"minor": 1,
"isObsolete": false,
"contentType": "application/octet-stream",
"sizeBytes": 482113,
"sha256": "9b74c1a3e5f2d8b0c6a1e4f7d2b9c8a5e3f1d0b7a6c4e2f9d8b1a0c7e5f3d2b1",
"contribution": {
"id": "a41c7e0b-2d5f-4f7a-9b3e-6c8d1f2a4b5c",
"title": "Release bracket for production",
"description": "",
"author": {
"id": "40a078d1-1f99-459a-a09a-f21da9c5dce4",
"displayName": "John Doe"
},
"createdAt": "2026-10-07T14:03:11Z"
},
"createdAt": "2026-10-07T14:03:11Z"
}
],
"hasMore": false
}
}
}

eco.created

The data.object field contains an ECO object.

Resource: ECO

Status: draft

Example payload:

{
"id": "ab1db113-bd3c-47a1-a2db-9a245f793147",
"type": "eco.created",
"createdAt": "2026-10-01T08:12:00Z",
"data": {
"object": {
"id": "7f4c46a5-6b6e-409e-aec9-416bc7365c3a",
"projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
"displayNumber": "ECO-2026-0014",
"title": "Gearbox v2 housing change",
"description": "Thicken mounting flange",
"status": "draft",
"reasonType": "product",
"autoRelease": false,
"assignee": {
"id": "f008611c-2eef-4880-af86-94dbc7ecf9f7",
"displayName": "Jane Doe"
},
"reviewers": [
{
"user": { "id": "f008611c-2eef-4880-af86-94dbc7ecf9f7", "displayName": "Jane Doe" },
"decision": "approved"
}
],
"effectiveDate": null,
"createdBy": {
"id": "40a078d1-1f99-459a-a09a-f21da9c5dce4",
"displayName": "John Doe"
},
"createdAt": "2026-10-01T08:12:00Z",
"updatedAt": "2026-10-01T08:12:00Z"
}
}
}

eco.released

The data.object field contains an ECO object.

Resource: ECO

Status: released

Example payload:

{
"id": "084b5dc1-94a3-4ebd-af28-b2e7f39e3ddb",
"type": "eco.released",
"createdAt": "2026-10-07T14:03:11Z",
"data": {
"object": {
"id": "7f4c46a5-6b6e-409e-aec9-416bc7365c3a",
"projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
"displayNumber": "ECO-2026-0014",
"title": "Gearbox v2 housing change",
"description": "Thicken mounting flange",
"status": "released",
"reasonType": "product",
"autoRelease": false,
"assignee": {
"id": "f008611c-2eef-4880-af86-94dbc7ecf9f7",
"displayName": "Jane Doe"
},
"reviewers": [
{
"user": { "id": "f008611c-2eef-4880-af86-94dbc7ecf9f7", "displayName": "Jane Doe" },
"decision": "approved"
}
],
"effectiveDate": null,
"createdBy": {
"id": "40a078d1-1f99-459a-a09a-f21da9c5dce4",
"displayName": "John Doe"
},
"createdAt": "2026-10-01T08:12:00Z",
"updatedAt": "2026-10-07T14:03:11Z"
}
}
}

eco.closed

The data.object field contains an ECO object.

Resource: ECO

Status: closed

Example payload:

{
"id": "658b2561-ae76-4ace-a786-4428904eebd9",
"type": "eco.closed",
"createdAt": "2026-10-08T16:20:00Z",
"data": {
"object": {
"id": "7f4c46a5-6b6e-409e-aec9-416bc7365c3a",
"projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
"displayNumber": "ECO-2026-0014",
"title": "Gearbox v2 housing change",
"description": "Thicken mounting flange",
"status": "closed",
"reasonType": "product",
"autoRelease": false,
"assignee": {
"id": "f008611c-2eef-4880-af86-94dbc7ecf9f7",
"displayName": "Jane Doe"
},
"reviewers": [
{
"user": { "id": "f008611c-2eef-4880-af86-94dbc7ecf9f7", "displayName": "Jane Doe" },
"decision": "approved"
}
],
"effectiveDate": null,
"createdBy": {
"id": "40a078d1-1f99-459a-a09a-f21da9c5dce4",
"displayName": "John Doe"
},
"createdAt": "2026-10-01T08:12:00Z",
"updatedAt": "2026-10-08T16:20:00Z"
}
}
}

annotation.created

The data.object field contains an Annotation object.

Example payload:

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

annotation.replied

The data.object field contains the annotation reply, including projectId, path, revisionId, and annotationNumber.

Example payload:

{
"id": "79ddfde3-b9c3-47a2-a264-69891e4a09be",
"type": "annotation.replied",
"createdAt": "2026-10-09T10:15:00Z",
"data": {
"object": {
"id": "d77b12a7-71e3-420e-a2ca-a52f61dc8314",
"annotationId": "3bd39cb1-6825-497d-a596-92451f6c3f9c",
"annotationNumber": 4,
"projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
"path": "parts/bracket.prt",
"revisionId": "e88d65cd-879d-4df3-adfc-ef0ca99238bf",
"content": "Agreed.",
"author": {
"id": "f008611c-2eef-4880-af86-94dbc7ecf9f7",
"displayName": "Jane Doe"
},
"mentions": [],
"createdAt": "2026-10-09T10:15:00Z",
"updatedAt": "2026-10-09T10:15:00Z"
}
}
}

annotation.resolved

The data.object field contains an Annotation object with resolvedAt set. No event is triggered when an annotation is marked as unresolved.

eco.opened

The data.object field contains an ECO object.

Status: open

eco.reviewed

The data.object field contains an ECO object with an additional reviewer field identifying the reviewer who made the decision.

{
"id": "0c6a2f1e-5b8d-4c3a-9e71-2d4f6a8b1c90",
"type": "eco.reviewed",
"createdAt": "2026-10-02T10:30:00Z",
"data": {
"object": {
"id": "7f4c46a5-6b6e-409e-aec9-416bc7365c3a",
"projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
"displayNumber": "ECO-2026-0014",
"status": "open",
"reviewer": {
"user": { "id": "f008611c-2eef-4880-af86-94dbc7ecf9f7", "displayName": "Jane Doe" },
"decision": "approved"
}
}
}
}

For brevity, the example includes only a subset of ECO fields.

member.added and member.removed

The data.object field contains the membership details: workspaceId, projectId, user, and role.

For workspace memberships, projectId is null. For member.removed events, role represents the role held by the member before removal.

{
"id": "5e2b7c94-1a3d-4f60-8b2e-9c7d1a4f3e21",
"type": "member.added",
"createdAt": "2026-10-03T09:15:00Z",
"data": {
"object": {
"workspaceId": "1fb60bd2-19f9-47a9-bea9-27898f43a0d5",
"projectId": "356d9a6c-31e9-4d9c-ad55-de709172d893",
"user": { "id": "f008611c-2eef-4880-af86-94dbc7ecf9f7", "displayName": "Jane Doe" },
"role": "collaborator"
}
}
}

Handling webhook events

When processing incoming webhook events:

  1. Verify the signature. Use your endpoint’s signing secret to validate the CadRooms-Signature header before processing the payload.
  2. Identify the event type. Read the type field to determine the resource and action associated with the event.
  3. Process the resource. Access data.object to retrieve the resource details associated with the event.
  4. Handle duplicate deliveries. Track processed event IDs to prevent the same event from being processed more than once.
  5. Acknowledge the delivery. Follow the acknowledgment and retry behavior described in the Webhooks guide.