CloudBees Job API

The Job API from CloudBees — 7 operation(s) for job.

Operations 8

GET /job/{name}/api/json Get job metadata
POST /job/{name}/build Trigger a build (no parameters)
POST /job/{name}/buildWithParameters Trigger a parameterized build
GET /job/{name}/{number}/api/json Get a specific build
GET /job/{name}/lastSuccessfulBuild/api/json Get last successful build of a job
GET /job/{name}/config.xml Get job configuration XML
POST /job/{name}/config.xml Update job configuration XML
POST /job/{name}/doDelete Delete job

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/cloudbees-job-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

cloudbees-job-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CloudBees CI REST API (Jenkins-compatible) Computer Job API
  description: 'CloudBees CI exposes the Jenkins remote-access REST API for inspecting and

    controlling jobs, builds, queues, and computers. Append `/api/json`,

    `/api/xml`, or `/api/python` to any URL on the controller to retrieve

    machine-readable metadata. Use the `tree` query parameter to limit the

    payload (recommended for performance). Authenticate with an API token via

    HTTP Basic Auth.

    '
  version: 1.0.0
servers:
- url: https://example.cloudbees.com
  description: CloudBees CI controller (replace with your JENKINS_URL)
security:
- basicAuth: []
tags:
- name: Job
paths:
  /job/{name}/api/json:
    get:
      summary: Get job metadata
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/Tree'
      - $ref: '#/components/parameters/Depth'
      responses:
        '200':
          description: Job metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
      tags:
      - Job
  /job/{name}/build:
    post:
      summary: Trigger a build (no parameters)
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      - name: token
        in: query
        schema:
          type: string
      responses:
        '201':
          description: Build queued
        '400':
          description: Bad request (job requires parameters)
      tags:
      - Job
  /job/{name}/buildWithParameters:
    post:
      summary: Trigger a parameterized build
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      - name: token
        in: query
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              additionalProperties:
                type: string
      responses:
        '201':
          description: Build queued
      tags:
      - Job
  /job/{name}/{number}/api/json:
    get:
      summary: Get a specific build
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      - name: number
        in: path
        required: true
        schema:
          type: integer
      - $ref: '#/components/parameters/Tree'
      responses:
        '200':
          description: Build metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Build'
      tags:
      - Job
  /job/{name}/lastSuccessfulBuild/api/json:
    get:
      summary: Get last successful build of a job
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/Tree'
      responses:
        '200':
          description: Build metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Build'
      tags:
      - Job
  /job/{name}/config.xml:
    parameters:
    - name: name
      in: path
      required: true
      schema:
        type: string
    get:
      summary: Get job configuration XML
      responses:
        '200':
          description: config.xml
          content:
            application/xml:
              schema:
                type: string
      tags:
      - Job
    post:
      summary: Update job configuration XML
      requestBody:
        required: true
        content:
          application/xml:
            schema:
              type: string
      responses:
        '200':
          description: Updated
      tags:
      - Job
  /job/{name}/doDelete:
    post:
      summary: Delete job
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Deleted
      tags:
      - Job
components:
  schemas:
    BuildSummary:
      type: object
      properties:
        number:
          type: integer
        url:
          type: string
    Job:
      type: object
      properties:
        _class:
          type: string
        name:
          type: string
        url:
          type: string
        builds:
          type: array
          items:
            $ref: '#/components/schemas/BuildSummary'
        lastBuild:
          $ref: '#/components/schemas/BuildSummary'
        lastSuccessfulBuild:
          $ref: '#/components/schemas/BuildSummary'
        buildable:
          type: boolean
    Build:
      type: object
      properties:
        _class:
          type: string
        number:
          type: integer
        result:
          type: string
        duration:
          type: integer
        timestamp:
          type: integer
        url:
          type: string
  parameters:
    Tree:
      name: tree
      in: query
      description: 'Tree filter for selecting and trimming response fields.

        Example: `jobs[name,url,color]`.

        '
      schema:
        type: string
    Depth:
      name: depth
      in: query
      schema:
        type: integer
        default: 0
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Jenkins username + API token