For Agents
Trigger builds, manage pipelines, and inspect agents inside a Buildkite organisation across 18 REST endpoints.
Get started with Buildkite API in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"trigger a Buildkite build"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with Buildkite API API.
List, create, update, and delete pipelines inside a Buildkite organisation
Trigger a new build on a pipeline with a commit SHA, branch, and message
List builds across the whole account, an organisation, or a single pipeline
Cancel an in-flight build or rebuild a previously completed build
GET STARTED
Use for: I need to trigger a Buildkite build on the main branch, Cancel a Buildkite build that is stuck, List all pipelines inside my Buildkite organisation, Rebuild a previous Buildkite run after a flaky failure
Not supported: Does not handle build artefact storage, agent installation on hosts, or test result reporting — use for managing pipelines, triggering and inspecting builds, and listing agents only.
Jentic publishes the only available OpenAPI document for Buildkite API, keeping it validated and agent-ready.
Jentic publishes the only available OpenAPI specification for Buildkite API, keeping it validated and agent-ready. Buildkite is a CI/CD platform that runs build jobs on customer-controlled agents while providing a hosted control plane for organisations, pipelines, builds, and self-hosted agents. The v2 REST API covers the operator surface: listing and managing pipelines, triggering and cancelling builds, rebuilding past runs, and inspecting connected agents. Use it to script pipeline provisioning, kick off ad-hoc deploys, surface build status in a custom dashboard, or wire CI events into chat and incident tools.
List connected agents and stop a specific agent gracefully
Read organisation metadata and the current authenticated user profile
Inspect a specific build by pipeline slug and build number
Patterns agents use Buildkite API API for, with concrete tasks.
★ ChatOps Deploy Triggers
Let engineers trigger releases from Slack with a slash command. The agent translates the command into a POST /organizations/{org_slug}/pipelines/{pipeline_slug}/builds call, supplies the branch and commit, and replies with the build URL. Combined with the cancel and rebuild endpoints it covers the full deploy controls without anyone touching the dashboard.
Trigger a build on the deploy-prod pipeline at branch main with commit SHA abc123 and message Manual deploy from Slack.
Pipeline Provisioning at Scale
Create Buildkite pipelines programmatically when new repositories are onboarded. POST /organizations/{org_slug}/pipelines accepts pipeline YAML and repository URL so a script can spin up CI for every new service. Pair it with PATCH to update steps as the standard pipeline template evolves across the organisation.
Create a Buildkite pipeline named payments-service in the example-org organisation, pointing at github.com/example/payments-service with the standard build steps.
Build Health Dashboard
Power a custom dashboard that surfaces flaky pipelines and long-running builds. Poll GET /organizations/{org_slug}/builds with state filters, group by pipeline, and compute pass rate and median duration. Use the rebuild endpoint to retry suspected flakes automatically and tag the rebuild reason in the message.
List all builds in the last 24 hours, group by pipeline, and post the top 3 pipelines with the most failures to a Slack channel.
AI Agent Release Captain via Jentic
An on-call agent connected via Jentic can act as a release captain — triggering builds, cancelling ones that fail review, and confirming the rebuild succeeded. The agent searches Jentic for trigger a build, loads the POST .../builds schema, and executes against the operator's vault-stored Buildkite token without ever exposing the secret.
Search Jentic for trigger a Buildkite build, load the schema, execute it for pipeline deploy-prod on branch main, and poll until the build state is passed or failed.
18 endpoints — jentic publishes the only available openapi specification for buildkite api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/organizations/{org_slug}/pipelines/{pipeline_slug}/builds
Create a build
/organizations/{org_slug}/pipelines/{pipeline_slug}/builds/{build_number}/cancel
Cancel a build
/organizations/{org_slug}/pipelines/{pipeline_slug}/builds/{build_number}/rebuild
Rebuild a build
/organizations/{org_slug}/pipelines
Create a pipeline
/organizations/{org_slug}/builds
List builds in an organisation
/organizations/{org_slug}/agents
List agents
/organizations/{org_slug}/agents/{agent_id}
Stop an agent
/organizations/{org_slug}/pipelines/{pipeline_slug}/builds
Create a build
/organizations/{org_slug}/pipelines/{pipeline_slug}/builds/{build_number}/cancel
Cancel a build
/organizations/{org_slug}/pipelines/{pipeline_slug}/builds/{build_number}/rebuild
Rebuild a build
/organizations/{org_slug}/pipelines
Create a pipeline
/organizations/{org_slug}/builds
List builds in an organisation
Three things that make agents converge on Jentic-routed access.
Credential isolation
Your Buildkite API access token is stored encrypted in the Jentic vault. Agents never see the raw token — Jentic injects the Authorization header at execution time and returns only the API response.
Intent-based discovery
Agents search Jentic with intents like trigger a build or cancel a build, and Jentic returns the matching Buildkite operations with full input schemas, so the agent calls the right endpoint without browsing docs.
Time to first call
Direct Buildkite integration: half a day for token handling, build polling, and webhook setup. Through Jentic: under 30 minutes — search, load, execute.
Alternatives and complements available in the Jentic catalogue.
CircleCI API
CircleCI is a hosted CI/CD platform that runs jobs on its own infrastructure, while Buildkite runs jobs on customer-controlled agents.
Choose CircleCI when you want fully managed CI without running your own agent fleet; choose Buildkite when you need build jobs to run on your own machines.
Bugsnag API
Bugsnag captures runtime errors in builds Buildkite has shipped to production.
Use Bugsnag with Buildkite to correlate stability dips after a release back to the build that introduced them.
Bugfender API
Bugfender captures device logs from mobile builds shipped via Buildkite pipelines.
Pair Buildkite with Bugfender when shipping mobile apps to trace runtime log evidence back to a specific build.
Specific to using Buildkite API API through Jentic.
Why is there no official OpenAPI spec for Buildkite API?
Buildkite documents its REST API in human-readable form but does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call Buildkite API via structured tooling. It is validated against the live API and kept up to date. Get started at https://app.jentic.com/sign-up.
What authentication does the Buildkite API use?
Buildkite uses HTTP bearer authentication with an API access token generated from your personal settings. Each request must include Authorization: Bearer <token>. Through Jentic, the token is stored encrypted in the vault and the header is constructed at execution time.
Can I trigger a Buildkite build through the API?
Yes. POST /organizations/{org_slug}/pipelines/{pipeline_slug}/builds creates a new build with parameters for branch, commit SHA, message, and environment variables. The response includes the build number and URL so you can poll its status afterwards.
Can I cancel or rebuild a Buildkite build through the API?
Yes. PUT /organizations/{org_slug}/pipelines/{pipeline_slug}/builds/{build_number}/cancel cancels an in-flight build, and PUT on the same path with /rebuild retries a completed build. Both return the updated build resource.
What are the rate limits for the Buildkite API?
Buildkite enforces per-token rate limits that are not encoded in the OpenAPI spec. Add retry-with-backoff for HTTP 429 responses and avoid tight polling on the builds endpoints — prefer webhooks for build state change notifications when possible.
How do I trigger a Buildkite build from an AI agent through Jentic?
Run pip install jentic and authenticate with your ak_* key. Search Jentic with trigger a Buildkite build, load the POST .../builds operation, and execute it with org_slug, pipeline_slug, branch, and commit. Jentic injects the bearer token from your stored credential.
/organizations/{org_slug}/agents
List agents
/organizations/{org_slug}/agents/{agent_id}
Stop an agent