API#
Each Instance has a built in API viewer which can be found by appending '/api/v2' to the end of the URL. Because we use Azure AD to auth you'll want to go to the main login page first and log in, the append '/api/v2', you'll example tower. Useful actions may include:
- Launch a job (job_templates/11/launch/)
- Get Results (/jobs/)
- Add Hosts (/hosts/)
The first thing you'll need to do is create a token (TLDR -- click on your name in the upper right corner > User Details > Tokens > ADD). Stash this token, you will never be able to retrieve it.
When constructing the API calls, use standard Bear Auth in the header:
Text Only
"Authorization": "Bearer <token>"