Optional
allowOptional
apiOptional
apiOptional
datasetOptional
fetchOptional
headersOptional default headers to include with all requests
Optional
ignoreOptional
maxNumber of retries for requests. Defaults to 5.
Optional
perspectiveWhat perspective to use for the client. See documentation
As of API version v2025-02-19
, the default perspective has changed from raw
to published
. https://www.sanity.io/changelog/676aaa9d-2da6-44fb-abe5-580f28047c10|Changelog
Optional
projectOptional
proxyOptional
requesterOptional
requestOptional request tag prefix for all request tags
Optional
resultAdds a resultSourceMap
key to the API response, with the type ContentSourceMap
Optional
retryThe amount of time, in milliseconds, to wait before retrying, given an attemptNumber (starting at 0).
Defaults to exponential back-off, starting at 100ms, doubling for each attempt, together with random jitter between 0 and 100 milliseconds. More specifically the following algorithm is used:
Delay = 100 * 2^attemptNumber + randomNumberBetween0and100
Optional
stegaOptions for how, if enabled, Content Source Maps are encoded into query results using steganography
Optional
timeoutOptional
tokenOptional
useOptional
useOptional
with
Remarks
v2025-02-19
, the default perspective has changed fromraw
topublished
. https://www.sanity.io/changelog/676aaa9d-2da6-44fb-abe5-580f28047c10|Changelog