Optional
allowAPI host to use. Defaults to 'api.sanity.io'
API version in YYYY-MM-DD format. Required to prevent breaking changes. Use current date to get latest features.
Optional
datasetDataset name to use
Optional
fetchOptional
ignoreIgnore warning about tokens in browser environments
Optional
maxNumber of times to retry failed requests
Optional
perspectiveThe perspective to use when querying documents.
Optional
projectProject ID to connect to
Optional
proxyHTTP/HTTPS proxy URL to use
Optional
requesterOptional
requestOptional prefix added to all request tags. Used to filter and aggregate log data in request logs.
Optional
resultWhether to include Content Source Maps in API responses. Useful for visual editing and debugging.
Optional
retryFunction to calculate retry delay in milliseconds. Default is exponential backoff with random jitter: delay = 100 * 2^attemptNumber + random(0,100)
The fully initialized stega config, can be used to check if stega is enabled
Optional
timeoutRequest timeout in milliseconds
Optional
tokenToken for authentication. Required for certain operations like mutations or accessing drafts
Whether to use the Sanity CDN API.
Set to true
to use edge caching for better performance.
Set to false
to always use the live API for fresh data.
Optional
withWhether to send credentials with requests
Whether the client can be reconfigured after initialization