Manage webhooks

Update a webhook subscription

Update a webhook subscription

put/webhooks/{subscriptionId}

Request

  • Base URL
    https://api.superchat.com/v1.0
  • URL
    https://api.superchat.com/v1.0/webhooks/{subscriptionId}
  • Auth
    API key in header X-API-KEY

Path parameters

subscriptionIdstring required

Public ID of the webhook subscription.

Request body

target_urlstring required

The updated HTTPS target URL that should receive webhook deliveries

Response

OK

idstring required

The unique identifier of the webhook subscription

target_urlstring required

The HTTPS target URL that receives webhook deliveries

secretstring nullable required

The secret used to sign webhook deliveries

created_atstring date-time required
updated_atstring date-time required
urlstring

The URL of the webhook subscription resource

Example response

{
  "id": "wh_1aBMS9FKwvSDjljRJI1aZ",
  "created_at": "2022-03-10T16:15:50Z",
  "updated_at": "2022-03-10T16:15:50Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.