List all webhook's endpoints

GET /webhooks

This endpoint retrieves all your webhooks.

Responses

  • 200 application/json

    List of webhooks

    Hide response attributes Show response attributes object
    • _id string

      Unique identifier of the webhook

    • URL to which the webhook will send the data

    • status string

      Status of the webhook

    • createdAt string(date-time)

      Creation date of the webhook

    • Secret token of the webhook

    • Unique identifier of the campaign associated with the webhook

    • types array[string]

      Types of events that trigger the webhook

  • Bad Request -- Your request is invalid.

  • Unauthorized -- Your API key is wrong.

  • Forbidden -- The object requested is hidden for administrators only.

  • Not Found -- The specified object could not be found.

  • Too Many Requests -- You're requesting too many objects! Slow down!

  • Internal Server Error -- We had a problem with our server. Try again later.

  • Service Unavailable -- We're temporarily offline for maintenance. Please try again later.

GET /webhooks
curl \
 -X GET https://api.usecollect.com/v1/webhooks
Response examples (200)
[
  {
    "_id": "HBsDeedGXx7BYbXwo",
    "status": "active",
    "createdAt": "2022-07-05T14:30:41Z",
    "targetUrl": "https://youserver.com/collect-hook",
    "secretToken": "gWg3fowgIgkc5KQvSojqWU"
  },
  {
    "_id": "mLASNBTu9n6vB6Zss",
    "types": [
      "docUploadedformSubmited"
    ],
    "status": "active",
    "createdAt": "2022-07-06T15:21:15Z",
    "targetUrl": "https://yourserver.com/collect-hook-two",
    "campaignId": "mYCsdgB4DQoENBaX6"
  }
]