---
id: object/codeunit/6153
type: object
title: Codeunit 6153 "API Webhook Notification Mgt."
summary: Codeunit 6153 "API Webhook Notification Mgt." in Base Application (Microsoft.API.Webhooks). 14 public procedures, 4 events, 2 event subscribers. Present since at least BC23, still in BC30, changed in BC24, BC29.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "29"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 79fa4fcc2b968e7e3c7445126942464767728deca1fe819a0e7ab0a45f30e1e8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/API/Webhooks/APIWebhookNotificationMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/System/API/Webhooks/APIWebhookNotificationMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 6153
name: API Webhook Notification Mgt.
namespace: Microsoft.API.Webhooks
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 48
  events: 4
  subscribers: 2
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 5
  called_by: 2
  implements: 0
---

# Codeunit 6153 "API Webhook Notification Mgt."

> Codeunit 6153 "API Webhook Notification Mgt." in Base Application (Microsoft.API.Webhooks). 14 public procedures, 4 events, 2 event subscribers. Present since at least BC23, still in BC30, changed in BC24, BC29.

Base Application · Microsoft.API.Webhooks · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/API/Webhooks/APIWebhookNotificationMgt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |
| Permissions | TableData "API Webhook Subscription" = rimd, TableData "API Webhook Notification" = rimd, TableData "API Webhook Notification Aggr" = rimd |

## Events published

- `OnGetDelayTime(var Handled: Boolean; var Value: Integer)` (integration)
- `OnDeleteAPIWebhookNotifications(var ApiWebhookNotification: Record "API Webhook Notification"; var Success: Boolean)` (internal)
  - subscribers: [Codeunit 6153 "API Webhook Notification Mgt."](../codeunit/6153.md) HandleDeleteAPIWebhookNotification
- `OnGetDetailedLoggingEnabled(var Handled: Boolean; var Enabled: Boolean)` (integration)
- `OnCanCreateTask(var Handled: Boolean; var CanCreateTask: Boolean)` (integration)

## Event subscriptions

- HandleDeleteAPIWebhookNotification subscribes to Codeunit "API Webhook Notification Mgt." OnDeleteAPIWebhookNotifications
- HandleOnClearCompanyConfig subscribes to Codeunit "Environment Cleanup" OnClearDatabaseConfig

## Procedures

- `OnDatabaseInsert(var RecRef: RecordRef)`
- `OnDatabaseModify(var RecRef: RecordRef)`
- `OnDatabaseDelete(var RecRef: RecordRef)`
- `OnDatabaseRename(var RecRef: RecordRef; var xRecRef: RecordRef)`
- `GetDatabaseTableTriggerSetup(TableId: Integer; var OnDatabaseInsert: Boolean; var OnDatabaseModify: Boolean; var OnDatabaseDelete: Boolean; var OnDatabaseRename: Boolean)`
- `GetEntity(var APIWebhookSubscription: Record "API Webhook Subscription"; var ApiWebhookEntity: Record "Api Webhook Entity"): Boolean`
- `DeleteSubscription(var APIWebhookSubscription: Record "API Webhook Subscription")`
- `ForceDeleteAPIWebhookNotifications(var APIWebhookNotification: Record "API Webhook Notification")`
- `TryGetEntityKeyField(var APIWebhookSubscription: Record "API Webhook Subscription"; var ApiWebhookEntity: Record "Api Webhook Entity"; var RecRef: RecordRef; var FieldRef: FieldRef): Boolean`
- `ScheduleJob(EarliestStartDateTime: DateTime)`
- `CanScheduleJob(): Boolean` (internal)
- `IsDetailedLoggingEnabled(): Boolean`
- `Reset()`
- `GetMaxNumberOfJobs(): Integer`

Plus 28 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 5465 "Graph Mgt - General Tools"](../codeunit/5465.md) (4 calls: `GetDatabaseTableTriggerSetup → IsApiSubscriptionEnabled`, `GetRawFieldValue → GetIdWithoutBrackets`, `IsApiSubscriptionEnabled → IsApiSubscriptionEnabled`, …)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `CheckTableFilters → CreateInStream`, `CheckTableFilters → FromRecord`)
- [Codeunit 453 "Job Queue - Enqueue"](../codeunit/453.md) (1 call: `CreateJob → (object)`)
- [Codeunit 6723 "Server Setting"](../codeunit/6723.md) (1 call: `GetDelayTime → GetApiSubscriptionDelayTime`)
- [Codeunit 7200 "CDS Integration Mgt."](../codeunit/7200.md) (1 call: `GetSubscriptions → IsBusinessEventsEnabled`)

## Called by

- [Codeunit 6154 "API Webhook Notification Send"](../codeunit/6154.md) (24 calls: `CollectKeyFieldTypeBySubscriptionId → GetEntity`, `CollectKeyFieldTypeBySubscriptionId → IsDetailedLoggingEnabled`, `CollectKeyFieldTypeBySubscriptionId → TryGetEntityKeyField`, …)
- [Codeunit 49 "GlobalTriggerManagement"](../codeunit/49.md) (5 calls: `GetDatabaseTableTriggerSetup → GetDatabaseTableTriggerSetup`, `OnDatabaseDelete → OnDatabaseDelete`, `OnDatabaseInsert → OnDatabaseInsert`, …)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC29

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "API Webhook Notification Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
