Skip to content

Alerts: Slack, Teams and webhook

An alert tells your team, outside the application, about an event in the workspace: a non-compliant check, a finished batch, a new official return, a deadline, usage. The owner or an administrator sets the destinations in Settings › Alerts: a Slack channel, a Teams channel or a webhook address. A person’s notifications, in the application and by email, are set in My account › Notifications.

Two webhooks not to mix up

  • Criterion
    Where to set it
    Alert destination
    Settings › Alerts, with the Webhook channel.
    End-of-batch webhook
    Developers › Webhooks.
  • Criterion
    Who sets it
    Alert destination
    The owner and the administrators of the workspace.
    End-of-batch webhook
    The owner, the administrators and the developers of the workspace.
  • Criterion
    What it receives
    Alert destination
    The workspace’s alerts, according to the events you choose.
    End-of-batch webhook
    The notice that a batch has ended.
  • Criterion
    In the bulk upload
    Alert destination
    Not offered: no batch designates an alert destination.
    End-of-batch webhook
    Offered, by its name, when it is active.

To be called at the end of a batch, register the webhook in Developers › Webhooks: the guide “Webhooks: the end-of-batch notice” describes the call and its body.

Choose the channel and the address

A destination has a channel, a name of 80 characters at most, a receiving address and at least one event. The address stays secret: DSNLint no longer shows it after it is saved. It refuses an address that is not HTTPS, that carries credentials, or that leads to a local or private host, and a domain name that cannot be found.

  • Channel
    Slack
    The address to give
    The address of an Incoming Webhook, https://hooks.slack.com/services/…, created on api.slack.com/apps.
  • Channel
    Microsoft Teams
    The address to give
    The link of a Workflows flow, “Send webhook alerts to a channel” template, with no restriction on who can send. An address of the former Office 365 connector is refused: Microsoft retired it in May 2026.
  • Channel
    Webhook
    The address to give
    Any public HTTPS endpoint. Every delivery is signed with a secret, shown only once when you add the destination and each time you renew it.

The events sent

At least one event is required; “Non-compliant check” is ticked by default.

  • Event
    Non-compliant check
    When the alert is sent
    A check made on the application’s screen, on a file that is not an example, gives the “Non-compliant” verdict. A check through the API or in a batch triggers nothing.
  • Event
    Batch finished or failed
    When the alert is sent
    A batch of DSNs is finished, or some files were rejected.
  • Event
    New official return
    When the alert is sent
    An acknowledgement, an anomaly report or a statement has just been linked to a DSN.
  • Event
    Filing deadline
    When the alert is sent
    The filing deadline is approaching for establishments that have not been checked.
  • Event
    Usage
    When the alert is sent
    The month’s volume reaches 80% of the spending cap or the cap itself, or exceeds the plan’s included volume.
  • Event
    Actions in the workspace
    When the alert is sent
    The subscription, a Dedicated instance, an alert destination, a webhook, a check profile, the workspace name or its billing details change, a member joins the workspace or changes role, or an API key is revoked. A failed or overdue payment, a suspended subscription, a rejected invoice and a destination that refuses a delivery go only to the owner and the administrators, never to a team channel.

The message of a Webhook destination

A destination of the Webhook channel receives a POST with a JSON object: id (the event, the same on every retry; it is also the X-DSNLint-Evenement header), type, organisation (the workspace identifier), cree_a (the time of the event, in UNIX seconds) and donnees, which carries the workspace name, the numbers of the event and the link that opens DSNLint. “Test sending”, in the application, sends the same object with the type essai.

The signature, the timestamp and duplicates are verified as for an end-of-batch webhook: see the “Verify the signature” section of the guide “Webhooks: the end-of-batch notice”.

Delivery, refusal and grouping

  • An alert arrives within 5 minutes of the event.
  • If the destination does not answer, DSNLint tries again later. If it refuses the message (status 400, 403 or 404), it does not try again and the destination shows that refusal: check the address, then “Test sending”; a successful delivery clears the refusal.
  • For “Non-compliant check”, “Batch finished or failed”, “New official return” and “Filing deadline”, Slack, Teams and the “Right away” email get the first message at once; those that follow within the hour are sent together one hour after the first, in a single message that counts them. A Webhook destination gets every event.
No payroll data in an alert: never an NIR, an individual’s name or payroll data, only the kind of event, the workspace name, a few numbers and a link to open DSNLint. In a SecNumCloud instance, no alert or webhook is sent.
Webhooks: the end-of-batch notice
Previous section
First check with DSNLint Connect
Next section