# Ansible Tower Job Output via api

**URL:** <https://forum.ansible.com/t/ansible-tower-job-output-via-api/26857>\
**Category:** Ansible Project\
**Created:** [February 27, 2018, 5:19am UTC](https://forum.ansible.com/t/ansible-tower-job-output-via-api/26857 "2018-02-27T05:19:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smitconsultant2017](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@smitconsultant2017](https://forum.ansible.com/u/smitconsultant2017)\
**Post date:** [February 27, 2018, 5:19am UTC](https://forum.ansible.com/t/ansible-tower-job-output-via-api/26857/1 "2018-02-27T05:19:51Z")

</div>

Hi

I am looking for a way to get output of ansible tower job. I was looking at rest Api v 2 and can see jobs and templates. The aim is to run the job in tower and if failed send the output in email as part of master playbook. I could not find out how to get output of the job currently running and how should I define it in my playbook at fail. I know you can find job output if you know job id and you can use tower/api/v2/jobs/job-id. Has anyone used this feature and know how can I achieve it? Thanks

Regards,
