Answers from the community about HTTP API

Some of the conversations between community members on questions, suggestions and tips for using Sanity. Join our Discord to be a part of it.

TopicCategoriesFeaturedRepliesLast Updated
How to set a specific object in array by index using Sanity HTTP API?4Feb 11, 2025
Sanity local development causing 25k+ API request spike5Aug 23, 2024
Can't write to content lake without subscription on free plan?8May 28, 2024
How to exclude query attribute from Sanity HTTP API response?3May 15, 2024
Difference between API Requests and CDN Requests in Sanity3Apr 19, 2024
Investigating Unexplained Bandwidth Spikes on September 24th19Oct 2, 2023
How to securely use Sanity write token in Next.js app directory?4Sep 29, 2023
Generate unique slug via Sanity API - built-in functionality or custom?4Jul 17, 2023
htmlToBlocks JSDOM parseHtml error in Next.js 13 server-side API4Jul 12, 2023
Getting latest draft via HTTP API2Jun 14, 2023
Discussion about expiration of Sanity Auth tokens causing issues with API calls and deployment37Jan 4, 2023
Image edit button disappears after re-uploading until page refresh20Oct 17, 2022
CORS Error: No Access-Control-Allow-Origin Header in React App with Sanity4Sep 5, 2022
apiVersion parameter breaking existing Sanity queries13Jul 7, 2022
Sanity client not using CDN URL despite useCdn:true in React17Jun 23, 2022
useState setter not working in useEffect with async API call27Jun 21, 2022
Querying with GROQ in Sanity and optimizing API usage29Jun 20, 2022
Sanity preview API returns 404 on Vercel but works locally22Jun 9, 2022