Get Webhook Details

Use this API to get webhook details such as webhook name, type, actions and authorization details if included.

Request Type

  • GET

Request URL

https://campaigns.zoho.com/emailapi/v2/settings/webhook/{webhook_id}

Content-Type

application/json

List of Response Body Attributes

ParametersData TypeDescription
webhookJSON ObjectContains all the details pertaining to the webhook.
created_timeStringTime at which webhook was created (in milliseconds).
is_activeBooleanReturns a true or false value indicating if the webhook is active or not.
webhook_actionsJSON ArrayThe action for which a webhook is called in your application.
typeStringDepicts the request type of the API. Example: POST, PUT, etc.
created_byStringName of the user from whose account webhook was created using API.
urlStringThe URL to which information about emails should be sent.
authorizationJSON Object

If provided, it will be used to make the call to your application, so that you can verify whether it is coming from the right sender.

➤ auth_type - 'Username' or 'Auth Token'

➤ auth_password - Required if auth_type is 'Username'

➤ auth_username - Required if auth_type is 'Username'

➤ auth_token - Required if auth type is 'Auth Token'

webhook_idStringUnique ID of a webhook that can be used in APIs.
nameStringName of the webhook.
custom_dataJSON ObjectAdditional information to be sent to your application as request data.
custom_headersJSON ObjectAdditional information to be sent to your application as request headers.
responseJSON ObjectContains the response details of the API.
codeIntegerSuccess or failure code.
messageStringSuccess or failure message returned by the API.

Sample Response - Success

Copied{
    "webhook": {
        "is_virtual": false,
        "created_time": "1675947040032",
        "is_active": true,
        "webhook_actions": [
            "bounce"
        ],
        "type": "POST",
        "created_by": "Zylker",
        "version": 2,
        "url": "https://zylker.com/bounceone",
        "authorization": {
            "auth_type": "Username",
            "auth_username": "zylker",
            "auth_password": "zylker",
            "auth_token": ""
        },
        "webhook_id": "5000000322042",
        "name": "Bounce new webhook",
        "field_list": {
            "5000000000029": "contact_email"
        },
        "custom_data": {
            "data": {
                "module": "workflow",
                "region": "EU"
            },
            "status": true
        },
        "custom_headers": {
            "headers": {
                "Webhook-Type": "Bounce"
            },
            "status": true
        }
    },
    "response": {
        "code": 200202,
        "message": "Successfully obtained the webhook details"
    }
}