API Endpoints
Complete reference for the BuildButler REST API — jobs, builds, analytics, and connections.
The BuildButler API is a RESTful JSON API. All endpoints are prefixed with
/api/v1.
Base URL
Jobs
List jobs
Query parameters:
| Parameter | Type | Description |
|---|---|---|
instance | string | Filter by Jenkins instance name |
folder | string | Filter by Jenkins folder path |
page | number | Page number (default: 1) |
per_page | number | Items per page (default: 25, max: 100) |
Response:
Get job details
Builds
List builds for a job
Query parameters:
| Parameter | Type | Description |
|---|---|---|
result | string | Filter by result: SUCCESS, FAILURE, UNSTABLE, ABORTED |
branch | string | Filter by branch name |
since | ISO 8601 | Builds after this timestamp |
until | ISO 8601 | Builds before this timestamp |
Get build details
Response:
Get build log
Returns the raw console output as text/plain.
Analytics
Aggregate metrics
Query parameters:
| Parameter | Type | Description |
|---|---|---|
range | string | 24h, 7d, 30d, or custom ISO range |
job | string | Filter to a specific job ID |
group_by | string | job, folder, label, or branch |
Response:
Export data
| Parameter | Type | Description |
|---|---|---|
format | string | csv, json, or png |
range | string | Time range |
job | string | Job filter |
Connections
List connections
Create a connection
Delete a connection
Error responses
All errors follow a consistent format:
| Status | Code | Description |
|---|---|---|
| 400 | bad_request | Invalid request parameters |
| 401 | unauthorized | Missing or invalid authentication |
| 403 | forbidden | Insufficient permissions |
| 404 | not_found | Resource not found |
| 429 | rate_limited | Too many requests |
| 500 | internal_error | Server error |