{"openapi":"3.1.0","info":{"title":"Solidcore API (Bowmark)","version":"e833508f87ff","description":"solidcore.co — the [solidcore] boutique fitness studio chain (Pilates-based strength classes). listStudios and getStudio are built; everything else is queued — see BUILD_QUEUE.md.\n\nEvery function Bowmark has for Solidcore (solidcore.co) as one HTTP call. Each runs on Bowmark's infrastructure with the same billing, rules and response envelope as `POST /v1/run`. The whole API: https://api.bowmark.ai/openapi.json. Guide: https://bowmark.ai/docs/api.","contact":{"email":"support@bowmark.ai","url":"https://bowmark.ai/docs/api"}},"servers":[{"url":"https://api.bowmark.ai"}],"security":[{"bearer":[]},{"apiKeyHeader":[]}],"paths":{"/v1/sites/solidcore/listStudios":{"post":{"operationId":"listStudios","summary":"Lists [solidcore] studios from the chain's own booking backend (~197 rows total): name, full address, state, siteId/locationId pair (what getSchedule and the booking functions key on), phone, email, a","description":"Lists [solidcore] studios from the chain's own booking backend (~197 rows total): name, full address, state, siteId/locationId pair (what getSchedule and the booking functions key on), phone, email, and whether the site marks it coming soon. Pass { state: \"CA\" } to narrow to one state; omit for every studio.\n\nCalls `bowmark.providers.solidcore.listStudios`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcoreStudio[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListStudiosArgs","description":"TypeScript: `ListStudiosArgs`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/getStudio":{"post":{"operationId":"getStudio","summary":"Returns one [solidcore] studio's own record off the same registry listStudios reads — name, full address, state, siteId/locationId pair, phone, email, and whether it's coming soon.","description":"Returns one [solidcore] studio's own record off the same registry listStudios reads — name, full address, state, siteId/locationId pair, phone, email, and whether it's coming soon. Look it up by { slug } (the site's own studioIdentifier, e.g. \"castro\" — globally unique) or { siteId, locationId } together (locationId alone repeats across siteId's ~38 regional groups). Throws if neither matches.\n\nCalls `bowmark.providers.solidcore.getStudio`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcoreStudio>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetStudioArgs","description":"TypeScript: `GetStudioArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/getSchedule":{"post":{"operationId":"getSchedule","summary":"Returns the class schedule for one [solidcore] studio over a date window — class name, coach, start/end time, capacity, openings, waitlist size and a live availability (\"bookable\" | \"waitlist\" | \"full","description":"Returns the class schedule for one [solidcore] studio over a date window — class name, coach, start/end time, capacity, openings, waitlist size and a live availability (\"bookable\" | \"waitlist\" | \"full_no_waitlist\"). Takes { locationId } (what listStudios returns) and optional { startDate, endDate } as \"YYYY-MM-DD\"; the window defaults to today through seven days out.\n\nCalls `bowmark.providers.solidcore.getSchedule`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcoreClass[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetScheduleArgs","description":"TypeScript: `GetScheduleArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/getClass":{"post":{"operationId":"getClass","summary":"Returns one class's full detail — the same fields getSchedule's rows carry, since the backend has no separate per-class detail endpoint.","description":"Returns one class's full detail — the same fields getSchedule's rows carry, since the backend has no separate per-class detail endpoint. Takes { id, locationId } (both off a getSchedule row) and optional { startDate, endDate } to widen the search window beyond the default seven days when the class falls outside it.\n\nCalls `bowmark.providers.solidcore.getClass`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcoreClass>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetClassArgs","description":"TypeScript: `GetClassArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/listCoaches":{"post":{"operationId":"listCoaches","summary":"Lists the coaches shown on one [solidcore] studio's own page — name, the site's \"/trainer/<slug>\" identifier, role (e.g.","description":"Lists the coaches shown on one [solidcore] studio's own page — name, the site's \"/trainer/<slug>\" identifier, role (e.g. \"Senior Master Coach\", empty when the page shows none), and photo URL. The booking backend has no coach-roster JSON door, so this reads the studio page's own server-rendered grid. Takes { slug } (globally unique) or { siteId, locationId } together — same lookup as getStudio.\n\nCalls `bowmark.providers.solidcore.listCoaches`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcoreCoach[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListCoachesArgs","description":"TypeScript: `ListCoachesArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/getCoach":{"post":{"operationId":"getCoach","summary":"Returns one [solidcore] coach's own profile page — name, role (e.g.","description":"Returns one [solidcore] coach's own profile page — name, role (e.g. \"Senior Master Coach\", empty when the page shows none), the page's own bio blurb, and photo URL. The booking backend has no coach-detail JSON door, so this reads the trainer page's own server-rendered markup directly. Takes { slug } — a listCoaches row's own \"/trainer/<slug>\" identifier. Throws if the slug does not resolve to a coach.\n\nCalls `bowmark.providers.solidcore.getCoach`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcoreCoachProfile>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetCoachArgs","description":"TypeScript: `GetCoachArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/listMuscleGroups":{"post":{"operationId":"listMuscleGroups","summary":"Returns the chain-wide daily muscle-focus calendar — a primary and secondary muscle group per day (e.g.","description":"Returns the chain-wide daily muscle-focus calendar — a primary and secondary muscle group per day (e.g. \"Hamstrings\" / \"Biceps\"), the same calendar every studio's schedule follows. Chain-wide, not per-studio. Takes optional { startDate, endDate } as \"YYYY-MM-DD\"; the window defaults to today through seven days out.\n\nCalls `bowmark.providers.solidcore.listMuscleGroups`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcoreMuscleFocusDay[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListMuscleGroupsArgs","description":"TypeScript: `ListMuscleGroupsArgs`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/getPricing":{"post":{"operationId":"getPricing","summary":"Returns one [solidcore] studio's pricing: one-time passes (drop-ins and class packs, with the price, price-per-class and class count) and recurring memberships (the autopay monthly price, first paymen","description":"Returns one [solidcore] studio's pricing: one-time passes (drop-ins and class packs, with the price, price-per-class and class count) and recurring memberships (the autopay monthly price, first payment and total contract price). Takes { locationId } (what listStudios returns); the site's catalog is filtered to what sells at that studio.\n\nCalls `bowmark.providers.solidcore.getPricing`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcorePricing>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetPricingArgs","description":"TypeScript: `GetPricingArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/getPack":{"post":{"operationId":"getPack","summary":"Returns one [solidcore] class pack, drop-in or intro pass in full: price, price per class, class count, how long it stays valid (e.g.","description":"Returns one [solidcore] class pack, drop-in or intro pass in full: price, price per class, class count, how long it stays valid (e.g. 90 days from purchase), whether it sells online, and which studios its classes can be booked at. Takes { locationId, id } — the id off a getPricing pass. No sign-in needed.\n\nCalls `bowmark.providers.solidcore.getPack`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcorePack>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetPackArgs","description":"TypeScript: `GetPackArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/listClassCategories":{"post":{"operationId":"listClassCategories","summary":"Lists the class FORMATS [solidcore] offers chain-wide — e.g.","description":"Lists the class FORMATS [solidcore] offers chain-wide — e.g. \"Signature50\", \"Power30\", \"Starter50\" — each with its own description. The booking backend has no separate category door and the site's own top-level `category` field is one chain-wide value (\"Strength training\") for every class, so this samples one studio's 90-day schedule and groups rows by their own `classTypeId`.\n\nCalls `bowmark.providers.solidcore.listClassCategories`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcoreClassCategory[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/searchClasses":{"post":{"operationId":"searchClasses","summary":"Narrows one [solidcore] studio's class schedule by coach, category, the day's chain-wide muscle focus, or live availability — the booking backend's own `/class` door takes no such filter, so this read","description":"Narrows one [solidcore] studio's class schedule by coach, category, the day's chain-wide muscle focus, or live availability — the booking backend's own `/class` door takes no such filter, so this reads getSchedule's rows (and, for a muscleGroup search, listMuscleGroups' daily calendar) and filters them. Takes { locationId } (required, what listStudios returns) plus any of { coach, category, muscleGroup } (case-insensitive substring match), { availability } (\"bookable\" | \"waitlist\" | \"full_no_waitlist\"), and { startDate, endDate } as \"YYYY-MM-DD\" (defaults to today through seven days out, same as getSchedule).\n\nCalls `bowmark.providers.solidcore.searchClasses`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcoreClass[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SearchClassesArgs","description":"TypeScript: `SearchClassesArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/checkAvailability":{"post":{"operationId":"checkAvailability","summary":"Checks one [solidcore] class's live availability right now — \"bookable\" | \"waitlist\" | \"full_no_waitlist\", plus capacity, open spots, waitlist size and whether it was canceled.","description":"Checks one [solidcore] class's live availability right now — \"bookable\" | \"waitlist\" | \"full_no_waitlist\", plus capacity, open spots, waitlist size and whether it was canceled. Takes { id, locationId } (both off a getSchedule row) and optional { startDate, endDate } to widen the search window beyond the default seven days.\n\nCalls `bowmark.providers.solidcore.checkAvailability`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SolidcoreClassAvailability>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/CheckAvailabilityArgs","description":"TypeScript: `CheckAvailabilityArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/bookClass":{"post":{"operationId":"bookClass","summary":"Books the signed-in member into a [solidcore] class, spending a pass or membership they already hold — never a purchase.","description":"Books the signed-in member into a [solidcore] class, spending a pass or membership they already hold — never a purchase. Takes { id, date } off a getSchedule row plus the studio's { siteId, locationId } from listStudios; optional { packageId } picks which pass to spend. Needs the caller signed in; returns the site's own confirmation raw. Throws if already booked into another class at that time.\n\nCalls `bowmark.providers.solidcore.bookClass`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<unknown>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/BookClassArgs","description":"TypeScript: `BookClassArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/solidcore/joinWaitlist":{"post":{"operationId":"joinWaitlist","summary":"Joins the signed-in member to a full [solidcore] class's waitlist — the same booking door as bookClass with the site's own `Waitlist: true` flag.","description":"Joins the signed-in member to a full [solidcore] class's waitlist — the same booking door as bookClass with the site's own `Waitlist: true` flag. Use it on a getSchedule row whose availability is \"waitlist\". Same arguments as bookClass; needs the caller signed in; returns the site's response raw.\n\nCalls `bowmark.providers.solidcore.joinWaitlist`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<unknown>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/BookClassArgs","description":"TypeScript: `BookClassArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Your Bowmark API key."},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-Bowmark-Key"}},"responses":{"NotFound":{"description":"No such site or function.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}},"schemas":{"RunEnvelope":{"type":"object","description":"What a run returns. `status` says whether the SCRIPT succeeded. A script that threw or paused for a login is still HTTP 200. Branch on `status`, not on the HTTP code.","required":["ok","status","result","logs","error","ms"],"properties":{"runId":{"type":"string","description":"Stable id for this run. Quote it in a support or `report` message."},"ok":{"type":"boolean","description":"False only when the run produced nothing usable."},"status":{"type":"string","enum":["ok","error","partial","needs_user"],"description":"`partial`: the result is real but some calls failed (see `incomplete`); `ok` stays true. `needs_user`: a person must sign in to a site first. Relay `meta.handoff.url` to them, then run again."},"egress":{"type":"string","enum":["default","link"],"description":"The egress the run was given, present only when the request asked for one. `link`: every request went through the caller's own Chrome (Bowmark Buddy)."},"result":{"description":"Whatever the script `return`ed. Any JSON value."},"logs":{"type":"array","items":{"type":"string"},"description":"Lines the script wrote with `log(...)`."},"error":{"type":["string","null"],"description":"Why the run failed, in plain words. Null on success."},"ms":{"type":"integer","description":"How long the script itself ran, in milliseconds."},"queuedMs":{"type":"integer","description":"How long the run waited for a worker before starting. Present only when it was a second or more."},"needs":{"type":"array","description":"The sign-ins this script is waiting on. Present when `status` is `needs_user`.","items":{"type":"object","required":["capability","provider","providerTitle","kind"],"properties":{"capability":{"type":"string"},"provider":{"type":"string"},"providerTitle":{"type":"string","description":"The site's name, to show a person."},"kind":{"type":"string"}}}},"incomplete":{"type":"object","description":"Present only when `status` is `partial`: which calls did not answer.","properties":{"summary":{"type":"string"},"totalCalls":{"type":"integer"}},"additionalProperties":true},"emptyHanded":{"type":"object","description":"Present when the script returned nothing while its calls returned rows, usually a filter that matched none of the site's own labels. Lists the label values the calls actually returned.","additionalProperties":true},"notes":{"type":"array","description":"Caveats a call attached to a complete answer. Never changes `status`.","items":{"type":"object","properties":{"path":{"type":"string"},"notes":{"type":"array","items":{"type":"string"}}}}},"meta":{"type":"object","properties":{"handoff":{"type":"object","description":"A single-use sign-in link for a person to open. Expires at `expiresAt`.","properties":{"ref":{"type":"string"},"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"}}},"concurrency":{"type":"object","description":"On a 429: how many runs are in flight and when to retry.","properties":{"limit":{"type":"integer"},"inFlight":{"type":"integer"},"retryAfterSeconds":{"type":"integer"}}}},"additionalProperties":true},"notice":{"type":"object","description":"Set when the account owner has not accepted the current Terms. Relay it to them.","additionalProperties":true}}},"BookClassArgs":{"type":"object","properties":{"id":{"type":"number"},"date":{"type":"string"},"siteId":{"type":"string"},"locationId":{"type":"string"},"packageId":{"type":"number"},"membershipId":{"type":"number"}},"required":["id","date","siteId","locationId"],"additionalProperties":true},"CheckAvailabilityArgs":{"$ref":"#/components/schemas/GetClassArgs"},"GetClassArgs":{"type":"object","properties":{"id":{"type":"number"},"locationId":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["id","locationId"],"additionalProperties":true},"GetCoachArgs":{"type":"object","properties":{"slug":{"type":"string"}},"required":["slug"],"additionalProperties":true},"GetPackArgs":{"type":"object","properties":{"locationId":{"type":"string"},"id":{"type":"string"}},"required":["locationId","id"],"additionalProperties":true},"GetPricingArgs":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"],"additionalProperties":true},"GetScheduleArgs":{"type":"object","properties":{"locationId":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["locationId"],"additionalProperties":true},"GetStudioArgs":{"type":"object","properties":{"locationId":{"type":"string"},"siteId":{"type":"string"},"slug":{"type":"string"}},"additionalProperties":true},"ListCoachesArgs":{"type":"object","properties":{"locationId":{"type":"string"},"siteId":{"type":"string"},"slug":{"type":"string"}},"additionalProperties":true},"ListMuscleGroupsArgs":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"}},"additionalProperties":true},"ListStudiosArgs":{"type":"object","properties":{"state":{"type":"string"}},"additionalProperties":true},"SearchClassesArgs":{"type":"object","properties":{"locationId":{"type":"string"},"coach":{"type":"string"},"category":{"type":"string"},"muscleGroup":{"type":"string"},"availability":{"anyOf":[{"const":"bookable"},{"const":"waitlist"},{"const":"full_no_waitlist"}]},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["locationId"],"additionalProperties":true}}}}