> ## 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.

# Events

> Every event a partner account can be told about, when it happens, and whether it is also emailed

An event is something that happened to your partner account or to one of your customers. Widgetic tells your [webhook](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md) about it, and some events are also emailed and listed in your [notifications](https://docs.widgetic.com/docs/partners/notifications.md). Choose the events your webhook gets with `webhookEvents` in your [notification settings](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md#set-up-a-webhook).

Select an event to open its page in the API reference: the fields of its call, an example, and the answer Widgetic expects.

### Payments

Invoices and payments: the invoice of a billing period, and the ones you ask for to buy extra credits.

| Event | When it happens | Email |
| - | - | - |
| [`invoice.issued`](https://docs.widgetic.com/api-reference/events/invoice-issued) | Widgetic issued an invoice to you. | Always |
| [`invoice.due_soon`](https://docs.widgetic.com/api-reference/events/invoice-due-soon) | An invoice is due in three days, or today, and is not paid yet. | Always |
| [`invoice.overdue`](https://docs.widgetic.com/api-reference/events/invoice-overdue) | An invoice is unpaid three, seven and fourteen days after its due date. | Always |
| [`invoice.paid`](https://docs.widgetic.com/api-reference/events/invoice-paid) | An invoice was paid, by you or by an administrator on your behalf. | Always |
| [`invoice.failed`](https://docs.widgetic.com/api-reference/events/invoice-failed) | A payment for an invoice did not go through. The invoice stays open and can be paid again. | Always |

### Credits

Your credits running low, and a customer of yours using all of its monthly credits.

| Event | When it happens | Email |
| - | - | - |
| [`credits.low`](https://docs.widgetic.com/api-reference/events/credits-low) | The credits of your account are running out, or have run out. | Your choice |
| [`credits.managed_user_cap_reached`](https://docs.widgetic.com/api-reference/events/credits-managed-user-cap-reached) | One of your managed users used its monthly credit allowance and a request was refused. Told once per managed user each month. | Never |

### Your account

Your partner account being activated, paused or resumed, and your partnership coming to its end.

| Event | When it happens | Email |
| - | - | - |
| [`partner.activated`](https://docs.widgetic.com/api-reference/events/partner-activated) | Widgetic activated your partner account. | Always |
| [`partner.paused`](https://docs.widgetic.com/api-reference/events/partner-paused) | Your partner account was stopped, because Widgetic paused (suspended) it or because an invoice is past its due date and unpaid: your customers cannot see your widgets or make new ones. | Always |
| [`partner.resumed`](https://docs.widgetic.com/api-reference/events/partner-resumed) | Your partner account is active again, after Widgetic resumed it from a pause or after the overdue invoice was settled. | Always |
| [`partner.ending`](https://docs.widgetic.com/api-reference/events/partner-ending) | The partnership has an end date: told when the date is set or changed, again at 60, 30, 7 and 1 days before it, when the read-only wind-down starts and ends, and when the account closes. | Always |

### Storage

Your storage destination failing its check.

| Event | When it happens | Email |
| - | - | - |
| [`storage.check_failed`](https://docs.widgetic.com/api-reference/events/storage-check-failed) | Your storage destination failed its check, so files cannot be kept there. | Your choice |

### Customer activity

What your managed users do: compositions, widgets, uploads, entries and workflows. These events go to your webhook only: they are not emailed and not listed in your dashboard.

| Event | When it happens | Email |
| - | - | - |
| [`composition.created`](https://docs.widgetic.com/api-reference/events/composition-created) | A composition was created for one of your managed users. | Never |
| [`composition.updated`](https://docs.widgetic.com/api-reference/events/composition-updated) | A composition belonging to one of your managed users was saved. Told for the first save in each five minutes, for each composition. | Never |
| [`widget.published`](https://docs.widgetic.com/api-reference/events/widget-published) | A widget belonging to one of your managed users was published. | Never |
| [`upload.created`](https://docs.widgetic.com/api-reference/events/upload-created) | A file upload for one of your managed users finished. | Never |
| [`entry.created`](https://docs.widgetic.com/api-reference/events/entry-created) | A visitor saved an entry in one of your managed users' compositions. | Never |
| [`workflow.created`](https://docs.widgetic.com/api-reference/events/workflow-created) | A workflow was created for one of your managed users: new, copied from another of theirs, or started from one of your starting points (presetKey says which). | Never |
| [`workflow.published`](https://docs.widgetic.com/api-reference/events/workflow-published) | A workflow belonging to one of your managed users was published as a new version. A paused workflow stays paused. | Never |
| [`workflow.state_changed`](https://docs.widgetic.com/api-reference/events/workflow-state-changed) | A workflow belonging to one of your managed users was paused, resumed, archived or unarchived. | Never |
| [`workflow.deleted`](https://docs.widgetic.com/api-reference/events/workflow-deleted) | A workflow belonging to one of your managed users was deleted, in whatever state it was, with its versions and counts. | Never |

## How the events behave

* **Each event is told once.** An invoice that the payment provider reports twice, or a reminder that is checked again, does not reach you twice. A retry of one event carries the same `id`: see [Answer and retries](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md#answer-and-retries).
* **Money and the standing of your account are never silent.** The events marked **Always** are emailed whatever you choose, and you can narrow only what your own system receives. The events marked **Your choice** are emailed unless you leave them out of `emailEvents`.
* **The events about your customers are for your webhook only.** They are not emailed and not in the dashboard list, so a busy account is not flooded.
* **An event carries facts, not content.** `composition.updated` does not carry the composition and the workflow events carry no graph: read it with the API when you need its current state. `entry.created` carries none of the values a visitor entered.
* **The workflow events** are about the workflows your customers make, with the [Workflows screen](https://docs.widgetic.com/docs/partners/ui-components/workflows.md) in an editor session or with your key and their header. A workflow you make yourself, in your own account, is not told, and neither is a save or a read.
* **Widgetic adds events from time to time.** Ignore an event type your code does not know: answer `2xx` and drop it.

A workspace that is not a partner has no webhook for its own invoices, credits or widgets. It can be called when a visitor sends an entry: see [MCP events](https://docs.widgetic.com/docs/webhooks/mcp-events.md).


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