{"openapi":"3.1.0","info":{"title":"Fandom API (Bowmark)","version":"e833508f87ff","description":"Read any Fandom wiki — the fan-written encyclopedia behind nearly every TV show, game and franchise community — without a browser: find the right wiki, search it, pull an article, its infobox, categories and discussion posts.\n\nEvery function Bowmark has for Fandom (fandom.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/fandom/getWikiInfo":{"post":{"operationId":"getWikiInfo","summary":"A wiki's own vital stats — its real display name (`Wookieepedia`, not the `starwars` subdomain), main page, logo, and canonical url, read off `action=query&meta=siteinfo`.","description":"A wiki's own vital stats — its real display name (`Wookieepedia`, not the `starwars` subdomain), main page, logo, and canonical url, read off `action=query&meta=siteinfo`. Confirms a `wiki` subdomain guess is actually the right wiki before anything else is called against it.\n\nCalls `bowmark.providers.fandom.getWikiInfo`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WikiInfo>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"wiki":{"type":"string","description":"TypeScript: `string`"}},"required":["wiki"],"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/fandom/search":{"post":{"operationId":"search","summary":"Search one wiki the way a person types into its search box — find matching pages with id, title, url, size, word count and timestamp.","description":"Search one wiki the way a person types into its search box — find matching pages with id, title, url, size, word count and timestamp. `GET /api.php?action=query&list=search`.\n\nCalls `bowmark.providers.fandom.search`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SearchResult[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SearchArgs","description":"TypeScript: `SearchArgs`"}},"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/fandom/suggestTitles":{"post":{"operationId":"suggestTitles","summary":"Autocomplete a partial title within one wiki, the way its search box does as you type — get suggestions with title and description.","description":"Autocomplete a partial title within one wiki, the way its search box does as you type — get suggestions with title and description. `GET /api.php?action=opensearch`.\n\nCalls `bowmark.providers.fandom.suggestTitles`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SuggestTitle[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SuggestTitlesArgs","description":"TypeScript: `SuggestTitlesArgs`"}},"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/fandom/getArticle":{"post":{"operationId":"getArticle","summary":"A wiki article in full — title, body as plain text with wiki markup stripped, canonical url, page id, and revision.","description":"A wiki article in full — title, body as plain text with wiki markup stripped, canonical url, page id, and revision. Takes a title within a wiki you specify, or a full `*.fandom.com/wiki/*` url where the wiki is auto-detected. `GET /api.php?action=parse&prop=text`.\n\nCalls `bowmark.providers.fandom.getArticle`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Article>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetArticleArgs","description":"TypeScript: `GetArticleArgs`"}},"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/fandom/getSummary":{"post":{"operationId":"getSummary","summary":"Just the lead section of a wiki article — the same shape `getArticle` returns, pinned to section 0.","description":"Just the lead section of a wiki article — the same shape `getArticle` returns, pinned to section 0. Fandom has no RESTBase `page/summary` surface (that is Wikimedia-only), so this is `getArticle`'s own call with `section=0` added. `GET /api.php?action=parse&prop=text&section=0`.\n\nCalls `bowmark.providers.fandom.getSummary`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Article>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetSummaryArgs","description":"TypeScript: `GetSummaryArgs`"}},"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/fandom/getSections":{"post":{"operationId":"getSections","summary":"An article's table of contents — every section with its index, heading, nesting level and number, in page order.","description":"An article's table of contents — every section with its index, heading, nesting level and number, in page order. The door to `getSection`. `GET /api.php?action=parse&prop=sections`.\n\nCalls `bowmark.providers.fandom.getSections`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Section[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetSectionsArgs","description":"TypeScript: `GetSectionsArgs`"}},"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/fandom/getSection":{"post":{"operationId":"getSection","summary":"One named or numbered section of an article, without downloading the rest of the page.","description":"One named or numbered section of an article, without downloading the rest of the page. Takes the index `getSections` returns, or the heading text. `GET /api.php?action=parse&section=N&prop=text`.\n\nCalls `bowmark.providers.fandom.getSection`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Article>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetSectionArgs","description":"TypeScript: `GetSectionArgs`"}},"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/fandom/getWikitext":{"post":{"operationId":"getWikitext","summary":"An article's raw wikitext source — what an editor sees in the edit box, templates and all.","description":"An article's raw wikitext source — what an editor sees in the edit box, templates and all. The input `getInfobox` parses. `GET /api.php?action=query&prop=revisions&rvprop=content&rvslots=main`.\n\nCalls `bowmark.providers.fandom.getWikitext`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Wikitext>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetWikitextArgs","description":"TypeScript: `GetWikitextArgs`"}},"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/fandom/getInfobox":{"post":{"operationId":"getInfobox","summary":"The fact box at the top of an article, as key/value pairs.","description":"The fact box at the top of an article, as key/value pairs. Parses `getWikitext`'s output for the first top-level template carrying at least two named parameters — each Fandom wiki names its own data template (`Character`, `Item`, …), unlike Wikipedia's fixed `{{Infobox}}` convention.\n\nCalls `bowmark.providers.fandom.getInfobox`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Infobox>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetInfoboxArgs","description":"TypeScript: `GetInfoboxArgs`"}},"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/fandom/listLinks":{"post":{"operationId":"listLinks","summary":"Every other article on the same wiki this one links to, in page order.","description":"Every other article on the same wiki this one links to, in page order. `GET /api.php?action=query&prop=links`.\n\nCalls `bowmark.providers.fandom.listLinks`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<LinkedPage[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListLinksArgs","description":"TypeScript: `ListLinksArgs`"}},"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/fandom/listBacklinks":{"post":{"operationId":"listBacklinks","summary":"What links HERE — every article on the wiki pointing at this one.","description":"What links HERE — every article on the wiki pointing at this one. `GET /api.php?action=query&list=backlinks`.\n\nCalls `bowmark.providers.fandom.listBacklinks`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Backlink[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListBacklinksArgs","description":"TypeScript: `ListBacklinksArgs`"}},"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/fandom/listExternalLinks":{"post":{"operationId":"listExternalLinks","summary":"Every link off-wiki from one article — sources and official sites the page cites, as raw urls.","description":"Every link off-wiki from one article — sources and official sites the page cites, as raw urls. `GET /api.php?action=query&prop=extlinks`.\n\nCalls `bowmark.providers.fandom.listExternalLinks`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<ExternalLink[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListExternalLinksArgs","description":"TypeScript: `ListExternalLinksArgs`"}},"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/fandom/listCategories":{"post":{"operationId":"listCategories","summary":"The categories an article belongs to — how a Fandom wiki organizes its own subject matter (a character's affiliations, a game's platform, an episode's season).","description":"The categories an article belongs to — how a Fandom wiki organizes its own subject matter (a character's affiliations, a game's platform, an episode's season). `GET /api.php?action=query&prop=categories`.\n\nCalls `bowmark.providers.fandom.listCategories`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WikiCategory[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListCategoriesArgs","description":"TypeScript: `ListCategoriesArgs`"}},"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/fandom/listCategoryMembers":{"post":{"operationId":"listCategoryMembers","summary":"Every article filed under one category — hand it \"Category:Characters\" (or just \"Characters\") and get every member page back, each labeled page/subcategory/file by its namespace.","description":"Every article filed under one category — hand it \"Category:Characters\" (or just \"Characters\") and get every member page back, each labeled page/subcategory/file by its namespace. A door in its own right: a category name is words a person would say. `GET /api.php?action=query&list=categorymembers`.\n\nCalls `bowmark.providers.fandom.listCategoryMembers`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<CategoryMember[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListCategoryMembersArgs","description":"TypeScript: `ListCategoryMembersArgs`"}},"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/fandom/listImages":{"post":{"operationId":"listImages","summary":"Every image used in an article, by file title, in page order — the door to `getImage`.","description":"Every image used in an article, by file title, in page order — the door to `getImage`. `GET /api.php?action=query&prop=images`.\n\nCalls `bowmark.providers.fandom.listImages`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WikiImage[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListImagesArgs","description":"TypeScript: `ListImagesArgs`"}},"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/fandom/getImage":{"post":{"operationId":"getImage","summary":"One image file's real details — full-size url, width, height, MIME type and licensing metadata where the wiki records it.","description":"One image file's real details — full-size url, width, height, MIME type and licensing metadata where the wiki records it. Takes a file title, usually from `listImages`. `GET /api.php?action=query&prop=imageinfo&iiprop=url|size|mime|extmetadata`.\n\nCalls `bowmark.providers.fandom.getImage`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<ImageInfo>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetImageArgs","description":"TypeScript: `GetImageArgs`"}},"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/fandom/listRevisions":{"post":{"operationId":"listRevisions","summary":"An article's edit history on this wiki — each revision with its id, timestamp, editor, edit summary and byte size, newest first.","description":"An article's edit history on this wiki — each revision with its id, timestamp, editor, edit summary and byte size, newest first. The door to `getRevision`. `GET /api.php?action=query&prop=revisions&rvprop=ids|timestamp|user|size|comment`.\n\nCalls `bowmark.providers.fandom.listRevisions`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Revision[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListRevisionsArgs","description":"TypeScript: `ListRevisionsArgs`"}},"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/fandom/getRevision":{"post":{"operationId":"getRevision","summary":"One specific revision of an article by id, rendered as of that edit.","description":"One specific revision of an article by id, rendered as of that edit. Takes the id `listRevisions` returns. No `rest.php/v1/revision/{id}` exists on Fandom, so this uses `GET /api.php?action=parse&oldid={id}&prop=text`.\n\nCalls `bowmark.providers.fandom.getRevision`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Article>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetRevisionArgs","description":"TypeScript: `GetRevisionArgs`"}},"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/fandom/listRecentChanges":{"post":{"operationId":"listRecentChanges","summary":"What is being edited on a wiki right now — a live feed of recent edits with page title, editor, timestamp and edit summary.","description":"What is being edited on a wiki right now — a live feed of recent edits with page title, editor, timestamp and edit summary. `GET /api.php?action=query&list=recentchanges`.\n\nCalls `bowmark.providers.fandom.listRecentChanges`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<RecentChange[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListRecentChangesArgs","description":"TypeScript: `ListRecentChangesArgs`"}},"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/fandom/findWiki":{"post":{"operationId":"findWiki","summary":"Find which Fandom wiki covers a topic — hand it \"star wars\" and get back matching wikis with the `wiki` subdomain every other function needs.","description":"Find which Fandom wiki covers a topic — hand it \"star wars\" and get back matching wikis with the `wiki` subdomain every other function needs. `GET services.fandom.com/unified-search/community-search`.\n\nCalls `bowmark.providers.fandom.findWiki`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<FoundWiki[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/FindWikiArgs","description":"TypeScript: `FindWikiArgs`"}},"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/fandom/getUser":{"post":{"operationId":"getUser","summary":"A wiki editor's public record on this wiki — registration date, edit count and user groups.","description":"A wiki editor's public record on this wiki — registration date, edit count and user groups. `GET /api.php?action=query&list=users`.\n\nCalls `bowmark.providers.fandom.getUser`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<FandomUser>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetUserArgs","description":"TypeScript: `GetUserArgs`"}},"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/fandom/listUserContributions":{"post":{"operationId":"listUserContributions","summary":"Every edit one named editor has made on this wiki, newest first.","description":"Every edit one named editor has made on this wiki, newest first. `GET /api.php?action=query&list=usercontribs`.\n\nCalls `bowmark.providers.fandom.listUserContributions`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<UserContribution[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListUserContributionsArgs","description":"TypeScript: `ListUserContributionsArgs`"}},"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/fandom/listDiscussionPosts":{"post":{"operationId":"listDiscussionPosts","summary":"A wiki's Discussions feed — Fandom's own community forum layer, separate from article talk pages — with each post's author, text, forum name, reply count and creation time.","description":"A wiki's Discussions feed — Fandom's own community forum layer, separate from article talk pages — with each post's author, text, forum name, reply count and creation time. Fandom's own endpoint rather than MediaWiki's: `GET /wikia.php?controller=DiscussionPost&method=getPosts`.\n\nCalls `bowmark.providers.fandom.listDiscussionPosts`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<DiscussionPost[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListDiscussionPostsArgs","description":"TypeScript: `ListDiscussionPostsArgs`"}},"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/fandom/getDiscussionPost":{"post":{"operationId":"getDiscussionPost","summary":"One Discussions post by id, with its full text, author and the thread it belongs to.","description":"One Discussions post by id, with its full text, author and the thread it belongs to. Takes the id `listDiscussionPosts` returns. `GET /wikia.php?controller=DiscussionPost&method=getPost`.\n\nCalls `bowmark.providers.fandom.getDiscussionPost`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<DiscussionPostDetail>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetDiscussionPostArgs","description":"TypeScript: `GetDiscussionPostArgs`"}},"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/fandom/getDiscussionThread":{"post":{"operationId":"getDiscussionThread","summary":"A whole Discussions thread: its title, forum, the opening post and every reply oldest first (up to 100).","description":"A whole Discussions thread: its title, forum, the opening post and every reply oldest first (up to 100). Takes the `threadId` a `listDiscussionPosts` or `getDiscussionPost` row carries. `GET /wikia.php?controller=DiscussionThread&method=getThread&responseGroup=full`.\n\nCalls `bowmark.providers.fandom.getDiscussionThread`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<DiscussionThread>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetDiscussionThreadArgs","description":"TypeScript: `GetDiscussionThreadArgs`"}},"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/fandom/getCurrentUser":{"post":{"operationId":"getCurrentUser","summary":"Who the caller is signed in as on this wiki — username, global user id, edit count and which rights they hold.","description":"Who the caller is signed in as on this wiki — username, global user id, edit count and which rights they hold. The entry point to every other signed-in read here. `GET /api.php?action=query&meta=userinfo`.\n\nCalls `bowmark.providers.fandom.getCurrentUser`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<FandomCurrentUser>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"wiki":{"type":"string","description":"TypeScript: `string`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["wiki"],"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/fandom/listWatchlist":{"post":{"operationId":"listWatchlist","summary":"The caller's own watchlist on one wiki — recent edits to the pages they follow, newest first, in the same row shape as `listRecentChanges`.","description":"The caller's own watchlist on one wiki — recent edits to the pages they follow, newest first, in the same row shape as `listRecentChanges`. `GET /api.php?action=query&list=watchlist`.\n\nCalls `bowmark.providers.fandom.listWatchlist`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<RecentChange[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"wiki":{"type":"string","description":"TypeScript: `string`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["wiki"],"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/fandom/watchPage":{"post":{"operationId":"watchPage","summary":"Add an article to the caller's own watchlist on one wiki — pass `{ wiki, title }` or the article's full URL.","description":"Add an article to the caller's own watchlist on one wiki — pass `{ wiki, title }` or the article's full URL. Changes nothing another reader sees. `POST /api.php?action=watch`.\n\nCalls `bowmark.providers.fandom.watchPage`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WatchResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"anyOf":[{"type":"object","properties":{"wiki":{"type":"string"},"title":{"type":"string"}},"required":["wiki","title"],"additionalProperties":true},{"type":"string"}],"description":"TypeScript: `{ wiki: string; title: string } | 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/fandom/unwatchPage":{"post":{"operationId":"unwatchPage","summary":"Remove an article from the caller's own watchlist on one wiki — `{ wiki, title }` or the article's full URL.","description":"Remove an article from the caller's own watchlist on one wiki — `{ wiki, title }` or the article's full URL. `POST /api.php?action=watch&unwatch=1`.\n\nCalls `bowmark.providers.fandom.unwatchPage`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<WatchResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"anyOf":[{"type":"object","properties":{"wiki":{"type":"string"},"title":{"type":"string"}},"required":["wiki","title"],"additionalProperties":true},{"type":"string"}],"description":"TypeScript: `{ wiki: string; title: string } | 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/fandom/editPage":{"post":{"operationId":"editPage","summary":"Replace an article, or one section of it (`section` from `getSections`, or `\"new\"` to append one), with new wikitext under the caller's own account and edit summary.","description":"Replace an article, or one section of it (`section` from `getSections`, or `\"new\"` to append one), with new wikitext under the caller's own account and edit summary. Refuses before sending if the account lacks the `edit` right on that wiki. `POST /api.php?action=edit`.\n\nCalls `bowmark.providers.fandom.editPage`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<EditResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/EditPageArgs","description":"TypeScript: `EditPageArgs`"},"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/fandom/createPage":{"post":{"operationId":"createPage","summary":"Create an article that does not exist yet, under the caller's own account — fails with `articleexists` rather than overwriting one that does.","description":"Create an article that does not exist yet, under the caller's own account — fails with `articleexists` rather than overwriting one that does. `POST /api.php?action=edit&createonly=1`.\n\nCalls `bowmark.providers.fandom.createPage`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<EditResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/CreatePageArgs","description":"TypeScript: `CreatePageArgs`"},"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/fandom/postDiscussionPost":{"post":{"operationId":"postDiscussionPost","summary":"Reply to a Discussions thread on one wiki under the caller's own account — `threadId` from `listDiscussionPosts` (or `getDiscussionPost`), `text` the message.","description":"Reply to a Discussions thread on one wiki under the caller's own account — `threadId` from `listDiscussionPosts` (or `getDiscussionPost`), `text` the message. Refuses before sending when Fandom reads the caller as anonymous. `POST /wikia.php?controller=DiscussionPost&method=create`.\n\nCalls `bowmark.providers.fandom.postDiscussionPost`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<PostDiscussionPostResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/PostDiscussionPostArgs","description":"TypeScript: `PostDiscussionPostArgs`"},"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/fandom/undoRevision":{"post":{"operationId":"undoRevision","summary":"Undo one edit to an article under the caller's own account — `revid` from `listRevisions`, optionally `undoafter` to undo a run of edits.","description":"Undo one edit to an article under the caller's own account — `revid` from `listRevisions`, optionally `undoafter` to undo a run of edits. Fails with `undofailure` when later edits conflict. `POST /api.php?action=edit&undo={revid}`.\n\nCalls `bowmark.providers.fandom.undoRevision`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<EditResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/UndoRevisionArgs","description":"TypeScript: `UndoRevisionArgs`"},"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}}},"CreatePageArgs":{"type":"object","properties":{"wiki":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"},"summary":{"type":"string"}},"required":["wiki","title","text"],"additionalProperties":true},"EditPageArgs":{"type":"object","properties":{"wiki":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"},"summary":{"type":"string"},"section":{"anyOf":[{"type":"number"},{"const":"new"}]}},"required":["wiki","title","text"],"additionalProperties":true},"FindWikiArgs":{"type":"object","properties":{"query":{"type":"string"},"language":{"type":"string"},"limit":{"type":"number"}},"required":["query"],"additionalProperties":true},"GetArticleArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"}},"required":["title"],"additionalProperties":true},"GetDiscussionPostArgs":{"type":"object","properties":{"wiki":{"type":"string"},"postId":{"type":"string"}},"required":["wiki","postId"],"additionalProperties":true},"GetDiscussionThreadArgs":{"type":"object","properties":{"wiki":{"type":"string"},"threadId":{"type":"string"}},"required":["wiki","threadId"],"additionalProperties":true},"GetImageArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"}},"required":["title","wiki"],"additionalProperties":true},"GetInfoboxArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"}},"required":["title"],"additionalProperties":true},"GetRevisionArgs":{"type":"object","properties":{"wiki":{"type":"string"},"revid":{"type":"string"}},"required":["wiki","revid"],"additionalProperties":true},"GetSectionArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"},"section":{"type":"string"}},"required":["title","section"],"additionalProperties":true},"GetSectionsArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"}},"required":["title"],"additionalProperties":true},"GetSummaryArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"}},"required":["title"],"additionalProperties":true},"GetUserArgs":{"type":"object","properties":{"wiki":{"type":"string"},"username":{"type":"string"}},"required":["wiki","username"],"additionalProperties":true},"GetWikitextArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"}},"required":["title"],"additionalProperties":true},"ListBacklinksArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"},"limit":{"type":"number"}},"required":["title"],"additionalProperties":true},"ListCategoriesArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"},"limit":{"type":"number"}},"required":["title"],"additionalProperties":true},"ListCategoryMembersArgs":{"type":"object","properties":{"category":{"type":"string"},"wiki":{"type":"string"},"limit":{"type":"number"}},"required":["category","wiki"],"additionalProperties":true},"ListDiscussionPostsArgs":{"type":"object","properties":{"wiki":{"type":"string"},"limit":{"type":"number"}},"required":["wiki"],"additionalProperties":true},"ListExternalLinksArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"},"limit":{"type":"number"}},"required":["title"],"additionalProperties":true},"ListImagesArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"},"limit":{"type":"number"}},"required":["title"],"additionalProperties":true},"ListLinksArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"},"limit":{"type":"number"}},"required":["title"],"additionalProperties":true},"ListRecentChangesArgs":{"type":"object","properties":{"wiki":{"type":"string"},"limit":{"type":"number"}},"required":["wiki"],"additionalProperties":true},"ListRevisionsArgs":{"type":"object","properties":{"title":{"type":"string"},"wiki":{"type":"string"},"limit":{"type":"number"}},"required":["title"],"additionalProperties":true},"ListUserContributionsArgs":{"type":"object","properties":{"wiki":{"type":"string"},"username":{"type":"string"},"limit":{"type":"number"}},"required":["wiki","username"],"additionalProperties":true},"PostDiscussionPostArgs":{"type":"object","properties":{"wiki":{"type":"string"},"threadId":{"type":"string"},"text":{"type":"string"}},"required":["wiki","threadId","text"],"additionalProperties":true},"SearchArgs":{"type":"object","properties":{"wiki":{"type":"string"},"query":{"type":"string"}},"required":["wiki","query"],"additionalProperties":true},"SuggestTitlesArgs":{"type":"object","properties":{"wiki":{"type":"string"},"query":{"type":"string"}},"required":["wiki","query"],"additionalProperties":true},"UndoRevisionArgs":{"type":"object","properties":{"wiki":{"type":"string"},"title":{"type":"string"},"revid":{"anyOf":[{"type":"number"},{"type":"string"}]},"undoafter":{"anyOf":[{"type":"number"},{"type":"string"}]},"summary":{"type":"string"}},"required":["wiki","title","revid"],"additionalProperties":true}}}}