Skip to navigation

Create a webhook endpoint

Creates a webhook endpoint to receive notifications for selected CAD ROOMS events.

Provide an HTTPS URL and specify the events you want to subscribe to. Once created, the endpoint immediately begins receiving matching events from all projects in the workspace.

The response includes a signing secret used to verify webhook deliveries. This secret is returned only once, when the endpoint is created. Store it securely.

A workspace can have up to 10 webhook endpoints. Attempting to exceed this limit returns 400 with VALIDATION_FAILED. Delete an existing endpoint before creating another.

With a session token, send workspaceId to name the workspace. With an API key, workspaceId is optional and must be the key’s workspace.

Required permission: Workspace owner or admin.

Authentication

AuthorizationBearer
An API key associated with your user account and workspace. API requests inherit your existing workspace permissions.
OR
AuthorizationBearer
The session token of a user signed in to the CAD ROOMS app. Every endpoint accepts it in place of an API key.

Request

This endpoint expects an object.
urlstringRequiredformat: "uri"<=2048 characters
HTTPS URL where webhook events will be delivered, up to 2,048 characters.
enabledEventslist of enumsRequired
List of events to send to this endpoint.
workspaceIdstringOptionalformat: "uuid"
The workspace to create the endpoint in. Required with a session token. With an API key, defaults to the key’s workspace.
descriptionstringOptional
Optional description of the endpoint's purpose.

Response headers

Request-IdstringOptional

Request-Id. Unique identifier for the request. Every response, success or error, returns it. Error bodies carry the same value in requestId. Include it when contacting CAD ROOMS support.

Response

Returns the newly created webhook endpoint, including its signing secret.

Important: Save the secret from this response. It is not included when listing or retrieving webhook endpoints.

idstring
Unique identifier for the webhook endpoint.
urlstringformat: "uri"
HTTPS URL where webhook events are delivered.
enabledEventslist of enums
Events subscribed to by this endpoint.
descriptionstring or null

Optional description of the endpoint’s purpose, or null if none was provided.

createdAtdatetime
Timestamp when the webhook endpoint was created.
createdByobject or null
User who created the endpoint, or null if their account has been deleted.
secretstring

Signing secret used to verify the CadRooms-Signature header. Only returned at creation.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error