Skip to main content

Deleting a webhook signature

Deleting a webhook signature​

Contents​

Overview​

  • Call name: delete-webhook-signature
  • Endpoint URL: https://{API hostname}/internal/delete-webhook-signature
  • Request methods: DELETE
  • Request Content-Type: application/x-www-form-urlencoded or application/json
  • Response Content-Type: application/json
  • Auth required: yes

This endpoint deletes a webhook signature key. Any webhook configurations that were using this signature key will no longer have HMAC signature verification applied to their payloads.

Version-specific information​

The following version-specific changes apply to this endpoint. See the versioning page for more details.

VersionChange details
N/AN/A

Permissions and Authentication​

This API call requires a valid Spaaza session. See the authentication page for more details. The session can be as follows:

  • Admin authentication: The performing user needs to be logged in and have delete access to the chain to which the webhook signature belongs.

Headers​

The following headers can/must be passed to the API call:

ParameterDescription
N/AN/A

HTTP Parameters​

The following HTTP parameters can be passed to the API:

ParameterDescription
id(integer, mandatory) The ID of the webhook signature key to delete.

Example response JSON​

The endpoint returns JSON showing the details of the deleted webhook signature key. An example response is shown below:

{
"result": {
"code": 1,
"status": "ok"
},
"results": {
"webhook_signature": {
"active": false,
"chain": {
"id": 1743,
"name": "ACME Retail"
},
"created_date": "2026-06-20T09:55:00+00:00",
"deleted": true,
"id": 56,
"last_modified_date": "2026-06-26T12:50:00+00:00",
"value": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
},
"result_type": "delete-webhook-signature"
}
}

Possible error responses​

CodeNameDescriptionHTTP Status
3http_vars_missingRequired parameter id is missing400
6no_valid_sessionNo valid session key provided or session has expired401
19http_request_method_non_DELETE_not_allowedOnly HTTP DELETE allowed for this API call405
68permission_denied_or_non_existentUser has insufficient permissions or the chain does not exist403
528webhook_signature_not_foundNo webhook signature key found for the specified ID404