Testing Your Webhook Subscription

Use this endpoint to test and validate your subscription to a partner webhook topic.

NOTE: This partner-only endpoint uses basic authentication as documented on this page.

Methods:

Click a method to view its documentation

POST

DescriptionTOP

Make a POST API call to this endpoint to trigger a webhook to be sent to your previously configured callback URL.  Note that unlike many other POST calls, there is no payload required for this call.

Example data will be sent to your callback URL if it has been set up. The response for this test call will echo that from your callback URL. If a subscription hasn't been set up, you'll receive an error when calling this endpoint.

POST: https://api.constantcontact.com/v2/webhooks/partner/topics/{topicId}/test

Response CodesTOP

code

description

200

Request was successful

400

Not subscribed to topic or topicId doesn't exist

401

Authentication failure

404

The specified topicId doesn't exist or the request URI is wrong

500

Internal server error occurred

Response StructureTOP

property

type(max length)

description

callbackResponseBody

string

The response message body we received

callbackResponseCode

string

The response code we received

callbackUrl

string

The URL that is subscribed to receive webhooks

Example ResponseTOP

{ 
  "callbackUrl": "https://my.host.com/webhooks", 
  "callbackResponseCode": 200, 
  "callbackResponseBody": "The message body your server replied with" 
}