# Ctx.payload variable to be used to send nodes and allocation API details

**URL:** <https://discuss.elastic.co/t/ctx-payload-variable-to-be-used-to-send-nodes-and-allocation-api-details/321041>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 12, 2022, 2:29pm UTC](https://discuss.elastic.co/t/ctx-payload-variable-to-be-used-to-send-nodes-and-allocation-api-details/321041 "2022-12-12T14:29:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)\
**Post date:** [December 12, 2022, 2:29pm UTC](https://discuss.elastic.co/t/ctx-payload-variable-to-be-used-to-send-nodes-and-allocation-api-details/321041/1 "2022-12-12T14:29:47Z")

</div>

Hello team,  
I need to send output of below two API in one email . Unable to find which variable used to send below data for below API. Can you please help me with this.

**GET \_cat/nodes?v=true&s=name** : ip heap.percent ram.percent cpu load\_1m load\_5m load\_15m node.role master name

**GET /\_cat/allocation?v=true&s=node** : shards disk.indices disk.used disk.avail disk.total disk.percent host ip node

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 9, 2023, 2:30pm UTC](https://discuss.elastic.co/t/ctx-payload-variable-to-be-used-to-send-nodes-and-allocation-api-details/321041/2 "2023-01-09T14:30:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
