REST APINotifications
The old secret stops working at once: deliveries from now on, retries included, are signed with the new one. Webhooks only (400 otherwise). Requires notificationDestination:update and a plan with webhooks.
apiKeyAuthorizationBearer <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.
destinationId*stringThe new secret
application/jsonsecret*stringThe webhook's signing secret: keep it to check webhook-signature. GET /notification-destinations/{destinationId}/secret returns it again
destination*curl -X POST 'https://api.annoty.app/v1/notification-destinations/string/rotate-secret'{
"secret": "string",
"destination": {
"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"
}
}