Public API
Read your organization's runbooks from CI/CD pipelines, change-management tools and dashboards.
Overview
The API is read-only and returns JSON. Always call it over HTTPS. Each request is limited to the organization that owns the API key.
| Base URL |
|---|
/api/public/v1 |
Authentication
Send an organization API key as a bearer token on every request. Keys look like rbk_a1b2c3d4_….
Authorization: Bearer rbk_a1b2c3d4_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXManaging keys
Organization admins manage keys in Settings → Organization → API keys.
- Create: optionally give the key a name (otherwise it gets a random one) and an expiry date. The full key is shown once; copy it then.
- Rotate: issues a new key and revokes the old one immediately. Update the systems that use it right away. To rotate without downtime, create a second key, deploy it, then revoke the old one.
- Revoke: the key stops working at once. This cannot be undone.
An organization can have several active keys, for example one per integration.
Rate limits
Each key can make 60 requests per minute. Every response carries the standard RateLimit and RateLimit-Policy headers. Over the limit, the API returns 429 rate_limited with a Retry-After header in seconds.
List runbooks
/runbooksReturns runbooks sorted by planned execution date and time. With no parameters it returns the 5 most recent completed runbooks, latest first.
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 5 | Number of runbooks to return, 1–100. |
order | desc | asc | desc | Sort direction on planned execution date and time. Runbooks with no planned date always come last. |
status | comma-separated | completed | One or more of draft, frozen, in_progress, completed, cancelled, or all. |
Example request
curl "/api/public/v1/runbooks?limit=10&status=completed,in_progress" \
-H "Authorization: Bearer $RUNBOOK_API_KEY"Response
{
"data": [
{
"id": "8f1c2e4a-6b1d-4c3e-9a7f-2d5b8e0c1a34",
"title": "Payments gateway upgrade",
"change_id": "CHG0012345",
"description": "Upgrade the payments gateway to v5.2.",
"release_types": ["Major"],
"environments": ["PROD"],
"planned_execution_at": "2026-10-10T18:00:00.000Z",
"status": "completed",
"created_by": { "id": "3b0f…", "name": "Jane Doe" },
"created_at": "2026-09-30T08:12:44.000Z",
"completed_at": "2026-10-10T21:37:02.000Z"
}
],
"meta": { "count": 1, "limit": 5, "order": "desc", "status": ["completed"] }
}Runbook fields
| Field | Type | Description |
|---|---|---|
id | string (UUID) | Runbook ID. |
title | string | Runbook title. |
change_id | string | null | Change request ID, e.g. from ServiceNow. |
description | string | null | Free-text description. |
release_types | string[] | Any of Major, Minor, Hotfix, Patch, DR Drill, DR Pre Drill. |
environments | string[] | Any of DEV, PPE, SIT, Beta, PROD. |
planned_execution_at | string (ISO 8601, UTC) | null | Planned execution date and start time. |
status | string | draft, frozen, in_progress, completed or cancelled. |
created_by | object | null | Creator as { id, name }. |
created_at | string (ISO 8601) | When the runbook was created. |
completed_at | string (ISO 8601) | null | When execution finished. |
meta echoes the applied limit, order and status, and gives the number of items returned in count.
Errors
Errors use one shape. Branch on code; message is for humans and may change.
{
"error": {
"code": "invalid_parameter",
"message": "limit must not be greater than 100"
}
}| HTTP | code | Meaning |
|---|---|---|
| 400 | invalid_parameter | A query parameter is missing, unknown or out of range. details lists every problem when there is more than one. |
| 401 | missing_api_key | No Authorization: Bearer header. |
| 401 | invalid_api_key | Key is unknown, revoked or expired. |
| 403 | insufficient_scope | Key is not allowed to call this endpoint. |
| 403 | organization_inactive | The organization is deactivated. |
| 429 | rate_limited | Too many requests. Wait for Retry-After seconds. |
| 500 | internal_error | Unexpected server error. Safe to retry with backoff. |
Versioning
The version is in the path (/public/v1). Within v1 we only make additive changes, such as new fields or new optional parameters, so ignore fields you don't use. Breaking changes ship as a new version. A machine-readable OpenAPI spec is available for Postman and client generators.
AI apps (MCP)
Connect Claude or any other app that supports the Model Context Protocol to look up runbooks and start new drafts by chatting. No API key is needed: you sign in with your Runbook account.
| MCP server URL |
|---|
/api/mcp |
Connect
- Claude (web and desktop): Settings → Connectors → Add custom connector, then paste the server URL.
- Claude Code: run the command below, then
/mcpin a session to sign in. - Other clients: add a remote (Streamable HTTP) server with the URL above. The client handles sign-in through OAuth.
claude mcp add --transport http runbook /api/mcpSign in
- The app opens a Runbook page in your browser. Sign in if you aren't already.
- Pick the organization the app should work in (if you belong to more than one) and click Allow.
- You are sent back to the app, which is now connected.
The app acts as you, in that one organization, with your role there. Access ends when your account is deactivated or you leave the organization; otherwise the app stays signed in for up to 30 days of inactivity. To connect to another organization, remove the connector and add it again.
Tools
| Tool | What it does | Inputs |
|---|---|---|
list_runbooks | Lists runbooks sorted by planned execution date and time, with a link to each. | status (default all), limit (1–100, default 20), order (desc or asc) |
search_runbooks | Finds runbooks you can see, with task progress. Runbooks with no planned date match any date range. | optional query (title, description or change ID), status, date_from, date_to (YYYY-MM-DD), environment, release_type, limit (1–100, default 20) |
get_runbook | One runbook with its teams, tasks and rollback tasks: assignees, planned minutes, status and notes. | runbook_id |
get_runbook_progress | Live progress: tasks done, tasks running now and whether they are over time, the next task per team, planned vs actual minutes. | runbook_id |
my_tasks | Tasks assigned to you, with their team and runbook. | optional status, runbook_status, limit (1–200, default 50) |
create_draft_runbook | Creates a runbook in draft status. Admins only. | title, execution_date (YYYY-MM-DD), execution_start_time (HH:MM, Gulf Standard Time, UTC+4); optional description, environment (DEV, PPE, SIT, Beta, PROD), release_type (Major, Minor, Hotfix, Patch, DR Drill, DR Pre Drill) |
create_runbook_from_outline | Creates a draft with its teams and tasks in one go. Assignees must be active members; if one is not, nothing is created. Admins only. | as create_draft_runbook, plus optional change_id and teams (up to 30, each with name, optional start_offset_minutes or start_after_teams (names in the outline), and up to 100 tasks: description, process_time_minutes, downtime_minutes, assignee_email, is_rollback) |
update_draft_runbook | Changes the details of a draft. Only the fields given change. Nobody is emailed about a new schedule. Admins only. | runbook_id; any of title, description, change_id, execution_date, execution_start_time, environment, release_type |
add_team | Adds a team to the end of a draft runbook. Admins only. | runbook_id, name; optional description, start_offset_minutes or start_after_teams |
add_task | Adds a task to the end of a team in a draft. Numbered automatically (rollback tasks R1, R2, …). Admins only. | team_id, description; optional process_time_minutes, downtime_minutes, assignee_email, is_rollback |
update_team | Changes a team of a draft: name, description, or when it starts. Admins only. | team_id; any of name, description, start_offset_minutes (minutes after the runbook starts) or start_after_teams (team names or ids); setting one clears the other |
update_task | Changes a task of a draft. Only the fields given change. Admins only. | task_id; any of description, process_time_minutes, downtime_minutes, assignee_email, or unassign |
delete_task | Deletes a task from a draft. Cannot be undone. Admins only. | task_id |
delete_team | Deletes a team and all its tasks from a draft. Cannot be undone. Admins only. | team_id |
update_watchers | Adds or removes watchers by email until the runbook is completed or cancelled. Watchers must be active members; nobody is emailed. Admins only. | runbook_id; add_emails and/or remove_emails |
Try asking: “Show my next 5 runbooks”, “How is tonight's PROD release going?”, “What tasks do I have this week?”, “Add sam@example.com as a watcher on the PROD release” or “Turn this release plan into a draft runbook for 20 December at 22:00”.