Ansible Playbooks Job Templates API

The Job Templates API from Ansible Playbooks — 3 operation(s) for job templates.

Operations 4

GET /job_templates/ List job templates #
POST /job_templates/ Create a job template #
GET /job_templates/{id}/ Retrieve a job template #
POST /job_templates/{id}/launch/ Launch a job template #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ansible-playbooks-job-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ansible-playbooks-job-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ansible Automation Controller Playbooks Job Templates API
  version: '2'
  description: 'REST API for managing and executing Ansible playbooks via the Ansible

    Automation Controller (formerly Ansible Tower / AWX), the enterprise

    automation engine inside the Red Hat Ansible Automation Platform.'
  contact:
    name: Red Hat Ansible Support
    url: https://access.redhat.com/products/red-hat-ansible-automation-platform/
servers:
- url: https://{controller_host}/api/v2
  description: Self-hosted Ansible Automation Controller deployment
  variables:
    controller_host:
      default: controller.example.com
      description: Hostname of the Automation Controller instance.
security:
- OAuth2Token: []
- BasicAuth: []
tags:
- name: Job Templates
paths:
  /job_templates/:
    get:
      tags:
      - Job Templates
      summary: List job templates
      operationId: listJobTemplates
      responses:
        '200':
          $ref: '#/components/responses/ListResponse'
    post:
      tags:
      - Job Templates
      summary: Create a job template
      operationId: createJobTemplate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JobTemplate'
      responses:
        '201':
          description: Created.
  /job_templates/{id}/:
    get:
      tags:
      - Job Templates
      summary: Retrieve a job template
      operationId: getJobTemplate
      parameters:
      - $ref: '#/components/parameters/Id'
      responses:
        '200':
          description: A job template.
  /job_templates/{id}/launch/:
    post:
      tags:
      - Job Templates
      summary: Launch a job template
      operationId: launchJobTemplate
      parameters:
      - $ref: '#/components/parameters/Id'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                extra_vars:
                  type: object
                  additionalProperties: true
                limit:
                  type: string
                inventory:
                  type: integer
                credentials:
                  type: array
                  items:
                    type: integer
                job_tags:
                  type: string
                skip_tags:
                  type: string
      responses:
        '201':
          description: Job launched. Returns the created job.
components:
  schemas:
    JobTemplate:
      type: object
      required:
      - name
      - job_type
      - inventory
      - project
      - playbook
      properties:
        name:
          type: string
        description:
          type: string
        job_type:
          type: string
          enum:
          - run
          - check
        inventory:
          type: integer
        project:
          type: integer
        playbook:
          type: string
        credentials:
          type: array
          items:
            type: integer
        limit:
          type: string
        verbosity:
          type: integer
          minimum: 0
          maximum: 5
        extra_vars:
          type: string
        ask_variables_on_launch:
          type: boolean
        ask_limit_on_launch:
          type: boolean
        ask_tags_on_launch:
          type: boolean
    ListResponse:
      type: object
      properties:
        count:
          type: integer
        next:
          type: string
          nullable: true
        previous:
          type: string
          nullable: true
        results:
          type: array
          items:
            type: object
            additionalProperties: true
  responses:
    ListResponse:
      description: A paginated list response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ListResponse'
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: integer
  securitySchemes:
    OAuth2Token:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Personal or application OAuth2 access token.
    BasicAuth:
      type: http
      scheme: basic
      description: HTTP Basic authentication using local controller credentials.