The provider's own API
Call any endpoint of the provider's HTTP API with authentication applied, through web.raw.request, for anything Fieldwork does not wrap.
web.raw.request(method, path, options) calls the provider’s HTTP API with authentication applied. Paths are relative to the provider’s base URL. It returns the response’s JSON as a JsonValue, unchecked; parse it before reading it.
const check = await fieldwork({ adapter: firecrawl() }).raw.request(
"GET",
`/monitor/${monitorId}/checks/${checkId}`
);
options takes a JSON body, a multipart form, query parameters, and the same signal, timeout and retries every call accepts.
On a router
On a router, raw is keyed by provider name:
await web.raw.firecrawl.request(
"GET",
`/monitor/${monitorId}/checks/${checkId}`
);
Only the providers the router has a route to appear on raw.