Forgecroft Docs
Guides / Notifications

Notification Targets

Attach notification channels to specific scopes so the right people get notified about the right events.

What Are Notification Targets?

A notification target attaches a notification channel to a scope (org, project, or workspace). When a run event occurs within that scope, notifications are sent to the channel.

Attaching a Target

POST /notification-configs/{id}/targets
{
  "scope_type": "workspace",
  "scope_id": "workspace-uuid"
}
FieldTypeRequiredDescription
scope_typestringYesorg, project, or workspace
scope_idUUIDYesThe target resource ID

Scope Requirements

Scope TypeRequirement
orgMust match the caller’s org; requires org admin
projectCaller must have admin access to the project
workspaceCaller must have admin access to the workspace

Listing Targets

GET /notification-configs/{id}/targets

Returns all scope attachments for the notification channel.

Removing a Target

DELETE /notification-configs/{id}/targets/{targetId}

Requires the same permissions as creating a target (admin or creator + scope admin).

Idempotency

Attaching the same target twice returns 409 Conflict. Each scope can only be attached once per notification channel.

Notification Events

Notifications are sent for: