Register (or re-register) the connector webhook with the external platform
POST/api/integrations/:id/register-webhook
Idempotent. Registers this integration's inbound webhook on Chat2Desk using the CURRENT BASE_URL (the stored webhook_url is only a fallback and is corrected on success). An existing webhook with the same path (/api/webhook/chat2desk/{id}) is updated in place — domain change, secret rotation or rename never create duplicates.
Request
Responses
- 200
- 400
- 404
- 409
- 500
Result of webhook registration
Connector does not support webhook auto-registration
Integration not found
Chat2Desk only. The Chat2Desk account behind the token is already connected to another VigilSquad integration. Code CHAT2DESK_ACCOUNT_IN_USE when that integration is in the same company; CHAT2DESK_ACCOUNT_IN_USE_ELSEWHERE when it is in another company (no name or id is revealed). The current holder is released first if Chat2Desk rejects its token.
Internal server error