> ## Documentation Index
> Fetch the complete documentation index at: https://docs.widgetic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Notifications

> What Widgetic tells you about your account, by email, in your dashboard and as signed calls to your own system

Widgetic tells you what happens to your partner account: an invoice, a payment, credits running low, a pause or a stop, the last day of your partnership. The same event reaches you in up to three places, and what you see in each one is the same facts:

* **Email**, to the addresses you choose.
* **Your dashboard**, as a list (see [Partner Dashboard](https://docs.widgetic.com/docs/partners/dashboard.md)). The API returns the same list.
* **Your own system**, as a signed `POST` to an address you set (a [webhook](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md)), so that your code can act on it: mark an invoice paid, warn your team that credits are low.

[Events](https://docs.widgetic.com/docs/webhooks/events.md) lists every event, when it happens, and whether it is emailed. The [integration guide](https://docs.superhuman.com/d/_do4kTYR8IRR/_sufIff3d) covers webhooks and partner notifications in section 4, and how a failed delivery is retried in [section 11](https://docs.superhuman.com/d/_do4kTYR8IRR/_su6FYM6T).

## What a notification holds

Every notification has a `title` (one line), a `body` (a few sentences that say what happened and what to do about it), a `tone` (`info`, `success`, `warning` or `error`) and its facts in `data`, named in camelCase.

What is in `data` depends on the event. Each event has a page in the API reference with its fields and an example: for instance [`invoice.paid`](https://docs.widgetic.com/api-reference/events/invoice-paid), [`credits.low`](https://docs.widgetic.com/api-reference/events/credits-low) and [`partner.paused`](https://docs.widgetic.com/api-reference/events/partner-paused).

## Read your notifications

`GET /partners/{partnerId}/notifications` lists them, the newest first. A page holds `limit` notifications (20 by default, at most 100). When there are older ones, `nextBefore` is set: ask again with it as `before`.

```bash theme={"theme":"css-variables"}
curl -sS -H "Authorization: Bearer $WIDGETIC_PARTNER_KEY" \
  "https://api.widgetic.com/v1/partners/$WIDGETIC_PARTNER_ID/notifications?limit=20"
```

```json theme={"theme":"css-variables"}
{
  "success": true,
  "data": {
    "notifications": [
      {
        "id": "0f3c9a52-7d41-4e86-b0a3-5c1d2e3f4a5b",
        "type": "invoice.overdue",
        "title": "Invoice 2026-0042 is 7 days overdue",
        "body": "Invoice 2026-0042 for USD 1,190.00 was due on 31 October 2026 and has not been paid. Please pay it as soon as you can. If you paid in the last few days, you can ignore this message. Until it is paid, your partner account is stopped: your customers cannot see your widgets or make new ones. Billing and invoices stay available, and everything comes back as soon as the payment is received.",
        "tone": "warning",
        "data": {
          "invoiceNumber": "2026-0042",
          "subtotal": 1000,
          "taxAmount": 190,
          "total": 1190,
          "currency": "USD",
          "dueDate": "2026-10-31T00:00:00.000Z",
          "hostedInvoiceUrl": "https://invoice.stripe.com/i/acct_example/test_example",
          "purpose": "contract",
          "daysOverdue": 7
        },
        "createdAt": "2026-11-07T08:00:04.000Z"
      }
    ],
    "nextBefore": null
  }
}
```

Reading needs the `partner:read` scope when your key is limited to some scopes (see [Authentication](https://docs.widgetic.com/docs/authentication.md#limit-what-a-key-can-do)).

## Choose where they go

`GET /partners/{partnerId}/notifications/settings` returns where your notifications go now, and `events`, every kind of event there is, for a settings screen. `PUT` on the same address changes it. A key you leave out of the body stays as it was, so send only what changes.

```bash theme={"theme":"css-variables"}
curl -sS -X PUT "https://api.widgetic.com/v1/partners/$WIDGETIC_PARTNER_ID/notifications/settings" \
  -H "Authorization: Bearer $WIDGETIC_PARTNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "emailRecipients": ["finance@yourcompany.com", "ops@yourcompany.com"],
    "emailEvents": ["credits.low", "storage.check_failed"],
    "webhookUrl": "https://yourcompany.com/widgetic/events",
    "webhookEvents": null
  }'
```

| Field | What it does |
| - | - |
| `emailRecipients` | The addresses the emails go to, at most five. While the list is empty, the emails about invoices go to the billing emails of your billing profile (your contact email when there are none), and the others to your contact email |
| `emailEvents` | The events you want by email. `null` means every event. It narrows the events marked **Your choice** in [Events](https://docs.widgetic.com/docs/webhooks/events.md); the others are emailed whatever it says |
| `webhookUrl` | Where the signed calls go. `null`, or an empty text, switches the webhook off. See [Partner webhooks](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md#set-up-a-webhook) |
| `webhookEvents` | The events sent to your webhook. `null` means every event, those about your managed users included and those added later. A list names exactly the events you get, so add a new event to it to receive it |

Changing the settings needs an API key with full access, because they decide where your notifications go. Reading them does not.

The first time you set a webhook address, the answer carries the signing secret. [Partner webhooks](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md) shows what a call looks like, how it is answered and tried again, and how to rotate the secret.

In your dashboard, the Notifications tab has the same controls: under the webhook settings, a **Send a test event** box sends the event you choose to your saved address and says in words what your receiver answered and what to try (see [Send a test event](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md#send-a-test-event)), and every webhook delivery in the list has a **Send again** button (the replay described below).

## See what was sent

`GET /partners/{partnerId}/notifications/deliveries` lists the sends of your notifications, the newest first: each email to one address and each call to your webhook. It tells you whether it was delivered, when it is tried again, how many attempts it had, the HTTP status your webhook answered with, and why the last attempt failed. Use it to find out why an event did not reach you.

```json theme={"theme":"css-variables"}
{
  "success": true,
  "data": {
    "deliveries": [
      {
        "deliveryId": "6a1b2c3d-4e5f-4a7b-8c9d-0e1f2a3b4c5d",
        "notificationId": "0f3c9a52-7d41-4e86-b0a3-5c1d2e3f4a5b",
        "eventType": "invoice.overdue",
        "title": "Invoice 2026-0042 is 7 days overdue",
        "channel": "webhook",
        "target": "yourcompany.com",
        "status": "pending",
        "attemptCount": 2,
        "nextAttemptAt": "2026-11-07T08:35:04.000Z",
        "lastAttemptAt": "2026-11-07T08:05:04.000Z",
        "deliveredAt": null,
        "lastStatusCode": 502,
        "lastError": "status 502",
        "createdAt": "2026-11-07T08:00:04.000Z",
        "replayOfDeliveryId": null
      }
    ]
  }
}
```

`status` is `pending`, `delivered`, `failed` or `cancelled`. `target` is the address of an email, or only the **host** of your webhook, because the whole address may hold a token. `lastError` is a few words from Widgetic, never what your endpoint replied.

An email counts as delivered when it was handed to the mail service. A webhook call counts as delivered when your endpoint answered `2xx`.

To send one webhook delivery again, for example after you fixed your receiver, call `POST /partners/{partnerId}/notifications/deliveries/{deliveryId}/replay`, with an `Idempotency-Key`. It sends the event to your **current** address with the same `webhook-id` as the original, so a receiver that remembers ids can ignore a duplicate, with a new `createdAt` and a signature made with your current secret. The attempt is recorded as a new row that points at the delivery you replayed. A handful of replays a minute is enough for this, and more are refused with `429`. It needs an API key with full access.

## Errors

| Status | Code | When | What to do |
| - | - | - | - |
| 400 | `INVALID_NOTIFICATION_SETTINGS` | A setting is refused: the webhook address does not meet the [rules](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md#set-up-a-webhook), or there are more than five email recipients. `details.problems` lists what is wrong | Correct it |
| 400 | `VALIDATION_FIELD_INVALID` or `VALIDATION_FIELD_REQUIRED` | A field has the wrong form, for example an event name that does not exist, or the `Idempotency-Key` of a replay is missing | Correct it. `param` names the field |
| 403 | `API_KEY_SCOPE_MISSING` | Your key is limited to some scopes and the call needs more (changing settings, rotating the secret and replaying need full access) | Use a key with full access |
| 409 | `BUSINESS_STATE_CONFLICT` | The replay cannot be sent now, for example because no webhook address is set | Check the settings |
| 503 | `WEBHOOK_SIGNING_UNAVAILABLE` | This server cannot sign webhooks yet (`webhookSigningAvailable` is `false` in the settings) | Write to [the support team](https://docs.widgetic.com/docs/introduction.md#need-help). Email and the dashboard list work meanwhile |

> [card] [Partner webhooks](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md)
>
> Set an address, answer a call, rotate the secret

> [card] [Credits & Billing](https://docs.widgetic.com/docs/partners/credits-billing.md)
>
> How invoices, tax and reminders work

> [card] [Account Status](https://docs.widgetic.com/docs/partners/account-status.md)
>
> Activation, pauses, unpaid invoices and what each one stops


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.