To Generate a Public Key
Description:
You can use this API to generate a public key for webhooks in your portal. The Maximum number of public keys allowed is 2, and the oldest key will be in use always.
OAuth Scope:
SalesIQ.webhooks.CREATE
URL:
Copiedhttps://{[zohosalesiq_server_uri](https://www.zoho.com/salesiq/help/developer-section/rest-api-v2.html)}/api/v2/{screenname}/webhooks/{id}/keys
Example
Copiedhttps://salesiq.zoho.com/api/v2/{screenname}/webhooks/19367000000002079/keys
Sample Response:
Copied{
"url": "/api/v2/{screenname}/webhooks/19367000000002079/keys",
"object": "webhook",
"data": {
"modified_time": "1566841793192",
"url": "https://zylker.com/webhooks.ext",
"expiry_time_for_executions_data": "180000000",
"id": "19367000000120011",
"modifier": {
"id": "19367000000002079"
},
"creator": {
"id": "19367000000002079"
},
"status": "enabled",
"failures_count": "0",
"secured": true,
"app_ids": [
"19367000000002043"
],
"version": 1,
"type": "data",
"public_keys": [
{
"key": "45678998765",
"creator": {
"id": "19367000000002079"
},
"created_time": "1566676375915",
"id": "1566676375915"
}
],
"created_time": "1566676375741",
"events": [
"conversation.created",
"conversation.missed",
"conversation.visitor.replied",
"conversation.operator.replied",
"conversation.rated"
]
},
"sync_time": "1566888552910"
}