ONE booking:list-bookings
← Receivers

booking:list-bookings

booking family

mcp

Provider-gated: list a workspace's bookings for a month (customer, time, service, status)

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_clients
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/booking:list-bookings \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "slug": "clearwater", "month": "2026-06" }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • slug string optional
  • month string optional YYYY-MM. Omit for the current month.
  • ref string optional One booking by its reference, any status, instead of the month: the appointment-reminder path's re-read before it sends. Another workspace's ref reads as none (status null)

Response

What comes back from the call.

  • bookings object[]
  • status string | null With ref: pending · confirmed · dissolved (cancelled, moved, or an unpaid hold that lapsed); null when no such booking in this workspace
  • upcoming boolean With ref: the slot has not started yet
  • textable boolean With ref: sms:send would text this booking's number for a path step (sent as marketing, so the person's express opt-in, and no STOP); sms:send still checks again
  • phone string | null With ref: the booking's number in E.164, or null when none or no country code
  • error string

Traffic

Every call to booking:list-bookings, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names booking:list-bookings, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

UI 1
  • one.ie/web/src/components/booking/AppointmentCalendar.tsx:102
API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:80
Workflow 1
  • one.ie/web/src/lib/workflow-templates.ts:948
→

Answered by

booking:list-bookings one.ie/web/src/lib/resolvers/booking.ts:924 Dispatched through POST /api/ask/booking:list-bookings, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "month": {
      "description": "YYYY-MM. Omit for the current month.",
      "type": "string"
    },
    "ref": {
      "description": "One booking by its reference, any status, instead of the month: the appointment-reminder path's re-read before it sends. Another workspace's ref reads as none (status null)",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "bookings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "ref": {
            "type": "string"
          },
          "service_name": {
            "type": "string"
          },
          "slot_date": {
            "type": "string"
          },
          "slot_time": {
            "type": "string"
          },
          "customer_name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "customer_phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "details": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "ref",
          "service_name",
          "slot_date",
          "slot_time",
          "customer_name",
          "status"
        ]
      }
    },
    "status": {
      "description": "With ref: pending · confirmed · dissolved (cancelled, moved, or an unpaid hold that lapsed); null when no such booking in this workspace",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "upcoming": {
      "description": "With ref: the slot has not started yet",
      "type": "boolean"
    },
    "textable": {
      "description": "With ref: sms:send would text this booking's number for a path step (sent as marketing, so the person's express opt-in, and no STOP); sms:send still checks again",
      "type": "boolean"
    },
    "phone": {
      "description": "With ref: the booking's number in E.164, or null when none or no country code",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "type": "string"
    }
  },
  "required": [
    "bookings"
  ]
}