explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

custom AI agents

[email protected]

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource librarydemofor LLMs

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

More from us

InfloqInfluencer marketingBgBlurPrivacy-first blurOlly SocialSocial AI copilotCeptoryVideo intelligenceBgRemoverBackground removal

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightssubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR — what people are asking
  • The problem QUERY solves
  • RFC 10008 method comparison (official table)
  • How QUERY works in practice
  • Example: contacts search (from RFC appendix)
  • What QUERY is not
  • Migration patterns for API teams
  • Adoption timeline (realistic)
  • FAQ — quick answers
  • Related Reading
← Back to blog

explainx / blog

What Is HTTP QUERY? RFC 10008 Explained for API Developers

RFC 10008 (June 2026) adds HTTP QUERY — safe, idempotent, cacheable reads with a request body. First new HTTP method since PATCH (2010). vs GET, POST, when to use it, Accept-Query, CORS, and adoption reality.

Jul 3, 2026·6 min read·Yash Thakker
HTTPRFC 10008APIsWeb standardsBackend
go deep
What Is HTTP QUERY? RFC 10008 Explained for API Developers

Does HTTP finally have GET with a body? Almost — RFC 10008 (The HTTP QUERY Method, published June 15, 2026) standardizes QUERY: the first new HTTP method in 16 years since PATCH (RFC 5789, 2010).

X/Grok trending framed it simply: no more stuffing complex search filters into 800-character URLs; no more POST for read-only search. The RFC authors — Julian Reschke, James Snell (Cloudflare), Mike Bishop (Akamai) — spent a decade in the HTTPBIS working group getting there.

Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.


TL;DR — what people are asking

QuestionAnswer
What is QUERY?Safe + idempotent + cacheable request with a body describing the query
GET vs QUERY?GET = params in URL; QUERY = params in body (no URL length pain)
POST vs QUERY?POST = may mutate state; QUERY = read-only semantics for the target resource
First since when?PATCH (2010) — QUERY registered June 2026
Header to discover?Accept-Query lists supported query media types
Browser catch?CORS preflight required — QUERY is not safelisted
Zero writes?HTTP-safe ≠ DB-read-only — logging and temp URLs still happen

The problem QUERY solves

Classic list/search pattern today:

http
GET /feed?q=foo&limit=10&sort=-published HTTP/1.1
Host: example.org

Works until it does not:

GET painWhy it hurts
URL sizeRFC 9110 recommends supporting ~8000 octets — unknown limits through proxies
Encoding overheadNested JSON filters in query strings are ugly and lossy
Logging & bookmarksURIs show up in logs, analytics, browser history
Resource explosionEvery filter combo becomes a distinct cache key / "resource"

Teams then abuse POST for reads:

http
POST /feed HTTP/1.1
Host: example.org
Content-Type: application/json

{"q":"foo","filters":{"tags":["ai","api"]},"limit":10}

POST works mechanically — but retries are scary, caches ignore it for reads, and intermediaries cannot tell this is a safe search without out-of-band docs.

QUERY spans the gap:

http
QUERY /feed HTTP/1.1
Host: example.org
Content-Type: application/json
Accept: application/json

{"q":"foo","filters":{"tags":["ai","api"]},"limit":10}

Same body affordance as POST; safe and idempotent semantics as GET.


RFC 10008 method comparison (official table)

GETQUERYPOST
Safeyesyespotentially no
Idempotentyesyespotentially no
Request bodyno defined semanticsexpectedexpected
Cacheableyesyesonly for future GET/HEAD in some cases
URI for query itselfyes (by definition)optional (Location)no
URI for resultoptionaloptional (Content-Location)optional

Source: RFC 10008 Section 1, Table 1.


How QUERY works in practice

1. Content types are the query language

The body + Content-Type define the query. RFC examples include:

  • application/x-www-form-urlencoded
  • application/sql
  • application/jsonpath (RFC 9535)
  • application/xslt+xml

Servers MUST reject missing or inconsistent Content-Type (400, 415, 422 as appropriate).

2. Discover support with Accept-Query

http
HEAD /contacts HTTP/1.1
Host: example.org
http
HTTP/1.1 200 OK
Accept-Query: application/x-www-form-urlencoded, application/sql

Or check OPTIONS → Allow: GET, QUERY, HEAD.

3. Repeat without resending the body

Successful QUERY responses may include:

  • Content-Location — GET this URI for these results
  • Location — GET this URI to re-run the same query later

That lets clients move from QUERY → GET for polling and conditional requests (If-None-Match, If-Modified-Since).

4. Caching is harder than GET

Caches may store QUERY responses, but the cache key must include the request body and metadata. Mis-normalization = false cache hits. Mitigation: Location URIs clients can GET instead.

5. CORS preflight

Per Fetch spec, QUERY is not CORS-safelisted — browsers will preflight cross-origin QUERY. Plan for OPTIONS handling in public APIs.


Example: contacts search (from RFC appendix)

http
QUERY /contacts HTTP/1.1
Host: example.org
Content-Type: application/x-www-form-urlencoded
Accept: application/json

select=surname,givenname,email&limit=10&match=%22email=*@example.*%22
http
HTTP/1.1 200 OK
Content-Type: application/json

[
  {"surname":"Smith","givenname":"John","email":"[email protected]"},
  {"surname":"Jones","givenname":"Sally","email":"[email protected]"}
]

For short queries, RFC itself says: if it's this small, use GET.


What QUERY is not

"Safe" does not mean free or write-free

RFC defines safe as: no change to the target resource's state. Servers may still:

  • Write temporary stored-query or stored-result resources
  • Log request bodies (prefer QUERY over GET when sensitive filters should not hit URL logs — RFC security section)
  • Hit databases that read but still generate load, replicas, and billing

@yacineMTB on X (replying to adoption threads): "Queries, unfortunately, are not 0 writes for the vast majority of cases." Correct at the infrastructure layer.

Not a replacement for GraphQL or gRPC

QUERY standardizes HTTP semantics for search-shaped REST endpoints. It does not replace:

  • GraphQL — schema-wide query language
  • MCP tool calls — agent protocols (MCP guide)
  • POST mutations — creates, jobs, side effects

It does give OpenAPI designers a first-class verb for POST /search anti-patterns.


Migration patterns for API teams

TodayTomorrow
POST /api/users/searchQUERY /api/users
GET /api/logs?filter=... (10KB URL)QUERY /api/logs + JSON body
POST /reports/run (read-only)QUERY /reports
GraphQL POST (unchanged)Still GraphQL

Checklist before shipping QUERY:

  1. Idempotent handler — same body → same logical result (modulo data changes)
  2. No target-resource mutation — writes go to POST/PUT/PATCH
  3. Expose Accept-Query on resources that support multiple query formats
  4. CDN/proxy config — allow QUERY method; verify cache key includes body
  5. CORS — add OPTIONS + Access-Control-Allow-Methods: QUERY
  6. Client libraries — most need custom method string until native support

Adoption timeline (realistic)

LayerJune 2026 status
IETF / IANA✅ RFC 10008 Proposed Standard
curl / HTTP clientsManual --request QUERY possible where supported
Frameworks (Express, FastAPI, etc.)Patch incoming; route registration varies
API gateways (Cloudflare, Akamai)Authors' employers — watch vendor blogs
Browsers fetch()No default yet; preflight either way
OpenAPI 3.xCommunity extensions / 3.1 query verb discussions

Vincent Eliezer's X quip — "Even internet protocols are shipping faster than GTA 6" — is fair. Standards ship ≠ your stack supports it tomorrow.


FAQ — quick answers

Why not SEARCH? Early drafts used SEARCH (WebDAV heritage). RFC appendix explains QUERY won — clearer relation to URI query components, less WebDAV baggage, explicit media-type semantics.

Can I use QUERY from Claude Code / agents? Yes once your HTTP client allows custom methods — same as any REST surface agents call via MCP or tools. Document idempotency so agents can retry safely.

Does QUERY help AI search APIs? Indirectly — fat retrieval filters (RAG metadata, JSONPath over corpora) fit QUERY's body model better than GET. Pair with GEO content strategy on the data you expose, not the HTTP verb alone.


Related Reading

  • What Is MCP? Model Context Protocol Guide
  • Types of AI Agents — Tool Integration Patterns
  • Claude Code Python Automation — REST Patterns
  • Turso — SQLite at the Edge for Concurrent APIs
  • RFC 10008 — full text
  • IETF Datatracker — draft history
Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.

RFC 10008 published June 15, 2026. HTTP client and framework support evolves — verify your stack before production QUERY endpoints.

Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Jun 27, 2026

What is an API? How APIs Work Explained Simply (2026 Beginner Guide)

The restaurant analogy, HTTP methods, status codes, JSON, API keys, rate limiting — everything a beginner needs to understand and call APIs, with real working examples in curl, Python, and JavaScript.

Jun 27, 2026

What is a Webhook? How Webhooks Work Explained Simply (2026)

Webhooks are APIs in reverse — the other service calls you when something happens. This guide covers building a webhook endpoint, verifying signatures, testing with ngrok, and handling retries safely.

Jul 30, 2026

AI Companies Hiring Electricians and Carpenters by the Thousands

July 29, 2026 New York Times reporting: frontier AI CapEx is pulling trades workers into data-center sites nationwide. explainx.ai maps the boom-bust pattern, residential vs commercial electrician split, and what it means for housing costs and careers.