Overview
This API creates an outgoing webhook in your Zoho CommunitySpaces community. When you invoke the API, a validation request (ping trigger) is sent to the specified endpoint URL. The endpoint must return a 200 OK response to validate and create the webhook. If it does not return a 200 OK response, the webhook will not be created.
API
POST /api/v1/webhook
Oauth Scope
ConnectCommunity.outgoingwebhook.CREATE
Sample request
- $curl -X POST https://communityspaces.zoho.com/api/v1/webhook
- -H "scopeid:5313000000002002"
- -H" Authorization:Zoho-oauthtoken 1000.3d0a155402XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- -d '{
- "name":"Notify in Cliq",
- "active":"false",
- "autoRetry":"true",
- "description":"Notify important Community activities in a Zoho Cliq Channel",
- "triggers":[
- {
- "type":"Board_Created"
- },
- {
- "type":"Task_Assigned"
- },
- {
- "type":"User_Mentioned_In_Post",
- "partitionIds":["3000000005135"]
- },
- {
- "type":"Space_Mentioned_In_Post",
- "partitionIds":["3000000005135"]
- }
- ],
- "url":"https://cliq.zoho.com/api/v2/channelsbyname/zo
- hocommunityspaces/message"
- }'
Sample response
- {
- "id": "3000000126027",
- "name": "Notify in Cliq",
- "active": "false",
- "autoRetry": "true",
- "createdTime": "1635755951141",
- "createdBy": "15521849",
- "description": "Notify important Community activities in Zoho Cliq Channel",
- "url":"https://cliq.zoho.com/api/v2/channelsbyname/zo
- hocommunityspaces/message",
- "triggers":[
- {
- "type": "Board_Created"
- },
- {
- "type": "Task_Assigned"
- },
- {
- "type": "User_Mentioned_In_Post",
- "partitionIds":["3000000005135"]
- },
- {
- "type": "Space_Mentioned_In_Post",
- "partitionIds": ["3000000005135"]
- }
- ]
- }