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_….

Header
Authorization: Bearer rbk_a1b2c3d4_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Treat API keys like passwords. Call the API from your servers only, keep keys in a secret manager, and never put them in browser code, mobile apps or source control.

Managing 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

GET/runbooks

Returns runbooks sorted by planned execution date and time. With no parameters it returns the 5 most recent completed runbooks, latest first.

Query parameters

ParameterTypeDefaultDescription
limitinteger5Number of runbooks to return, 1–100.
orderdesc | ascdescSort direction on planned execution date and time. Runbooks with no planned date always come last.
statuscomma-separatedcompletedOne or more of draft, frozen, in_progress, completed, cancelled, or all.

Example request

curl
curl "/api/public/v1/runbooks?limit=10&status=completed,in_progress" \
  -H "Authorization: Bearer $RUNBOOK_API_KEY"

Response

200 OK
{
  "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

FieldTypeDescription
idstring (UUID)Runbook ID.
titlestringRunbook title.
change_idstring | nullChange request ID, e.g. from ServiceNow.
descriptionstring | nullFree-text description.
release_typesstring[]Any of Major, Minor, Hotfix, Patch, DR Drill, DR Pre Drill.
environmentsstring[]Any of DEV, PPE, SIT, Beta, PROD.
planned_execution_atstring (ISO 8601, UTC) | nullPlanned execution date and start time.
statusstringdraft, frozen, in_progress, completed or cancelled.
created_byobject | nullCreator as { id, name }.
created_atstring (ISO 8601)When the runbook was created.
completed_atstring (ISO 8601) | nullWhen 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 body
{
  "error": {
    "code": "invalid_parameter",
    "message": "limit must not be greater than 100"
  }
}
HTTPcodeMeaning
400invalid_parameterA query parameter is missing, unknown or out of range. details lists every problem when there is more than one.
401missing_api_keyNo Authorization: Bearer header.
401invalid_api_keyKey is unknown, revoked or expired.
403insufficient_scopeKey is not allowed to call this endpoint.
403organization_inactiveThe organization is deactivated.
429rate_limitedToo many requests. Wait for Retry-After seconds.
500internal_errorUnexpected 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 /mcp in 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 Code
claude mcp add --transport http runbook /api/mcp

Sign in

  1. The app opens a Runbook page in your browser. Sign in if you aren't already.
  2. Pick the organization the app should work in (if you belong to more than one) and click Allow.
  3. 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

ToolWhat it doesInputs
list_runbooksLists 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_runbooksFinds 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_runbookOne runbook with its teams, tasks and rollback tasks: assignees, planned minutes, status and notes.runbook_id
get_runbook_progressLive progress: tasks done, tasks running now and whether they are over time, the next task per team, planned vs actual minutes.runbook_id
my_tasksTasks assigned to you, with their team and runbook.optional status, runbook_status, limit (1–200, default 50)
create_draft_runbookCreates 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_outlineCreates 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_runbookChanges 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_teamAdds a team to the end of a draft runbook. Admins only.runbook_id, name; optional description, start_offset_minutes or start_after_teams
add_taskAdds 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_teamChanges 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_taskChanges 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_taskDeletes a task from a draft. Cannot be undone. Admins only.task_id
delete_teamDeletes a team and all its tasks from a draft. Cannot be undone. Admins only.team_id
update_watchersAdds 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”.

Only connect apps you trust. Anything the app does is done as you and recorded under your name.