Skip to Content
annotyDocs
annotyDocs
annoty.appDashboardGetting started

Share with reviewers

Proxy or embed?ProxyEmbedScreenshotsToolbar position

Coding agents

Coding agents (MCP)Send to agent

Integrations

SlackWebhooksDiscordEmailZapiern8n

Reference

GlossaryPlans and billingGet help and send feedback
REST API
List a project's notification destinations GETAdd a notification destination POSTGet a notification destination GETUpdate a notification destination PATCHDelete a notification destination DELETESend a test message POSTGet a webhook's signing secret GETGive a webhook a new signing secret POSTGet your notification preferences for a project GETSet your notification preferences for a project PUTList a destination's deliveries GETGet a delivery with its body and attempts GETRedeliver POST
REST APINotifications

Update a notification destination

Get a notification destination GET

Requires `notificationDestination:read`.

Delete a notification destination DELETE

Requires `notificationDestination:delete`.

PATCH
/v1/notification-destinations/{destinationId}

Only the fields you send change. A coding agent takes a new token, and no events. Requires notificationDestination:update and a plan with the type's feature (Discord: integrations, webhook: webhooks, coding agents: agents).

Authorization

apiKey
headerAuthorizationBearer <token>

An organization API key from the dashboard (Settings → API keys), e.g. Authorization: Bearer annoty_.... x-api-key: annoty_... also works. While the organization has no subscription or trial, every request with a key except GET /v1/organization fails with 402 SUBSCRIPTION_REQUIRED.

Path Parameters

destinationId*string

Request Body

application/json
  1. body
  1. body
  2. …
name?string
Length1 <= length <= 100
url?string

A URL the destination's type takes: Discord's webhook URL for discord, any public https URL for webhook, the fire URL for claude_code, the repository for github_actions and cursor

annotyApiKey?|

cursor only: a new Annoty API key for the agent's MCP server, or null to remove it

token?string

Coding agents only: a new token, checked against the destination's type like url

events?array<>

Not for coding agents, which get no events

Items1 <= items
enabled?boolean

Turning a destination back on clears lastError

Response Body

The updated notification destination

application/json
  1. response
  1. response
  2. …
id*string
projectId*string
feedbackSessionIds*array<string>

The feedback sessions whose events it gets. Empty: every feedback session in the project that isn't muted

type*string

discord: a Discord channel's webhook. slack: a channel in a Slack workspace connected with POST /slack/install. webhook: any https URL, signed the Standard Webhooks way. claude_code: a Claude Code scheduled task's API trigger. github_actions: repository_dispatch on a GitHub repository, for Claude Code's or Codex's GitHub Action. cursor: a Cursor cloud agent on a GitHub repository. The last three are coding agents: POST …/comments/{commentId}/send-to-agent sends them a comment

Value in"discord""slack""webhook""claude_code""github_actions""cursor"
name*string
urlPreview*string

The URL without its secret part: Discord's webhook id; a webhook's host, its path's first segment when more follow and the last 4 characters of the rest (n8n.acme.dev/webhook-test/…f3a9); a Claude Code trigger's id or a GitHub repository. The URL and any token are never returned

events*array<>

The activity events this receives. Empty for coding agents (claude_code, github_actions): they get only the comments a member sends them

enabled*boolean
lastError*|

Why the last delivery failed. A webhook deleted on Discord's side also sets enabled to false

lastErrorAt*|
Formatdate-time
hasAnnotyApiKey*boolean

cursor: an Annoty API key is stored for the agent's MCP server, so it can read the whole comment and reply. Always false for other types

createdAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.annoty.app/v1/notification-destinations/string' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "id": "string",
  "projectId": "string",
  "feedbackSessionIds": [
    "string"
  ],
  "type": "discord",
  "name": "string",
  "urlPreview": "string",
  "events": [
    "comment.created"
  ],
  "enabled": true,
  "lastError": "string",
  "lastErrorAt": "2019-08-24T14:15:22Z",
  "hasAnnotyApiKey": true,
  "createdAt": "2019-08-24T14:15:22Z"
}