開発者向け: REST API と MCP
music-booking のすべての操作を REST(OpenAPI)と MCP から API キーで呼び出せます。コードや AI エージェントから事業を管理できます。
API の概要
ダッシュボードでできることはすべて操作(名詞.動詞、例: locations.create)です。同じ操作が REST エンドポイント、MCP ツール、アプリ内アシスタントから、同じ入力・出力・権限・監査ログで使えます。
API キーの取得
- アカウントを作成してビジネスを登録します(またはオーナーに招待してもらいます)。
- ダッシュボードの 設定 → API キー で権限(owner / manager / staff、自分の権限以下)を選んで作成します。
- キー(
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.rename | command | owner, manager | Change the business's display name (also updates the public directory). |
business.get | query | owner, manager, staff, member, public | Get this business's id, slug, name and vertical (gym or music school). |
ops.list | query | owner, manager, staff | List every operation this service offers, with its kind, description and the roles allowed to run it. |
audit.list | query | owner, manager | List the audit log of commands run in this business, newest first, optionally filtered by op name, account or time range. |
outbox.list | query | owner, manager, staff | List queued and finished background jobs and emails (newest first), optionally filtered by kind or status. |
outbox.retry | command | owner, manager | Retry a failed background job or email now. |
setup
| 操作 | 種類 | 権限 | 説明 |
|---|---|---|---|
settings.get | query | owner, manager, staff | Get 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.update | command | owner, manager | Update 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.list | query | owner, manager, staff, member, public | List the business's locations (stores, studios, classrooms) with address and opening hours. |
locations.create | command | owner, manager | Add a location (store, studio or teaching room address) to the business. |
locations.update | command | owner, manager | Change a location's name, address, access notes, phone or opening hours (only the fields given). |
locations.archive | command | owner, manager | Archive a location so it is no longer offered; fails if active resources still belong to it. |
resources.list | query | owner, manager, staff | List resources (staff, rooms, equipment), optionally filtered by kind, location or tag. |
resources.get | query | owner, manager, staff | Get one resource with its weekly working hours. |
resources.create | command | owner, manager | Add a resource: a staff member (trainer/teacher), a room or a piece of equipment. |
resources.createMany | command | owner, manager | Add several identical rooms or machines in one step, named "<prefix> 1", "<prefix> 2", … (numbering continues after existing ones). |
resources.update | command | owner, manager | Change a resource's name, location, capacity, tags, profile, colour or bookability (only the fields given). |
resources.archive | command | owner, manager | Archive a resource so it can no longer be scheduled (existing sessions are not changed). |
hours.set | command | owner, manager, staff | Replace a resource's weekly working hours (staff may set only their own). |
hours.windows | query | owner, manager, staff | Get when resources are actually available on each date (weekly hours minus closures and holidays), for at most 62 days. |
closures.list | query | owner, manager, staff | List closures (whole business, one location or one resource) overlapping a time range; from defaults to now. |
closures.create | command | owner, manager, staff | Close 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.delete | command (destructive) | owner, manager | Delete a closure. |
holidays.list | query | owner, manager, staff, member, public | List Japanese public holidays (including substitute holidays) between two dates. |
staff.list | query | owner, manager, staff | List staff accounts (owner, managers, staff) with role, status (invited, active, removed) and linked staff resource. |
staff.invite | command | owner, manager | Invite 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.setRole | command | owner | Change a staff member's role (owner, manager or staff). |
staff.remove | command (destructive) | owner | Remove a staff member's access to this business (their staff resource is kept; archive it separately). |
people
| 操作 | 種類 | 権限 | 説明 |
|---|---|---|---|
people.list | query | owner, manager, staff | Search the business's people (members, students, guardians) by name, kana, email or phone, optionally filtered by status, tag or household. |
people.get | query | owner, manager, staff, member | Get one person with their household, the other household members, custom field values and terms-acceptance status. |
people.create | command | owner, manager, staff | Add a person (member, student, child or guardian); without householdId a new household of one is created for them. |
people.update | command | owner, manager, staff | Change a person's profile fields (name, kana, contact, birthdate, relation, tags, note, custom fields); omitted fields stay as they are. |
people.setStatus | command | owner, manager, staff | Change a person's membership status (lead, active, paused, left); left records the leaving date. |
people.archive | command (destructive) | owner, manager | Archive a person so they no longer appear in lists (history is kept; people are never deleted). |
people.registerSelf | command(REST のみ) | owner, manager, staff, member, public | Register the signed-in account as a customer of this business (creates their household and person, status lead). |
people.addDependent | command | owner, manager, staff, member | As a guardian, add a child (or other dependent) to your own household. |
people.updateSelf | command | owner, manager, staff, member | As a member or guardian, update contact details, address or member-editable custom fields of a person you act for. |
people.invite | command | owner, manager, staff | Email a person an invitation to the member portal; accepting it creates or links their account. |
me.context | query(REST のみ) | owner, manager, staff, member, public | Get 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.list | query | owner, manager, staff | List households (families / paying units) with their member names, optionally searching by household or member name. |
households.get | query | owner, manager, staff, member | Get a household with its billing contact and members (with each member's relation: guardian, member or both). |
households.update | command | owner, manager, staff, member | Change a household's name, billing email, postal code, address or note. |
households.movePerson | command | owner, manager, staff | Move a person into another household, or (toHouseholdId null) into a new household of their own. |
fields.list | query | owner, manager, staff, member | List the business's custom fields (extra profile items such as goals, weight, instrument) with their type and options. |
fields.upsert | command | owner, manager | Create a custom field, or change the label, options, required flag, member visibility or order of an existing one (key and type are fixed). |
fields.reorder | command | owner, manager | Set the display order of custom fields (ids in the desired order). |
fields.archive | command (destructive) | owner, manager | Archive a custom field: it disappears from forms; stored values are kept. |
terms.current | query | owner, manager, staff, member, public | Get the current version of the business's terms of use (Markdown), or null if none is published. |
terms.list | query | owner, manager | List every published version of the terms of use, newest first, with how many people accepted each. |
terms.publish | command | owner, manager | Publish a new version of the terms of use; everyone must accept it again. |
terms.accept | command | owner, manager, staff, member | Record that a person (or their guardian) accepted the current terms version. |
terms.acceptances | query | owner, manager, staff | List recorded terms acceptances (who accepted which version, when and through which channel), newest first. |
credits
| 操作 | 種類 | 権限 | 説明 |
|---|---|---|---|
entitlements.list | query | owner, manager, staff | List entitlements (ticket packs, plans, make-up credits) with today's balances, optionally filtered by person, kind, status or expiring soon. |
entitlements.get | query | owner, manager, staff, member | Get one entitlement with its balance today and its full ledger (newest first). |
entitlements.grant | command | owner, manager, staff | Grant a person a ticket pack (N credits) or a plan (N per month, N per school year, or unlimited) by hand. |
entitlements.grantMakeup | command | owner, manager, staff | Give a person one make-up credit (振替) by hand, e.g. after the business cancelled a lesson. |
entitlements.adjust | command | owner, manager | Correct a pack's or make-up credit's balance by +N or −N with a reason (cannot go below zero). |
entitlements.extend | command | owner, manager, staff | Change an entitlement's expiry date (null = never expires); an expired pack becomes usable again. |
entitlements.pause | command | owner, manager, staff | Pause (休会) an entitlement from a date, until a date or open-ended; it cannot be used while paused. |
entitlements.resume | command | owner, manager, staff | End an entitlement's pause (休会) now. |
entitlements.end | command (destructive) | owner, manager, staff | End an entitlement (e.g. plan cancelled): it cannot be used from the given date (default today). |
credits.balances | query | owner, manager, staff, member | Show what tickets, plans and make-up credits each given person holds and how many are left on a date (default today). |
credits.ledger | query | owner, manager, staff, member | List credit ledger lines (grants, uses, returns, forfeits, expiries, adjustments), newest first, each with a human sentence. |
credits.statement | query | owner, manager, staff, member | Show entitled vs used (delivered, scheduled, returned, forfeited) per plan or pack for a month or the school year, e.g. 年40回 progress. |
credits.overview | query | owner, manager, staff, member | Everything 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.expireDue | command | owner, manager | Expire every entitlement whose expiry date has passed (remaining pack credits are written off in the ledger). Runs daily. |
agent
| 操作 | 種類 | 権限 | 説明 |
|---|---|---|---|
assistant.listThreads | query(REST のみ) | owner, manager, staff | List the caller's own assistant conversations, newest first. |
assistant.getThread | query(REST のみ) | owner, manager, staff | Get one of the caller's assistant conversations with its transcript. |
assistant.saveThread | command(REST のみ) | owner, manager, staff | Create or update one of the caller's assistant conversations. |
assistant.deleteThread | command (destructive)(REST のみ) | owner, manager, staff | Delete one of the caller's assistant conversations. |
catalog
| 操作 | 種類 | 権限 | 説明 |
|---|---|---|---|
offerings.list | query | owner, manager, staff, member, public | List the bookable offerings (menu items, courses) with duration, capacity, mode, prices and resource requirements. |
offerings.get | query | owner, manager, staff, member, public | Get one offering with its requirements and prices. |
offerings.create | command | owner, manager | Create 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.update | command | owner, manager | Change 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.archive | command | owner, manager | Archive an offering so it can no longer be booked or scheduled; existing sessions stay. |
catalog.overview | query(REST のみ) | owner, manager, staff | Data for the catalog screen: every offering (archived too), the active resources and the locations. |
sessions.list | query | owner, manager, staff, member, public | List sessions (scheduled classes, lessons and booked personal sessions) between two dates with offering, staff, room and spots left. |
sessions.get | query | owner, manager, staff, member, public | Get one session with its offering, time, location, assigned staff and rooms, capacity and spots left. |
sessions.detail | query(REST のみ) | owner, manager, staff | Data for the session page: the session, its offering, its series and the resources it could be changed to. |
sessions.create | command | owner, manager, staff | Put 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.update | command | owner, manager, staff | Move 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.cancel | command (destructive) | owner, manager, staff | Cancel 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.findSlots | query | owner, manager, staff, member, public | Find 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.list | query | owner, manager, staff | List weekly series (recurring classes or fixed weekly lessons) with their next session and number of exceptions. |
series.get | query | owner, manager, staff | Get a weekly series with all its sessions and exceptions (skipped and moved dates). |
series.create | command | owner, manager, staff | Create 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.addException | command | owner, manager, staff | Change one date of a weekly series: skip it (the session is cancelled, bookings follow the policy) or move it to another time. |
series.extend | command | owner, manager, staff | Extend a weekly series to a later end date and create the new sessions. |
series.end | command (destructive) | owner, manager, staff | End a weekly series after a date: every later session is cancelled (bookings follow the cancellation policy). |
series.overview | query(REST のみ) | owner, manager, staff | Data for the series screen: every series, the scheduled offerings, resources and locations. |
calendar.range | query | owner, manager, staff | Everything 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.get | query | owner, manager, staff | Get 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.update | command | owner, manager | Update 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.connectStart | command(REST のみ) | owner | Start (or continue) Stripe Connect onboarding for this business and return the Stripe-hosted onboarding URL. |
stripe.refresh | command | owner, manager | Re-read the business's connected Stripe account and store whether it can take card payments (after onboarding). |
products.list | query | owner, manager, staff, member | List products: ticket packs (回数券), plans (月額プラン/月謝) and fees (入会金 etc.) with price, billing interval and what they grant. Members see only active products they may buy. |
products.create | command | owner, manager | Create 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.update | command | owner, manager | Change a product (name, price, entitlement, interval, proration, member purchasable). A new price applies to future invoices only. |
products.archive | command | owner, manager | Archive a product so it can no longer be sold or started (existing subscriptions keep billing). |
discounts.list | query | owner, manager, staff | List discounts (manual ones applied to a subscription, and the automatic sibling discount). |
discounts.upsert | command | owner, manager | Create 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.sell | command | owner, manager, staff | Sell 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.buy | command | owner, manager, staff, member | A 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.list | query | owner, manager, staff, member | List subscriptions (plans and recurring fees) with person, household, price, billing day and next bill date; filter by status, household, person or product. |
subscriptions.create | command | owner, manager, staff | Start 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.update | command | owner, manager, staff | Change a subscription's billing day (moves the next bill date within its month), manual discount or price override (null clears them). |
subscriptions.pause | command | owner, manager, staff | Pause (休会) a subscription for whole months: those months are not billed and the plan's credits cannot be used. |
subscriptions.resume | command | owner, manager, staff | End a subscription's pause (休会) now; billing continues with the next bill date. |
subscriptions.cancel | command (destructive) | owner, manager, staff | Cancel (退会/解約) a subscription: the plan's credits end after endsOn and no month starting after endsOn is billed. |
invoices.list | query | owner, manager, staff, member | List 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.get | query | owner, manager, staff, member | Get one invoice with its lines (per person), tax, payments, receipts, the household and issuer, and whether it can be paid by card now. |
invoices.create | command | owner, manager, staff | Create 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.issue | command | owner, manager, staff | Issue a draft invoice: assigns its number (INV-YYYY-NNNNNN), sets the due date and emails the household. |
invoices.void | command (destructive) | owner, manager | Void (取消) an invoice that has no succeeded payments, e.g. issued by mistake. |
payments.list | query | owner, manager, staff | List payments (newest first): card, cash, bank transfer or other, with status, invoice and household; filter by method, status, household, invoice or received date. |
payments.recordManual | command | owner, manager, staff | Record 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.void | command (destructive) | owner, manager | Void 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.startCheckout | command(REST のみ) | owner, manager, staff, member | Open Stripe Checkout to pay an invoice by card (the card is saved for later monthly charges); returns the Checkout URL. |
payments.confirmCheckout | command(REST のみ) | owner, manager, staff, member | After Stripe Checkout returns, read the session and settle the invoice if it was paid (idempotent; the webhook does the same). |
payments.chargeSaved | command | owner, manager, staff | Charge 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.get | query | owner, manager, staff, member | Get a receipt (領収書): number, date, addressee (宛名), amount with 内消費税, proviso (但し書き), payment method, issuer with registration number, reissue flag. |
receipts.update | command | owner, manager, staff | Change a receipt's addressee (宛名) or proviso (但し書き); the receipt is then marked 再発行 (reissued). |
billing.preview | query | owner, manager, staff | Preview 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.runDue | command | owner, manager | Run the monthly billing now (also runs daily): issues invoices for every subscription whose bill date has come; running it again creates nothing. |
billing.unpaid | query | owner, manager, staff | Who 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.summary | query | owner, manager | Month totals: amount invoiced, collected (by payment method), outstanding and invoice count. |
billing.overview | query | owner, manager, staff | The billing dashboard in one call: this month's totals, the unpaid list and the payments mode (card or manual). |
billing.forPerson | query | owner, manager, staff | Billing for one person's household: subscriptions, recent invoices, balance due, saved card, and the products that can be sold or started. |
bookings
| 操作 | 種類 | 権限 | 説明 |
|---|---|---|---|
bookings.quote | query | owner, manager, staff, member | Preview 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.create | command | owner, manager, staff, member | Book 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.cancelQuote | query | owner, manager, staff, member | Before cancelling, show whether the cancel is in time or late, the deadline, what happens to the credit and any fee. |
bookings.cancel | command (destructive) | owner, manager, staff, member | Cancel 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.mine | query | owner, manager, staff, member | List the upcoming or past bookings of the persons the signed-in member acts for (self and children). |
bookings.list | query | owner, manager, staff | List bookings with filters (date range, status, person, session, offering, staff, funding such as unfunded), newest session first. |
bookings.get | query | owner, manager, staff, member | Get one booking with its session and full history (who changed it, when, through which channel, and which policy rule applied). |
bookings.roster | query | owner, manager, staff | Get a session's roster: the session and every booking in it (active first, cancelled last) with attendance status. |
bookings.today | query | owner, manager, staff | Front-desk view: the scheduled sessions of a day (default today) with their active bookings, optionally for one location or staff member. |
bookings.forPerson | query | owner, manager, staff, member | A 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.markAttended | command | owner, manager, staff | Mark a confirmed booking as attended. |
bookings.markNoShow | command (destructive) | owner, manager, staff | Mark a confirmed booking as a no-show (無断欠席) and apply the policy's no-show outcome (credit forfeited or returned, optional fee). |
bookings.markSession | command | owner, manager, staff | Mark every confirmed booking of a session as attended at once. |
bookings.revert | command | owner, manager, staff | Undo 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.list | query | owner, manager, staff, member, public | List 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.overview | query(REST のみ) | owner, manager, staff | The policies settings page in one call: every policy (archived too) and the offerings they can be assigned to. |
policies.upsert | command | owner, manager | Create or update a cancellation/booking policy (omit id to create); isDefault makes it govern every offering without its own policy. |
policies.assign | command | owner, manager | Make a policy govern these offerings (they leave any other policy). |
policies.archive | command (destructive) | owner, manager | Archive a policy that is not the default; its offerings fall back to the default policy. |
enrolments.list | query | owner, manager, staff | List enrolments (a person holding a fixed place in a weekly series), by series, person or status. |
enrolments.create | command | owner, manager, staff | Enrol 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.end | command (destructive) | owner, manager, staff | End an enrolment after its last day on: cancels the later bookings and returns their credits (no make-ups, no fees). |
data
| 操作 | 種類 | 権限 | 説明 |
|---|---|---|---|
import.preview | query(REST のみ) | owner, manager | Validate member CSV rows against the business (plans, packs, custom fields, existing emails) and report per-row errors and warnings without writing anything. |
import.commit | command(REST のみ) | owner, manager | Import member CSV rows in one transaction: people and households, remaining ticket packs, and plan subscriptions without a first invoice. |
import.runs | query | owner, manager | List previous CSV imports of members (newest first) with who ran them and how many people, households, ticket packs and plan subscriptions each created. |
import.get | query | owner, manager | Get one previous CSV import with the outcome of every row (imported person id, or skipped with the reason). |
export.dataset | query(REST のみ) | owner, manager | Export one dataset of the business as a flat table (Japanese headers, names next to ids) for a CSV download. |
portal
| 操作 | 種類 | 権限 | 説明 |
|---|---|---|---|
public.business | query | owner, manager, staff, member, public | Get 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.schedule | query | owner, manager, staff, member, public | Get 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.home | query(REST のみ) | owner, manager, staff, member | Member 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.applyPreset | command | owner | Apply 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.list | query | owner, manager, staff, member | List カルテ (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.upsert | command | owner, manager, staff | Write 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.delete | command (destructive) | owner, manager | Delete a カルテ (session note). |
measurements.list | query | owner, manager, staff, member | List a member's body measurements (weight, body fat %, muscle mass), newest first. |
measurements.add | command | owner, manager, staff | Record a member's body measurement (weight kg, body fat %, muscle kg) for a date. |
trials.list | query | owner, manager, staff | List trial (体験) bookings with the person, date, trainer, booking status and outcome (pending, converted = bought a pack or plan, lost). |
trials.setOutcome | command | owner, manager, staff | Set 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.stats | query | owner, manager, staff | Trial conversion for a date range: trials booked, held, converted, lost, pending and the conversion rate (converted ÷ held). |
fixedSlots.board | query | owner, manager, staff | The 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.enrol | command | owner, manager, staff | Enrol 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.reenrolPreview | query | owner, manager | Re-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.reenrol | command | owner, manager | Continue 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.board | query | owner, manager, staff | The 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.home | query(REST のみ) | owner, manager, staff | The setup checklist for the home dashboard (profile, location, staff hours, offering, product, policy, published, Stripe) and the business's vertical. |
practice
| 操作 | 種類 | 権限 | 説明 |
|---|---|---|---|
practice.createNote | command | owner, manager, staff | Leave 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.updateNote | command | owner, manager, staff | Edit a practice note: change the text, replace the attachment list, or publish a draft (publishing the first time emails the household). |
practice.deleteNote | command (destructive) | owner, manager, staff | Delete a practice note with its attachments and the student's replies (practice logs stay). |
practice.listNotes | query | owner, manager, staff | List 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.feed | query | owner, manager, staff, member | A 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.overview | query | owner, manager, staff | The 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.log | command | owner, manager, staff, member | Record 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.deleteLog | command | owner, manager, staff, member | Remove a practice log entry entered by mistake. |
practice.reply | command | owner, manager, staff, member | Send 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.giveFeedback | command | owner, manager, staff | Answer a student's practice recording with a short comment (emails the household). |
practice.markSeen | command(REST のみ) | owner, manager, staff, member | Mark a practice note (and the teacher's feedback on it) as seen by the family. |
Markdown: /developers.md · /llms.txt