Hooks

Delete hook

Delete a hook with the Go SDK.

DEL/hooks/{hook_id}

Use client.Hooks.Delete to permanently remove a webhook by its ID.

Call the method

deleted, _, _ := client.Hooks.Delete(
	"hk_890bdbc4-467f-4670-8424-5667e41daf29",
)
FieldTypeDescription
hookIDstringID of the hook to delete.

Confirm the outcome

Check deleted.Message to confirm the hook was removed. Blnk will no longer call this endpoint on transactions.

Response

{
  "message": "hook deleted successfully"
}

Go response (*blnkgo.DeleteHookResponse)

FieldTypeDescription
MessagestringConfirmation that the hook was deleted.