Overview
This API creates an outgoing webhook in your Zoho Connect network. When this API is invoked, a validation post call (ping trigger) is sent to the URL end-point. That URL end-point must respond with a 200 OK message to confirm the creation of webhook. In case the end-point does not send a 200 OK message as a response the webhook will not be created.
API
POST /api/v1/webhook
Oauth Scope
ZohoPulse.outgoingwebhook.CREATE
Sample request
- $curl -X POST https://connect.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 Connect activities in a Zoho Cliq Channel",
- "triggers":[
- {
- "type":"Board_Created"
- },
- {
- "type":"Task_Assigned"
- },
- {
- "type":"User_Mentioned_In_Post",
- "partitionIds":["3000000005135"]
- },
- {
- "type":"Group_Mentioned_In_Post",
- "partitionIds":["3000000005135"]
- }
- ],
- "url":"https://cliq.zoho.com/api/v2/channelsbyname/zo
- hoconnect/message"
- }'
Sample response
- {
- "id": "3000000126027",
- "name": "Notify in Cliq",
- "active": "false",
- "autoRetry": "true",
- "createdTime": "1635755951141",
- "createdBy": "15521849",
- "description": "Notify important Connect activities in Zoho Cliq Channel",
- "url":"https://cliq.zoho.com/api/v2/channelsbyname/zo
- hoconnect/message",
- "triggers":[
- {
- "type": "Board_Created"
- },
- {
- "type": "Task_Assigned"
- },
- {
- "type": "User_Mentioned_In_Post",
- "partitionIds":["3000000005135"]
- },
- {
- "type": "Group_Mentioned_In_Post",
- "partitionIds": ["3000000005135"]
- }
- ]
- }