{"openapi":"3.1.0","info":{"title":"SWTHZ (Sweathouz) API (Bowmark)","version":"e833508f87ff","description":"SWTHZ (sweathouz.com) private contrast-therapy suites (sauna, cold plunge, shower) booked as timed 60-minute appointments: read studios, open suite times and pricing, and (signed in with an emailed one-time code) book, cancel and list a customer's appointments.\n\nEvery function Bowmark has for SWTHZ (Sweathouz) (sweathouz.com) 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/sweathouz/listStudios":{"post":{"operationId":"listStudios","summary":"Lists SWTHZ (Sweathouz) infrared-sauna and cold-plunge studios from the site's own store locator — id, name, address, coordinates, opening hours and booking link — optionally filtered by name, city, s","description":"Lists SWTHZ (Sweathouz) infrared-sauna and cold-plunge studios from the site's own store locator — id, name, address, coordinates, opening hours and booking link — optionally filtered by name, city, state or ZIP. The entry point: its `id` is what getAvailability takes.\n\nCalls `bowmark.providers.sweathouz.listStudios`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzStudio[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SweathouzListStudiosArgs","description":"TypeScript: `SweathouzListStudiosArgs`"}},"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/sweathouz/getAvailability":{"post":{"operationId":"getAvailability","summary":"Lists the open 60-minute contrast-therapy appointment times at one SWTHZ studio on one date, read from the studio's own booking app — start time, session type and suite.","description":"Lists the open 60-minute contrast-therapy appointment times at one SWTHZ studio on one date, read from the studio's own booking app — start time, session type and suite. Anonymous; no sign-in needed to see times.\n\nCalls `bowmark.providers.sweathouz.getAvailability`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzAvailability>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SweathouzAvailabilityArgs","description":"TypeScript: `SweathouzAvailabilityArgs`"}},"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/sweathouz/getPricing":{"post":{"operationId":"getPricing","summary":"Reads one SWTHZ studio's own priced session options (the main contrast-therapy session and the plus-one-guest add-on) off its booking app's pricing door.","description":"Reads one SWTHZ studio's own priced session options (the main contrast-therapy session and the plus-one-guest add-on) off its booking app's pricing door. Anonymous; no sign-in needed. The site's own pricing string carries one undocumented trailing field on the main option, kept as an opaque `label` rather than guessed at.\n\nCalls `bowmark.providers.sweathouz.getPricing`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzPricing>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SweathouzGetPricingArgs","description":"TypeScript: `SweathouzGetPricingArgs`"}},"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/sweathouz/listMemberships":{"post":{"operationId":"listMemberships","summary":"Lists one SWTHZ studio's own session packs (one-time) and membership tiers (monthly), each with its real price, duration/credit terms, perks and the site's own purchase link — read off the studio's pu","description":"Lists one SWTHZ studio's own session packs (one-time) and membership tiers (monthly), each with its real price, duration/credit terms, perks and the site's own purchase link — read off the studio's public marketing page, which carries both ('one time' / '/mo' billing tells them apart). Anonymous; no sign-in needed.\n\nCalls `bowmark.providers.sweathouz.listMemberships`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzPlans>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SweathouzListMembershipsArgs","description":"TypeScript: `SweathouzListMembershipsArgs`"}},"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/sweathouz/getStudioHours":{"post":{"operationId":"getStudioHours","summary":"Looks up one SWTHZ studio's operating hours by id or name — the same `hours` listStudios already carries per studio, for a caller who only has one studio in hand.","description":"Looks up one SWTHZ studio's operating hours by id or name — the same `hours` listStudios already carries per studio, for a caller who only has one studio in hand. Anonymous; no sign-in needed.\n\nCalls `bowmark.providers.sweathouz.getStudioHours`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzHours>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SweathouzGetStudioHoursArgs","description":"TypeScript: `SweathouzGetStudioHoursArgs`"}},"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/sweathouz/findStudio":{"post":{"operationId":"findStudio","summary":"Fuzzy-searches SWTHZ studios by name, city, state, ZIP or keyword, tolerating typos and partial names — unlike listStudios' exact-substring filter, this ranks every studio by similarity and returns th","description":"Fuzzy-searches SWTHZ studios by name, city, state, ZIP or keyword, tolerating typos and partial names — unlike listStudios' exact-substring filter, this ranks every studio by similarity and returns the closest matches with a 0-1 score. Anonymous; no sign-in needed.\n\nCalls `bowmark.providers.sweathouz.findStudio`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzStudioMatch[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SweathouzFindStudioArgs","description":"TypeScript: `SweathouzFindStudioArgs`"}},"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/sweathouz/getPromoCode":{"post":{"operationId":"getPromoCode","summary":"Checks a promo code against one SWTHZ studio's priced session option(s) and returns the discounted total, or the site's own rejection wording when the code is invalid or expired.","description":"Checks a promo code against one SWTHZ studio's priced session option(s) and returns the discounted total, or the site's own rejection wording when the code is invalid or expired. Anonymous; no sign-in needed — but the site's own door requires an identified customer, so `caller` (the CALLER's own name/email/phone) is required to look the code up through sweathouz's getUserSearch.php.\n\nCalls `bowmark.providers.sweathouz.getPromoCode`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzPromoCodeResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SweathouzGetPromoCodeArgs","description":"TypeScript: `SweathouzGetPromoCodeArgs`"}},"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/sweathouz/myBookings":{"post":{"operationId":"myBookings","summary":"Reads the signed-in customer's sweathouz.com/account/ page.","description":"Reads the signed-in customer's sweathouz.com/account/ page. NEEDS A SIGN-IN: pauses the run for a caller sign-in when none is held. The account dashboard's own post-login layout has never been captured, so this carries the account page's own visible text rather than a parsed shape — see SweathouzAccountPage's doc comment in index.ts.\n\nCalls `bowmark.providers.sweathouz.myBookings`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzAccountPage>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"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/sweathouz/listCredits":{"post":{"operationId":"listCredits","summary":"Reads the signed-in customer's sweathouz.com/account/ page, for the customer's available credits.","description":"Reads the signed-in customer's sweathouz.com/account/ page, for the customer's available credits. NEEDS A SIGN-IN. Returns the same raw account-page text as myBookings and listPacks — see SweathouzAccountPage's doc comment in index.ts for why.\n\nCalls `bowmark.providers.sweathouz.listCredits`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzAccountPage>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"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/sweathouz/listPacks":{"post":{"operationId":"listPacks","summary":"Reads the signed-in customer's sweathouz.com/account/ page, for the customer's active or inactive pack memberships.","description":"Reads the signed-in customer's sweathouz.com/account/ page, for the customer's active or inactive pack memberships. NEEDS A SIGN-IN. Returns the same raw account-page text as myBookings and listCredits — see SweathouzAccountPage's doc comment in index.ts for why.\n\nCalls `bowmark.providers.sweathouz.listPacks`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzAccountPage>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"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/sweathouz/book":{"post":{"operationId":"book","summary":"Books the signed-in customer into a SWTHZ appointment.","description":"Books the signed-in customer into a SWTHZ appointment. NEEDS A SIGN-IN: pauses the run for a caller sign-in when none is held. The account dashboard's own \"book a new session\" control has never been seen (no fleet-held session exists), so this looks for one by its on-screen wording and REFUSES rather than guess past it — the one booking door this provider has measured (the /intro/ checkout widget) takes a new card and a reCAPTCHA solve on every booking with no signed-in branch in its own bundle, so this never submits one on the caller's behalf. `message` is whatever the site's own UI reported after the attempt.\n\nCalls `bowmark.providers.sweathouz.book`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzBookResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SweathouzBookingTargetArgs","description":"TypeScript: `SweathouzBookingTargetArgs`"},"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/sweathouz/cancel":{"post":{"operationId":"cancel","summary":"Cancels the signed-in customer's SWTHZ appointment matching the given studio, date and time.","description":"Cancels the signed-in customer's SWTHZ appointment matching the given studio, date and time. NEEDS A SIGN-IN: pauses the run for a caller sign-in when none is held. The account dashboard's own layout has never been captured, so this matches a booking row by its visible date/time text and a nearby \"Cancel\" control, and REFUSES rather than guess when no such row is found. `message` is whatever the site's own UI reported after the attempt.\n\nCalls `bowmark.providers.sweathouz.cancel`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SweathouzCancelResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SweathouzBookingTargetArgs","description":"TypeScript: `SweathouzBookingTargetArgs`"},"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}}},"SweathouzAvailabilityArgs":{"type":"object","properties":{"studio":{"type":"string"},"date":{"type":"string"}},"required":["studio"],"additionalProperties":true},"SweathouzBookingTargetArgs":{"type":"object","properties":{"studio":{"type":"string"},"date":{"type":"string"},"time":{"type":"string"}},"required":["studio","date","time"],"additionalProperties":true},"SweathouzCallerIdentity":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"dob":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}},"required":["firstName","lastName","dob","email","phone"],"additionalProperties":true},"SweathouzFindStudioArgs":{"type":"object","properties":{"query":{"type":"string"},"limit":{"type":"number"}},"required":["query"],"additionalProperties":true},"SweathouzGetPricingArgs":{"type":"object","properties":{"studio":{"type":"string"}},"required":["studio"],"additionalProperties":true},"SweathouzGetPromoCodeArgs":{"type":"object","properties":{"studio":{"type":"string"},"promoCode":{"type":"string"},"caller":{"$ref":"#/components/schemas/SweathouzCallerIdentity"}},"required":["studio","promoCode","caller"],"additionalProperties":true},"SweathouzGetStudioHoursArgs":{"type":"object","properties":{"studio":{"type":"string"}},"required":["studio"],"additionalProperties":true},"SweathouzListMembershipsArgs":{"type":"object","properties":{"studio":{"type":"string"}},"required":["studio"],"additionalProperties":true},"SweathouzListStudiosArgs":{"type":"object","properties":{"query":{"type":"string"},"includeComingSoon":{"type":"boolean"}},"additionalProperties":true}}}}