# How to capture Incident payload from Bigpanda in Ansible AWX and print it

**URL:** <https://forum.ansible.com/t/how-to-capture-incident-payload-from-bigpanda-in-ansible-awx-and-print-it/6867>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [July 1, 2024, 10:39am UTC](https://forum.ansible.com/t/how-to-capture-incident-payload-from-bigpanda-in-ansible-awx-and-print-it/6867 "2024-07-01T10:39:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbulusu](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@bbulusu](https://forum.ansible.com/u/bbulusu)\
**Post date:** [July 1, 2024, 10:39am UTC](https://forum.ansible.com/t/how-to-capture-incident-payload-from-bigpanda-in-ansible-awx-and-print-it/6867/1 "2024-07-01T10:39:09Z")

</div>

Hello Ansible Experts,

I have integrated Bigpanda with Ansible AWX, please refer below documentation

> **[Custom Headers](https://docs.bigpanda.io/docs/custom-headers)**
>
> You can configure custom headers to provide additional information to payloads from an integration.

I am supposed to receive the Incident payload specified in below documentation in ansible awx when the AWX template is triggered from Bigpanda, however I am not able to retrieve the payload and print it .

> **[Webhook Incident Object](https://docs.bigpanda.io/reference/webhook-incident-object)**
>
> The schema for incidents sent through the notifications webhook.

I am using below sample playbook and triggering it from awx template . The template is triggered from Bigpanda,. Also prompt on launch has been enabled in template for variables  
"–

- name: Print Bigpanda payload  
hosts: localhost  
gather\_facts: no

The template and playbook is being triggered, however I am getting message as “incident undefined”, the payload is not being captured here

There is no way to modify the payload and keep it within extra\_vars in Bigpanda

Please suggest

---

<div class="post-metadata">

**Author:** ![Denney-tech](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/denney-tech/32/1556_2.png) [@Denney-tech](https://forum.ansible.com/u/Denney-tech)\
**Post date:** [July 1, 2024, 2:30pm UTC](https://forum.ansible.com/t/how-to-capture-incident-payload-from-bigpanda-in-ansible-awx-and-print-it/6867/2 "2024-07-01T14:30:30Z")

</div>

Assuming you are using a webhook from BigPanda to trigger the AWX Job Template, you will want to display the `awx_webhook_payload` variable. As a security measure, AWX nests _all_ payload data under this variable.

[https://ansible.readthedocs.io/projects/awx/en/latest/userguide/webhooks.html#payload-output](https://ansible.readthedocs.io/projects/awx/en/latest/userguide/webhooks.html#payload-output)

````yaml
---
# you can use "```" to format blocks of code like this
# I'm using "``` yaml" to enforce yaml syntax highlighing
# use "```" again to end the block
- name: Print Bigpanda payload
  hosts: localhost
  gather_facts: no

  tasks:
    - name: Print the entire payload
      debug:
      var: awx_webhook_payload

````
