---
title: "Understanding key-value pairs"
description: "Learn what key-value pairs are and how to use them with both standard and silent push notifications. Key-value pairs are custom data included with push notifications that allow you to trigger app behaviors, tag messages, customize notifications, and more."
canonical_url: "https://help.klaviyo.com/hc/en-us/articles/34331971195675"
markdown_url: "https://help.klaviyo.com/hc/en-us/articles/34331971195675.md"
locale: "en-us"
category: "Push Notifications"
section: "Send push notifications"
updated: "2026-11-06"
---

# Understanding key-value pairs

## You will learn

Learn what key-value pairs are and how to use them with both standard and silent push notifications. Key-value pairs are custom data included with push notifications that allow you to trigger app behaviors, tag messages, customize notifications, and more.

## What are key-value pairs?

Key-value pairs are custom data that can be included with push notifications, both standard (those that display to users) and silent (those that are invisible to users). The key is a name your app recognizes, and the value is the information you send for that key.

With both silent and standard notifications, they can be used to update app content, trigger background tasks, or to tag messages for reporting purposes. 

With standard push, they can also be used to build and populate custom push templates.

## How to use key-value pairs

In order to use key-value pairs, your app must be set up to recognize keys and respond to their values, so be sure to work with your app developer to ensure your app is built to support your use cases. Also, make sure you’ve set up push notifications for [iOS](https://help.klaviyo.com/hc/en-us/articles/360023213971.md) or [Android](https://help.klaviyo.com/hc/en-us/articles/14750928993307.md) in your Klaviyo account.

Fill in both fields for each pair, and use a different key for each pair. If you repeat a key, only the last value is saved.

1. When creating a push notification, open the **Content** tab and select **Standard** or **Silent** under **Type**.

2. Select the **Behaviors** tab and turn on **Custom data** if it is off. Selecting **Silent** turns it on automatically.

3. Enter a **Key** and **Value**. Click **Add** to include another pair. You can add up to 10 key-value pairs per push notification.

4. Save your changes. In a flow, click **Save & continue**. In a campaign, click **Next** or **Save and return**, depending on the editor.



![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/5c9f90a4685625cad15a7463e023db738ea1a100-934x438.png?auto=format)

Let’s look at an example for an ecommerce app:

- We want to update a customer’s reward points displayed in our app after they make an online purchase. We’ll do this by sending a silent push with a rewards points profile property as a key-value pair.

- We already have a *Thank you* flow triggered by a *Placed Order* event. We add a silent push to the end of this flow to update the rewards points value displayed in our app. 

- The silent push includes a key-value pair where the **Key** equals *rewardspoints* and the **Value** is set to *{{ person.rewardspoints }}*. The name of the Klaviyo profile property where we store these points is called *rewardspoints*, and our app is configured correctly to update based on this key-value pair.

- In this example, we made sure that the *rewardspoints* value was updated in Klaviyo before it was sent to our app via this flow, so that it reflects accurately. 



## Use cases

There are many use cases for key-value pairs, including to:

- **Personalize app content** 
You can send a silent push notification to personalize app content based on the recipient’s attributes (like the rewards points example above).

- **Create tags for reporting** 
You can include key-value pairs in push notifications (standard or silent) to “tag” messages and then pull data for any messages with specific tags to aggregate. For example, these tags could be UTM parameters.

- **Build custom push templates** 
You can define the font size and color for your push notification body or set a custom sound that will play when the push notification is delivered. Accounts can also display live data, such as the location of a delivery or a countdown until an offer expires, in their notification.



We recommend working with your app developer to build support for your specific use cases.

## Additional resources

- [Understanding silent push notifications](https://help.klaviyo.com/hc/en-us/articles/34331926591003.md)
  Learn what silent push notifications are and how to use them in your campaigns and flows, along with specific use cases. 

- [Push notification glossary](https://help.klaviyo.com/hc/en-us/articles/21997060301979.md)
  The glossary below defines common terms and acronyms for push notification marketing.
