OptionalapiAPI version to use for requests. Should be in format 'vYYYY-MM-DD' (e.g., 'v2026-01-01').
OptionalbaseURLBase URL for the Sanity API.
OptionalfetchCustom fetch implementation. Useful for testing or adding middleware.
Optionalinit: RequestInitOptionalinit: RequestInitOptionalheadersCustom headers to include in requests.
Your Sanity organization ID.
OptionaltokenAuthentication token for the Sanity API. If not provided, requests will be made without authentication (useful for browser contexts where auth may come from cookies).
Settings for creating a Content Agent provider instance via createContentAgent.
Example