Sanity Library Reference Docs
    Preparing search index...

    Function fetchApi

    • Makes a POST request and returns the response. Throws SanityAgentError if the response is not ok.

      Parameters

      • options: FetchOptions

      Returns Promise<Response>