開発者向け: REST API と MCP

music-booking のすべての操作を REST(OpenAPI)と MCP から API キーで呼び出せます。コードや AI エージェントから事業を管理できます。

API の概要

ダッシュボードでできることはすべて操作(名詞.動詞、例: locations.create)です。同じ操作が REST エンドポイント、MCP ツール、アプリ内アシスタントから、同じ入力・出力・権限・監査ログで使えます。

API キーの取得

  1. アカウントを作成してビジネスを登録します(またはオーナーに招待してもらいます)。
  2. ダッシュボードの 設定 → API キー で権限(owner / manager / staff、自分の権限以下)を選んで作成します。
  3. キー(bk_…)は一度だけ表示されます。キーは 1 つのビジネス専用です。

REST の約束事

  • エンドポイント: POST https://music-booking.imajilabs.com/api/v1/b/{business}/{op}({business} はビジネスの URL 名、{op} は操作名)。本文は操作の JSON 入力(入力がなければ {})。
  • 認証: Authorization: Bearer <API キー>。
  • 書き込み: 再送する可能性があるコマンドには Idempotency-Key: <uuid> を付けます。同じキーの再送は最初の結果を返し、二重に実行しません。
  • エラー: _tag が NotFound(404, entity, id)、Invalid(422, code, message, field?)、Conflict(409)、Forbidden(403)、Unauthorized(401)の JSON。
  • 日時: オフセット付き ISO-8601(2026-04-01T10:00:00+09:00、Asia/Tokyo)。日付は YYYY-MM-DD、月は YYYY-MM。
  • 金額: 税込の円(整数)。
  • 一覧は limit(1〜200、既定 50)と offset を受け取り、{ items, total } を返します。

例:

curl -X POST https://music-booking.imajilabs.com/api/v1/b/your-studio/business.get \
  -H "Authorization: Bearer $BOOKING_KEY" \
  -H "Content-Type: application/json" -d '{}'

完全な仕様: OpenAPI ドキュメント と API リファレンス。

MCP

MCP サーバーは https://music-booking.imajilabs.com/mcp(Streamable HTTP)で、同じ Authorization: Bearer <API キー> を使います。キーの権限で実行できる操作がツールとして並びます(locations.create → locations_create)。ビジネスはキーで決まるので、ツールにビジネスの指定はありません。Claude Desktop は mcp-remote 経由で接続します。claude_desktop_config.json に次を追加してください(API キー画面ではキー入りで表示されます):

{
  "mcpServers": {
    "music-booking": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://music-booking.imajilabs.com/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer bk_xxxxxxxx_…"
      }
    }
  }
}

操作一覧

稼働中のレジストリから生成しています。権限はその操作を実行できるロールです。「REST のみ」の操作は MCP ツールにはなりません。

core

操作種類権限説明
business.renamecommandowner, managerChange the business's display name (also updates the public directory).
business.getqueryowner, manager, staff, member, publicGet this business's id, slug, name and vertical (gym or music school).
ops.listqueryowner, manager, staffList every operation this service offers, with its kind, description and the roles allowed to run it.
audit.listqueryowner, managerList the audit log of commands run in this business, newest first, optionally filtered by op name, account or time range.
outbox.listqueryowner, manager, staffList queued and finished background jobs and emails (newest first), optionally filtered by kind or status.
outbox.retrycommandowner, managerRetry a failed background job or email now.

setup

操作種類権限説明
settings.getqueryowner, manager, staffGet the business profile: name, slug, vertical, description, tagline, area, contact details, whether it is closed on public holidays and whether its public page is published.
settings.updatecommandowner, managerUpdate the business profile (only the fields given); also publishes or unpublishes the public page and sets whether the business is closed on Japanese public holidays.
locations.listqueryowner, manager, staff, member, publicList the business's locations (stores, studios, classrooms) with address and opening hours.
locations.createcommandowner, managerAdd a location (store, studio or teaching room address) to the business.
locations.updatecommandowner, managerChange a location's name, address, access notes, phone or opening hours (only the fields given).
locations.archivecommandowner, managerArchive a location so it is no longer offered; fails if active resources still belong to it.
resources.listqueryowner, manager, staffList resources (staff, rooms, equipment), optionally filtered by kind, location or tag.
resources.getqueryowner, manager, staffGet one resource with its weekly working hours.
resources.createcommandowner, managerAdd a resource: a staff member (trainer/teacher), a room or a piece of equipment.
resources.createManycommandowner, managerAdd several identical rooms or machines in one step, named "<prefix> 1", "<prefix> 2", … (numbering continues after existing ones).
resources.updatecommandowner, managerChange a resource's name, location, capacity, tags, profile, colour or bookability (only the fields given).
resources.archivecommandowner, managerArchive a resource so it can no longer be scheduled (existing sessions are not changed).
hours.setcommandowner, manager, staffReplace a resource's weekly working hours (staff may set only their own).
hours.windowsqueryowner, manager, staffGet when resources are actually available on each date (weekly hours minus closures and holidays), for at most 62 days.
closures.listqueryowner, manager, staffList closures (whole business, one location or one resource) overlapping a time range; from defaults to now.
closures.createcommandowner, manager, staffClose the whole business, one location or one resource for a time range (e.g. year-end holidays, a trainer's day off); existing sessions are not cancelled.
closures.deletecommand (destructive)owner, managerDelete a closure.
holidays.listqueryowner, manager, staff, member, publicList Japanese public holidays (including substitute holidays) between two dates.
staff.listqueryowner, manager, staffList staff accounts (owner, managers, staff) with role, status (invited, active, removed) and linked staff resource.
staff.invitecommandowner, managerInvite someone by email to work in this business as a manager or staff member; optionally creates or links their staff resource. They get an email with a sign-up link.
staff.setRolecommandownerChange a staff member's role (owner, manager or staff).
staff.removecommand (destructive)ownerRemove a staff member's access to this business (their staff resource is kept; archive it separately).

people

操作種類権限説明
people.listqueryowner, manager, staffSearch the business's people (members, students, guardians) by name, kana, email or phone, optionally filtered by status, tag or household.
people.getqueryowner, manager, staff, memberGet one person with their household, the other household members, custom field values and terms-acceptance status.
people.createcommandowner, manager, staffAdd a person (member, student, child or guardian); without householdId a new household of one is created for them.
people.updatecommandowner, manager, staffChange a person's profile fields (name, kana, contact, birthdate, relation, tags, note, custom fields); omitted fields stay as they are.
people.setStatuscommandowner, manager, staffChange a person's membership status (lead, active, paused, left); left records the leaving date.
people.archivecommand (destructive)owner, managerArchive a person so they no longer appear in lists (history is kept; people are never deleted).
people.registerSelfcommand(REST のみ)owner, manager, staff, member, publicRegister the signed-in account as a customer of this business (creates their household and person, status lead).
people.addDependentcommandowner, manager, staff, memberAs a guardian, add a child (or other dependent) to your own household.
people.updateSelfcommandowner, manager, staff, memberAs a member or guardian, update contact details, address or member-editable custom fields of a person you act for.
people.invitecommandowner, manager, staffEmail a person an invitation to the member portal; accepting it creates or links their account.
me.contextquery(REST のみ)owner, manager, staff, member, publicGet the signed-in account's own person and the persons it acts for (children of a guardian), the household and whether current terms still need accepting.
households.listqueryowner, manager, staffList households (families / paying units) with their member names, optionally searching by household or member name.
households.getqueryowner, manager, staff, memberGet a household with its billing contact and members (with each member's relation: guardian, member or both).
households.updatecommandowner, manager, staff, memberChange a household's name, billing email, postal code, address or note.
households.movePersoncommandowner, manager, staffMove a person into another household, or (toHouseholdId null) into a new household of their own.
fields.listqueryowner, manager, staff, memberList the business's custom fields (extra profile items such as goals, weight, instrument) with their type and options.
fields.upsertcommandowner, managerCreate a custom field, or change the label, options, required flag, member visibility or order of an existing one (key and type are fixed).
fields.reordercommandowner, managerSet the display order of custom fields (ids in the desired order).
fields.archivecommand (destructive)owner, managerArchive a custom field: it disappears from forms; stored values are kept.
terms.currentqueryowner, manager, staff, member, publicGet the current version of the business's terms of use (Markdown), or null if none is published.
terms.listqueryowner, managerList every published version of the terms of use, newest first, with how many people accepted each.
terms.publishcommandowner, managerPublish a new version of the terms of use; everyone must accept it again.
terms.acceptcommandowner, manager, staff, memberRecord that a person (or their guardian) accepted the current terms version.
terms.acceptancesqueryowner, manager, staffList recorded terms acceptances (who accepted which version, when and through which channel), newest first.

credits

操作種類権限説明
entitlements.listqueryowner, manager, staffList entitlements (ticket packs, plans, make-up credits) with today's balances, optionally filtered by person, kind, status or expiring soon.
entitlements.getqueryowner, manager, staff, memberGet one entitlement with its balance today and its full ledger (newest first).
entitlements.grantcommandowner, manager, staffGrant a person a ticket pack (N credits) or a plan (N per month, N per school year, or unlimited) by hand.
entitlements.grantMakeupcommandowner, manager, staffGive a person one make-up credit (振替) by hand, e.g. after the business cancelled a lesson.
entitlements.adjustcommandowner, managerCorrect a pack's or make-up credit's balance by +N or −N with a reason (cannot go below zero).
entitlements.extendcommandowner, manager, staffChange an entitlement's expiry date (null = never expires); an expired pack becomes usable again.
entitlements.pausecommandowner, manager, staffPause (休会) an entitlement from a date, until a date or open-ended; it cannot be used while paused.
entitlements.resumecommandowner, manager, staffEnd an entitlement's pause (休会) now.
entitlements.endcommand (destructive)owner, manager, staffEnd an entitlement (e.g. plan cancelled): it cannot be used from the given date (default today).
credits.balancesqueryowner, manager, staff, memberShow what tickets, plans and make-up credits each given person holds and how many are left on a date (default today).
credits.ledgerqueryowner, manager, staff, memberList credit ledger lines (grants, uses, returns, forfeits, expiries, adjustments), newest first, each with a human sentence.
credits.statementqueryowner, manager, staff, memberShow entitled vs used (delivered, scheduled, returned, forfeited) per plan or pack for a month or the school year, e.g. 年40回 progress.
credits.overviewqueryowner, manager, staff, memberEverything about one person's credits in one call: balances today, the last 20 ledger lines, this month's and this school year's statements.
credits.expireDuecommandowner, managerExpire every entitlement whose expiry date has passed (remaining pack credits are written off in the ledger). Runs daily.

agent

操作種類権限説明
assistant.listThreadsquery(REST のみ)owner, manager, staffList the caller's own assistant conversations, newest first.
assistant.getThreadquery(REST のみ)owner, manager, staffGet one of the caller's assistant conversations with its transcript.
assistant.saveThreadcommand(REST のみ)owner, manager, staffCreate or update one of the caller's assistant conversations.
assistant.deleteThreadcommand (destructive)(REST のみ)owner, manager, staffDelete one of the caller's assistant conversations.

catalog

操作種類権限説明
offerings.listqueryowner, manager, staff, member, publicList the bookable offerings (menu items, courses) with duration, capacity, mode, prices and resource requirements.
offerings.getqueryowner, manager, staff, member, publicGet one offering with its requirements and prices.
offerings.createcommandowner, managerCreate an offering: a group class or lesson put on the calendar (mode scheduled) or a personal session members pick from free slots (mode on_demand), with the resources each session needs.
offerings.updatecommandowner, managerChange an offering (only the fields given; requirements, if given, replace the list). Affects future sessions only; set active true to restore an archived one.
offerings.archivecommandowner, managerArchive an offering so it can no longer be booked or scheduled; existing sessions stay.
catalog.overviewquery(REST のみ)owner, manager, staffData for the catalog screen: every offering (archived too), the active resources and the locations.
sessions.listqueryowner, manager, staff, member, publicList sessions (scheduled classes, lessons and booked personal sessions) between two dates with offering, staff, room and spots left.
sessions.getqueryowner, manager, staff, member, publicGet one session with its offering, time, location, assigned staff and rooms, capacity and spots left.
sessions.detailquery(REST のみ)owner, manager, staffData for the session page: the session, its offering, its series and the resources it could be changed to.
sessions.createcommandowner, manager, staffPut a one-off session of an offering on the calendar; staff and room are picked automatically unless given, and the time must not clash with their other sessions.
sessions.updatecommandowner, manager, staffMove a session to another time or change its staff member, room, capacity or note; resources are re-checked atomically and booked members are told about a time change.
sessions.cancelcommand (destructive)owner, manager, staffCancel a session on the business's side (e.g. the teacher is ill); its bookings are cancelled by the cancellation policy (make-up credits or refunds of credits).
sessions.findSlotsqueryowner, manager, staff, member, publicFind free start times for an on-demand offering (personal training, trial) between two dates, per staff member, inside their working hours and clear of their other sessions.
series.listqueryowner, manager, staffList weekly series (recurring classes or fixed weekly lessons) with their next session and number of exceptions.
series.getqueryowner, manager, staffGet a weekly series with all its sessions and exceptions (skipped and moved dates).
series.createcommandowner, manager, staffCreate a weekly series (e.g. every Tuesday 19:00 from April to June) and put all its sessions on the calendar at once, skipping public holidays.
series.addExceptioncommandowner, manager, staffChange one date of a weekly series: skip it (the session is cancelled, bookings follow the policy) or move it to another time.
series.extendcommandowner, manager, staffExtend a weekly series to a later end date and create the new sessions.
series.endcommand (destructive)owner, manager, staffEnd a weekly series after a date: every later session is cancelled (bookings follow the cancellation policy).
series.overviewquery(REST のみ)owner, manager, staffData for the series screen: every series, the scheduled offerings, resources and locations.
calendar.rangequeryowner, manager, staffEverything the staff calendar shows for a date range (at most 42 days): sessions, closures, public holidays and conflicts (sessions inside a closure or outside their staff member's hours).

billing

操作種類権限説明
billingSettings.getqueryowner, manager, staffGet the billing settings (issuer name/address/registration number for invoices and receipts, default billing day and timing, due days, bank transfer instructions) and whether card payments through Stripe are available.
billingSettings.updatecommandowner, managerUpdate billing settings: issuer details printed on invoices and receipts (name, address, phone, 登録番号 T+13 digits), default billing day (1-28), billing timing, payment due days, default receipt proviso (但し書き) and bank transfer instructions.
stripe.connectStartcommand(REST のみ)ownerStart (or continue) Stripe Connect onboarding for this business and return the Stripe-hosted onboarding URL.
stripe.refreshcommandowner, managerRe-read the business's connected Stripe account and store whether it can take card payments (after onboarding).
products.listqueryowner, manager, staff, memberList products: ticket packs (回数券), plans (月額プラン/月謝) and fees (入会金 etc.) with price, billing interval and what they grant. Members see only active products they may buy.
products.createcommandowner, managerCreate a product: a ticket pack (needs entitlement with fixed allowance and credits), a monthly plan (needs entitlement with a per-month/annual/unlimited allowance) or a fee (one-off or recurring). Prices are tax-inclusive yen.
products.updatecommandowner, managerChange a product (name, price, entitlement, interval, proration, member purchasable). A new price applies to future invoices only.
products.archivecommandowner, managerArchive a product so it can no longer be sold or started (existing subscriptions keep billing).
discounts.listqueryowner, manager, staffList discounts (manual ones applied to a subscription, and the automatic sibling discount).
discounts.upsertcommandowner, managerCreate or update a discount: percent or yen amount; autoRule "sibling" applies it automatically to a household's 2nd and later plans (by price, highest first).
sales.sellcommandowner, manager, staffSell ticket packs or fees to a person at the desk: issues an invoice to their household; with payment it is paid at once (cash/transfer), the receipt is created and pack credits are granted.
sales.buycommandowner, manager, staff, memberA member buys a member-purchasable pack or fee for a person they act for: creates an open invoice they then pay by card or at the desk.
subscriptions.listqueryowner, manager, staff, memberList subscriptions (plans and recurring fees) with person, household, price, billing day and next bill date; filter by status, household, person or product.
subscriptions.createcommandowner, manager, staffStart a plan (月額プラン/月謝) or recurring fee for a person: grants the plan's credits from startOn and issues the first invoice (prorated first month, optional one-off fees such as 入会金, discounts). The billing run issues later months.
subscriptions.updatecommandowner, manager, staffChange a subscription's billing day (moves the next bill date within its month), manual discount or price override (null clears them).
subscriptions.pausecommandowner, manager, staffPause (休会) a subscription for whole months: those months are not billed and the plan's credits cannot be used.
subscriptions.resumecommandowner, manager, staffEnd a subscription's pause (休会) now; billing continues with the next bill date.
subscriptions.cancelcommand (destructive)owner, manager, staffCancel (退会/解約) a subscription: the plan's credits end after endsOn and no month starting after endsOn is billed.
invoices.listqueryowner, manager, staff, memberList invoices (newest first) with household, period, total, paid amount and balance; filter by status, overdue, household, person, month or issue date range. Members see their own household's issued invoices.
invoices.getqueryowner, manager, staff, memberGet one invoice with its lines (per person), tax, payments, receipts, the household and issuer, and whether it can be paid by card now.
invoices.createcommandowner, manager, staffCreate a manual invoice for a household (or the household of personId) with product or free-text lines; issue it right away unless issue is false.
invoices.issuecommandowner, manager, staffIssue a draft invoice: assigns its number (INV-YYYY-NNNNNN), sets the due date and emails the household.
invoices.voidcommand (destructive)owner, managerVoid (取消) an invoice that has no succeeded payments, e.g. issued by mistake.
payments.listqueryowner, manager, staffList payments (newest first): card, cash, bank transfer or other, with status, invoice and household; filter by method, status, household, invoice or received date.
payments.recordManualcommandowner, manager, staffRecord money received by staff (cash 現金, bank transfer 振込, other) against an invoice; default amount is the balance due. Creates the receipt; a fully paid invoice grants its pack credits.
payments.voidcommand (destructive)owner, managerVoid a payment recorded by mistake: the invoice reopens and the receipt is voided. Credits already granted are NOT taken back (creditsKept tells you to adjust them by hand). Not a Stripe refund.
payments.startCheckoutcommand(REST のみ)owner, manager, staff, memberOpen Stripe Checkout to pay an invoice by card (the card is saved for later monthly charges); returns the Checkout URL.
payments.confirmCheckoutcommand(REST のみ)owner, manager, staff, memberAfter Stripe Checkout returns, read the session and settle the invoice if it was paid (idempotent; the webhook does the same).
payments.chargeSavedcommandowner, manager, staffCharge the household's saved card (from an earlier Stripe Checkout) for an open invoice now; returns the pending payment (the result arrives a moment later).
receipts.getqueryowner, manager, staff, memberGet a receipt (領収書): number, date, addressee (宛名), amount with 内消費税, proviso (但し書き), payment method, issuer with registration number, reissue flag.
receipts.updatecommandowner, manager, staffChange a receipt's addressee (宛名) or proviso (但し書き); the receipt is then marked 再発行 (reissued).
billing.previewqueryowner, manager, staffPreview what the monthly billing run would invoice on a date (default today): one invoice per household with its plan lines and discounts, and whether the saved card would be charged.
billing.runDuecommandowner, managerRun the monthly billing now (also runs daily): issues invoices for every subscription whose bill date has come; running it again creates nothing.
billing.unpaidqueryowner, manager, staffWho hasn't paid? Households with open (unpaid or partly paid) invoices: contact, each invoice's amount due, due date and days overdue, total due and the last card error. Filter by the month invoiced (e.g. this month).
billing.summaryqueryowner, managerMonth totals: amount invoiced, collected (by payment method), outstanding and invoice count.
billing.overviewqueryowner, manager, staffThe billing dashboard in one call: this month's totals, the unpaid list and the payments mode (card or manual).
billing.forPersonqueryowner, manager, staffBilling for one person's household: subscriptions, recent invoices, balance due, saved card, and the products that can be sold or started.

bookings

操作種類権限説明
bookings.quotequeryowner, manager, staff, memberPreview a booking without making it: whether the person can book the session or slot, the blockers, which credit or price would pay for it, the nomination fee and the cancellation policy.
bookings.createcommandowner, manager, staff, memberBook a person into a scheduled session (sessionId) or an on-demand slot (slot), using their ticket/plan credit or charging the drop-in price; fails with a clear reason when full, too late, already booked or no credit.
bookings.cancelQuotequeryowner, manager, staff, memberBefore cancelling, show whether the cancel is in time or late, the deadline, what happens to the credit and any fee.
bookings.cancelcommand (destructive)owner, manager, staff, memberCancel a booking and apply the cancellation policy (return, forfeit or make-up credit, fees). Members cancel for themselves; staff choose as member (on their behalf) or as business with a reason.
bookings.minequeryowner, manager, staff, memberList the upcoming or past bookings of the persons the signed-in member acts for (self and children).
bookings.listqueryowner, manager, staffList bookings with filters (date range, status, person, session, offering, staff, funding such as unfunded), newest session first.
bookings.getqueryowner, manager, staff, memberGet one booking with its session and full history (who changed it, when, through which channel, and which policy rule applied).
bookings.rosterqueryowner, manager, staffGet a session's roster: the session and every booking in it (active first, cancelled last) with attendance status.
bookings.todayqueryowner, manager, staffFront-desk view: the scheduled sessions of a day (default today) with their active bookings, optionally for one location or staff member.
bookings.forPersonqueryowner, manager, staff, memberA person's bookings page in one call: upcoming and recent bookings, enrolments in weekly series, and counts of attended, late cancels and no-shows.
bookings.markAttendedcommandowner, manager, staffMark a confirmed booking as attended.
bookings.markNoShowcommand (destructive)owner, manager, staffMark a confirmed booking as a no-show (無断欠席) and apply the policy's no-show outcome (credit forfeited or returned, optional fee).
bookings.markSessioncommandowner, manager, staffMark every confirmed booking of a session as attended at once.
bookings.revertcommandowner, manager, staffUndo an attended or no-show mark (back to confirmed): voids an unpaid no-show fee and re-uses a returned credit. Cancelled bookings cannot be revived; book again.
policies.listqueryowner, manager, staff, member, publicList the cancellation and booking policies (deadline, what happens to credits on in-time, late, no-show and business cancels, fees, booking window) with the offerings each governs.
policies.overviewquery(REST のみ)owner, manager, staffThe policies settings page in one call: every policy (archived too) and the offerings they can be assigned to.
policies.upsertcommandowner, managerCreate or update a cancellation/booking policy (omit id to create); isDefault makes it govern every offering without its own policy.
policies.assigncommandowner, managerMake a policy govern these offerings (they leave any other policy).
policies.archivecommand (destructive)owner, managerArchive a policy that is not the default; its offerings fall back to the default policy.
enrolments.listqueryowner, manager, staffList enrolments (a person holding a fixed place in a weekly series), by series, person or status.
enrolments.createcommandowner, manager, staffEnrol a person in a weekly series (固定枠) and book them into every future session from fromDate; dates that cannot be booked are listed, and later sessions of the series are booked automatically.
enrolments.endcommand (destructive)owner, manager, staffEnd an enrolment after its last day on: cancels the later bookings and returns their credits (no make-ups, no fees).

data

操作種類権限説明
import.previewquery(REST のみ)owner, managerValidate member CSV rows against the business (plans, packs, custom fields, existing emails) and report per-row errors and warnings without writing anything.
import.commitcommand(REST のみ)owner, managerImport member CSV rows in one transaction: people and households, remaining ticket packs, and plan subscriptions without a first invoice.
import.runsqueryowner, managerList previous CSV imports of members (newest first) with who ran them and how many people, households, ticket packs and plan subscriptions each created.
import.getqueryowner, managerGet one previous CSV import with the outcome of every row (imported person id, or skipped with the reason).
export.datasetquery(REST のみ)owner, managerExport one dataset of the business as a flat table (Japanese headers, names next to ids) for a CSV download.

portal

操作種類権限説明
public.businessqueryowner, manager, staff, member, publicGet the business's public page data: profile, locations with opening hours, staff, bookable offerings with prices, packs and plans, the cancellation policy and the sessions of the next 7 days. Fails NotFound when the page is not published.
public.schedulequeryowner, manager, staff, member, publicGet the public timetable: scheduled classes/lessons per day with teacher, location and spots left, public holidays, and the on-demand offerings (book those through free slots). Fails NotFound when the page is not published.
portal.homequery(REST のみ)owner, manager, staff, memberMember portal home in one call: the persons the signed-in member acts for, the selected person's next bookings and credit balances, open invoices of the household, and whether new terms need accepting.

verticals

操作種類権限説明
verticals.applyPresetcommandownerApply the business's vertical preset (gym or music school): standard offerings, ticket packs/plans/fees, the default cancellation policy, billing defaults, custom fields and terms of use. Does nothing if any offering exists.
karte.listqueryowner, manager, staff, memberList カルテ (trainer session notes: summary, exercise menu, condition, next plan), newest first, by member, session, trainer or date range. Members see only notes marked visible for persons they act for.
karte.upsertcommandowner, manager, staffWrite or edit a カルテ (session note) for a member: summary, exercise menu rows, condition and next plan; optionally visible to the member. The trainer is the signed-in staff member.
karte.deletecommand (destructive)owner, managerDelete a カルテ (session note).
measurements.listqueryowner, manager, staff, memberList a member's body measurements (weight, body fat %, muscle mass), newest first.
measurements.addcommandowner, manager, staffRecord a member's body measurement (weight kg, body fat %, muscle kg) for a date.
trials.listqueryowner, manager, staffList trial (体験) bookings with the person, date, trainer, booking status and outcome (pending, converted = bought a pack or plan, lost).
trials.setOutcomecommandowner, manager, staffSet a trial's outcome by hand (e.g. mark it lost when the visitor will not join). Buying a pack or plan marks it converted automatically.
trials.statsqueryowner, manager, staffTrial conversion for a date range: trials booked, held, converted, lost, pending and the conversion rate (converted ÷ held).
fixedSlots.boardqueryowner, manager, staffThe weekly fixed-slot board (固定枠) of a school year: per teacher and weekday, every lesson series with time, room and the student holding it, or vacant (空き).
fixedSlots.enrolcommandowner, manager, staffEnrol a student in a fixed weekly lesson slot in one step: an existing vacant series or a new slot, bookings for the rest of the school year, and optionally the 月謝 subscription with a by-session prorated first invoice (plus fees such as 入会金).
fixedSlots.reenrolPreviewqueryowner, managerRe-enrolment preview for the next school year: this year's lesson series ending in March with their students, and next year's dates and conflicts.
fixedSlots.reenrolcommandowner, managerContinue fixed slots into the next school year: creates next year's series (April–March, same weekday, time, teacher and room) and enrols the chosen students. Subscriptions continue unchanged.
makeups.boardqueryowner, manager, staffThe make-up (振替) desk: students holding usable make-up credits (reason, original lesson date, expiry; soonest first) and lesson sessions with a free place in the next 30 days. Book one with bookings.create and the credit's entitlementId.
dashboard.homequery(REST のみ)owner, manager, staffThe setup checklist for the home dashboard (profile, location, staff hours, offering, product, policy, published, Stripe) and the business's vertical.

practice

操作種類権限説明
practice.createNotecommandowner, manager, staffLeave a practice note for a student after a lesson: a short text plus optional attachments (recorded audio clips, score photos/PDF pages with drawn circles and highlights, a short ABC-notation phrase). Upload files first with POST /media/{business}/upload. Published notes appear in the household's portal and email the family.
practice.updateNotecommandowner, manager, staffEdit a practice note: change the text, replace the attachment list, or publish a draft (publishing the first time emails the household).
practice.deleteNotecommand (destructive)owner, manager, staffDelete a practice note with its attachments and the student's replies (practice logs stay).
practice.listNotesqueryowner, manager, staffList practice notes newest first, for one student, one lesson, or only the ones I wrote; each with attachments, replies and how many days were practised.
practice.feedqueryowner, manager, staff, memberA student's practice feed: the teacher's notes (published only, for families), this week's practice by day, the streak, the last 28 days and recent practice logs. Families may read only their own children.
practice.overviewqueryowner, manager, staffThe teacher's practice desk: student recordings waiting for feedback, recent notes, and who practised in the last seven days (days and minutes per student).
practice.logcommandowner, manager, staff, memberRecord that a student practised (minutes, optional comment, optional note it was for). Families log for their own children; date defaults to today and may be up to 14 days back.
practice.deleteLogcommandowner, manager, staff, memberRemove a practice log entry entered by mistake.
practice.replycommandowner, manager, staff, memberSend a recording (and/or a short line) back to the teacher about a practice note, for feedback. Upload the audio first with POST /media/{business}/upload. Emails the teacher.
practice.giveFeedbackcommandowner, manager, staffAnswer a student's practice recording with a short comment (emails the household).
practice.markSeencommand(REST のみ)owner, manager, staff, memberMark a practice note (and the teacher's feedback on it) as seen by the family.

Markdown: /developers.md · /llms.txt