{"openapi":"3.1.0","info":{"title":"Wodify API (Bowmark)","version":"e833508f87ff","description":"Wodify gym booking — class schedules, pricing and member functions for Wodify-powered gyms.\n\nEvery function Bowmark has for Wodify (wodify.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/wodify/findGym":{"post":{"operationId":"findGym","summary":"Resolves a Wodify-powered gym to the `gymHost` + `locationId` pair `listGymSchedule` and `getClassDetails` take, by reading the Wodify booking embed off the gym's OWN website page (e.g.","description":"Resolves a Wodify-powered gym to the `gymHost` + `locationId` pair `listGymSchedule` and `getClassDetails` take, by reading the Wodify booking embed off the gym's OWN website page (e.g. \"https://www.crossfitalinea.com/schedule\" → crossfitalineamembership.wodify.com, 596). No login, no browser. Wodify runs no public gym directory, so this takes the gym's site URL, not a name; one entry per distinct embed (a multi-location gym can carry several). Throws a caller-fixable error when the page has no Wodify embed.\n\nCalls `bowmark.providers.wodify.findGym`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyGym[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":true,"description":"TypeScript: `{ url: string }`"}},"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/wodify/listGymSchedule":{"post":{"operationId":"listGymSchedule","summary":"Reads one Wodify-powered gym's public class schedule for a single day — class name, program, start/end time, coach names, and live capacity (limit, reserved, available, waitlisted).","description":"Reads one Wodify-powered gym's public class schedule for a single day — class name, program, start/end time, coach names, and live capacity (limit, reserved, available, waitlisted). No login: this is the same logged-out schedule every visitor to the gym's booking page sees. `gymHost` is the gym's own `<gym>.wodify.com` subdomain (e.g. \"crossfitalineamembership.wodify.com\" for CrossFit Alinea) and `locationId` is the numeric id in its booking embed's `?LocationId=` query param — both read straight off the gym's public `/OnlineSalesPage/WebIntegration` page. `date` (ISO yyyy-mm-dd) defaults to today.\n\nCalls `bowmark.providers.wodify.listGymSchedule`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyScheduleClass[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"},"locationId":{"type":"number"},"date":{"type":"string"}},"required":["gymHost","locationId"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string; locationId: number; date?: string }`"}},"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/wodify/getClassDetails":{"post":{"operationId":"getClassDetails","summary":"Reads full detail for one scheduled class off the same public booking embed `listGymSchedule` reads — its description, program id and named location, beside everything `listGymSchedule` already report","description":"Reads full detail for one scheduled class off the same public booking embed `listGymSchedule` reads — its description, program id and named location, beside everything `listGymSchedule` already reports. No login. There is no per-class endpoint on this site: `classId` (read off a `listGymSchedule` row's `id`) is matched against that day's schedule, so `date` must be the same day the class was listed on (ISO yyyy-mm-dd, defaults to today).\n\nCalls `bowmark.providers.wodify.getClassDetails`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyClassDetails>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"},"locationId":{"type":"number"},"classId":{"type":"number"},"date":{"type":"string"}},"required":["gymHost","locationId","classId"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string; locationId: number; classId: number; date?: string }`"}},"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/wodify/listMemberships":{"post":{"operationId":"listMemberships","summary":"Lists every membership plan, class pack and drop-in a Wodify-powered gym sells online, with its \"from\" price, what it includes (e.g.","description":"Lists every membership plan, class pack and drop-in a Wodify-powered gym sells online, with its \"from\" price, what it includes (e.g. \"Unlimited\", \"10 Classes\") and the programs it covers. No login. `gymHost` + `locationId` come from findGym. No browser: it replays the BOOK step of the gym's first bookable class in the next 7 days, so the list is the one shown for that class's program, which on a typical gym is its whole online price list. A gym with no bookable class that week throws rather than answering [].\n\nCalls `bowmark.providers.wodify.listMemberships`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyMembership[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"},"locationId":{"type":"number"}},"required":["gymHost","locationId"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string; locationId: number }`"}},"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/wodify/listPrograms":{"post":{"operationId":"listPrograms","summary":"Lists every program/track a Wodify-powered gym offers (e.g.","description":"Lists every program/track a Wodify-powered gym offers (e.g. \"CrossFit\", \"Hyrox\", \"Oly\"), each with its own program id. No login, and no extra request beyond the same session bootstrap listGymSchedule pays for: the gym's own schedule page builds this list from its live program roster while bootstrapping. `gymHost` + `locationId` come from findGym.\n\nCalls `bowmark.providers.wodify.listPrograms`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyProgram[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"},"locationId":{"type":"number"}},"required":["gymHost","locationId"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string; locationId: number }`"}},"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/wodify/listPrices":{"post":{"operationId":"listPrices","summary":"Returns the gym's full online price list — every membership plan, class pack and drop-in it sells, with its price.","description":"Returns the gym's full online price list — every membership plan, class pack and drop-in it sells, with its price. No login. Identical to listMemberships: Wodify's booking app publishes one price list, not two, so this is the same call under the name callers look for pricing under.\n\nCalls `bowmark.providers.wodify.listPrices`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyMembership[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"},"locationId":{"type":"number"}},"required":["gymHost","locationId"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string; locationId: number }`"}},"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/wodify/getGymInfo":{"post":{"operationId":"getGymInfo","summary":"Reads a Wodify-powered gym's public contact details — street address, city, region, postal code, country, email, phone and website — plus the name and latitude/longitude of the location `locationId` n","description":"Reads a Wodify-powered gym's public contact details — street address, city, region, postal code, country, email, phone and website — plus the name and latitude/longitude of the location `locationId` names and the list of every location the gym runs on Wodify. No login; `gymHost` + `locationId` come from findGym. Opening hours are not published by Wodify's booking app, so they are not returned. Fields the gym left blank come back null.\n\nCalls `bowmark.providers.wodify.getGymInfo`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyGymInfo>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"},"locationId":{"type":"number"}},"required":["gymHost","locationId"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string; locationId: number }`"}},"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/wodify/checkFreeTrial":{"post":{"operationId":"checkFreeTrial","summary":"Says whether a Wodify-powered gym lets a newcomer book a free trial class online, and lists the classes in the next `days` days (integer 1-14, default 7) that accept one, with the trial-spot cap (null","description":"Says whether a Wodify-powered gym lets a newcomer book a free trial class online, and lists the classes in the next `days` days (integer 1-14, default 7) that accept one, with the trial-spot cap (null when uncapped) and whether it is full. No login; `gymHost` + `locationId` come from findGym. `offered: false` means no class in the window takes an online trial, which is common — many gyms run trials by enquiry instead.\n\nCalls `bowmark.providers.wodify.checkFreeTrial`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyFreeTrial>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"},"locationId":{"type":"number"},"days":{"type":"number"}},"required":["gymHost","locationId"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string; locationId: number; days?: number }`"}},"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/wodify/readTerms":{"post":{"operationId":"readTerms","summary":"Reads one scheduled class's booking, cancellation and waitlist policy — how long before it starts online booking opens and closes, the cancellation window, whether a full class takes a waitlist, and w","description":"Reads one scheduled class's booking, cancellation and waitlist policy — how long before it starts online booking opens and closes, the cancellation window, whether a full class takes a waitlist, and whether the gym auto-cancels it if nobody reserves a spot. No login. There is no separate terms/policy door on this site: the policy lives on the same schedule row getClassDetails reads, so `classId` (off a `listGymSchedule` row's `id`) is matched against that day's schedule exactly as getClassDetails does — `date` must be the same day the class was listed on (ISO yyyy-mm-dd, defaults to today). A duration comes back null when the gym set no limit.\n\nCalls `bowmark.providers.wodify.readTerms`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyBookingPolicy>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"},"locationId":{"type":"number"},"classId":{"type":"number"},"date":{"type":"string"}},"required":["gymHost","locationId","classId"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string; locationId: number; classId: number; date?: string }`"}},"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/wodify/listInstructors":{"post":{"operationId":"listInstructors","summary":"Lists the coaches a Wodify-powered gym publishes on its booking page's Coaches tab — each with name, title, bio, photo URL and social/contact links, in the gym's own line-up order.","description":"Lists the coaches a Wodify-powered gym publishes on its booking page's Coaches tab — each with name, title, bio, photo URL and social/contact links, in the gym's own line-up order. No login; `gymHost` + `locationId` come from findGym. Many gyms leave \"Display Coaches Publicly\" off or publish nobody, so `coaches` is often empty; that is the gym's answer, not an error. The schedule's per-class coach names are blanked for logged-out visitors, so this is the only public roster.\n\nCalls `bowmark.providers.wodify.listInstructors`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyCoachRoster>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"},"locationId":{"type":"number"}},"required":["gymHost","locationId"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string; locationId: number }`"}},"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/wodify/getMyBookings":{"post":{"operationId":"getMyBookings","summary":"Lists the signed-in member's upcoming classes and appointments at one Wodify-powered gym — class name, program, location, coach, start/end time, Wodify's own status label, the membership it is booked ","description":"Lists the signed-in member's upcoming classes and appointments at one Wodify-powered gym — class name, program, location, coach, start/end time, Wodify's own status label, the membership it is booked on, and any late-cancel or no-show fee. Needs the member signed in on that gym's Wodify booking page; the run pauses for a sign-in if nobody is. `gymHost` comes from findGym. An empty array means nothing is booked.\n\nCalls `bowmark.providers.wodify.getMyBookings`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyBooking[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"}},"required":["gymHost"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string }`"},"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/wodify/getMyMembership":{"post":{"operationId":"getMyMembership","summary":"Lists the memberships, class packs and appointment packs the signed-in member holds at one Wodify-powered gym, active ones first — plan name and type, start and expiry dates, any scheduled deactivatio","description":"Lists the memberships, class packs and appointment packs the signed-in member holds at one Wodify-powered gym, active ones first — plan name and type, start and expiry dates, any scheduled deactivation, sessions used of the total (null total when unlimited), whether it auto-renews and on what payment schedule, and the member's sign-in, reservation, no-show and late-cancel counts on it. Needs the member signed in on that gym's Wodify booking page; the run pauses for a sign-in if nobody is. `gymHost` comes from findGym.\n\nCalls `bowmark.providers.wodify.getMyMembership`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WodifyHeldPlan[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"gymHost":{"type":"string"}},"required":["gymHost"],"additionalProperties":true,"description":"TypeScript: `{ gymHost: string }`"},"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}}}}}}