getWebHooks

get

/ccadmin/v1/webhooks

Get Web Hooks. Gets an array of webhooks.Response can be narrowed by a "serverType parameter". Each element of the returned array follows the format of that returned by getWebHook.

Request

Supported Media Types
  • application/json
Query Parameters
includeSecretKeys
Type: boolean
Whether to include the secret key.
serverType
Type: string
Only return WebHooks of the specified filter type.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getWebHooks_response
Nested Schema : basicAuthentication
Type: object
Map of username and password
Nested Schema : headers
Type: object
Map of header names and header values
Nested Schema : urls
Type: array
An array of strings of the target URLs for the WebHook.
Example application/json

[
    {
        "maxNumberOfResendAttempts":"5",
        "resendDelaySeconds":"3600",
        "headers":{
            "header1":"value1"
        },
        "urls":null,
        "secretKey":null,
        "displayName":"atg.service.webhook.Resources->webHookDisplayName_submitOrder",
        "serverType":"production",
        "name":"submitOrder",
        "id":"production-submitOrder",
        "applyResendDelayToFirstAttempt":"true",
        "basicAuthentication":{
            "admin":"admin"
        }
    },
    {
        "maxNumberOfResendAttempts":"5",
        "resendDelaySeconds":"3600",
        "headers":null,
        "urls":null,
        "secretKey":null,
        "displayName":"atg.service.webhook.Resources->webHookDisplayName_publishEvent",
        "serverType":"production",
        "name":"publishEvent",
        "id":"production-publishEvent",
        "applyResendDelayToFirstAttempt":"true",
        "basicAuthentication":null
    },
    {
        "maxNumberOfResendAttempts":"5",
        "resendDelaySeconds":"3600",
        "headers":null,
        "urls":null,
        "secretKey":null,
        "displayName":"atg.service.webhook.Resources->webHookDisplayName_submitOrder",
        "serverType":"publishing",
        "name":"submitOrder",
        "id":"publishing-submitOrder",
        "applyResendDelayToFirstAttempt":"true",
        "basicAuthentication":null
    },
    {
        "maxNumberOfResendAttempts":"5",
        "resendDelaySeconds":"3600",
        "headers":null,
        "urls":null,
        "secretKey":null,
        "displayName":"atg.service.webhook.Resources->webHookDisplayName_publishEvent",
        "serverType":"publishing",
        "name":"publishEvent",
        "id":"publishing-publishEvent",
        "applyResendDelayToFirstAttempt":"true",
        "basicAuthentication":null
    }
]
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

[
  {
    "maxNumberOfResendAttempts": "5",
    "resendDelaySeconds": "3600",
    "headers": {"header1": "value1"},
    "urls": null,
    "secretKey": null,
    "displayName": "atg.service.webhook.Resources->webHookDisplayName_submitOrder",
    "serverType": "production",
    "name": "submitOrder",
    "id": "production-submitOrder",
    "applyResendDelayToFirstAttempt": "true",
    "basicAuthentication": {"admin": "admin"}
  },
  {
    "maxNumberOfResendAttempts": "5",
    "resendDelaySeconds": "3600",
    "headers": null,
    "urls": null,
    "secretKey": null,
    "displayName": "atg.service.webhook.Resources->webHookDisplayName_publishEvent",
    "serverType": "production",
    "name": "publishEvent",
    "id": "production-publishEvent",
    "applyResendDelayToFirstAttempt": "true",
    "basicAuthentication": null
  },
  {
    "maxNumberOfResendAttempts": "5",
    "resendDelaySeconds": "3600",
    "headers": null,
    "urls": null,
    "secretKey": null,
    "displayName": "atg.service.webhook.Resources->webHookDisplayName_submitOrder",
    "serverType": "publishing",
    "name": "submitOrder",
    "id": "publishing-submitOrder",
    "applyResendDelayToFirstAttempt": "true",
    "basicAuthentication": null
  },
  {
    "maxNumberOfResendAttempts": "5",
    "resendDelaySeconds": "3600",
    "headers": null,
    "urls": null,
    "secretKey": null,
    "displayName": "atg.service.webhook.Resources->webHookDisplayName_publishEvent",
    "serverType": "publishing",
    "name": "publishEvent",
    "id": "publishing-publishEvent",
    "applyResendDelayToFirstAttempt": "true",
    "basicAuthentication": null
  }
]