---
title: Template variables
description: Find the Notification Center payload schema for alerts and Cases, where routers, presets, and connectors use it, and how to inspect a live payload.
url: https://coralogix.com/docs/user-guides/notification-center/template-variables/
product: notifications
feature: Notification Center
feature_id: notification-center
feature_identifier: notifications/notification-center
last_updated: '2026-11-25'
---

# Template variables

Every notification carries a payload: the data Notification Center renders your templates against. The payload depends on what sent the notification, an alert or a Case. This page shows where each part of the payload schema is documented, and where you can use it.

## Where you use template variables

| Where                   | What the template does                                                                     | Learn more                                                                                                         |
| ----------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| Routing rule conditions | Decide which destinations a notification goes to, for example `alertDef.priority == "P1"`. | [Condition templating](https://coralogix.com/docs/user-guides/notification-center/routing/condition-templating.md) |
| Presets                 | Build the message body, such as a Slack message, an email, or an HTTPS request body.       | [Presets](https://coralogix.com/docs/user-guides/notification-center/presets/introduction.md)                      |
| Connector fields        | Fill templated connector fields, such as a Slack channel or an email recipient.            | [Connectors](https://coralogix.com/docs/user-guides/notification-center/connectors.md)                             |

All three use the same variables and [Tera syntax](https://coralogix.com/docs/user-guides/notification-center/dynamic-templating/tera-syntax.md).

## Payload schema by entity type

| Namespace                            | Alerts | Cases | What it holds                                                              | Reference                                                                                                                                           |
| ------------------------------------ | ------ | ----- | -------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `alertDef.*`                         | Yes    | No    | The alert definition: name, priority, labels, type-specific configuration. | [Alert payload reference](https://coralogix.com/docs/user-guides/notification-center/entity-types/alerts.md#alertdef-the-alert-definition)          |
| `alert.*`                            | Yes    | No    | The alert event and its groups.                                            | [Alert payload reference](https://coralogix.com/docs/user-guides/notification-center/entity-types/alerts.md#alert-the-alert-event)                  |
| `case.*`                             | No     | Yes   | The Case: title, status, priority, assignee, indicators, links.            | [Case payload reference](https://coralogix.com/docs/user-guides/notification-center/entity-types/cases.md#case-the-case-object)                     |
| `caseMetadata.*`                     | No     | Yes   | Why the Case notified now, and what changed.                               | [Case payload reference](https://coralogix.com/docs/user-guides/notification-center/entity-types/cases.md#casemetadata-why-this-notification-fired) |
| `_context.*`                         | Yes    | Yes   | The envelope: entity type and subtype, routing labels, team, trigger.      | [Global context](https://coralogix.com/docs/user-guides/notification-center/dynamic-templating.md#global-context-available)                         |
| `correlationKey`, `name`, `priority` | Yes    | Yes   | Flat shortcuts for deduplication keys and titles.                          | Each payload reference                                                                                                                              |

A router or preset that handles both entity types can rely only on `_context.*` and the top-level shortcuts. Reading `alert.*` in a Case notification, or `case.*` in an alert notification, fails the render. Branch on `_context.entityType` first.

Labels have different shapes in different namespaces. See [Label data shapes](https://coralogix.com/docs/user-guides/notification-center/dynamic-templating.md#label-data-shapes-alerts-vs-cases).

## Inspect a live payload

The references describe every field, but a given notification carries only the fields that apply to it. To see the exact payload for one alert or Case:

1. Open a draft preset.

2. Put this in the message body:

   ```
   {{ get_context() | json_encode(pretty=true) }}
   ```

3. Read the preview.

## Related resources

* [Dynamic templating](https://coralogix.com/docs/user-guides/notification-center/dynamic-templating.md)
* [Tera usage](https://coralogix.com/docs/user-guides/notification-center/dynamic-templating/tera-usage.md)
* [Webhook field mapping](https://coralogix.com/docs/user-guides/notification-center/migration/webhook-field-mapping.md)
