Docs

persisted_query_hash_mismatch

400 invalid_request. The sha256 sent does not match the query text sent.

View as Markdown
HTTP statustypeSurfaces
400invalid_requestGraphQL

What it means

The sha256 sent does not match the query text sent.

What to do

Hash the exact query string, UTF-8, lowercase hex.

On GraphQL

/api/graphql answers the same code inside errors[].extensions. The status depends on the Accept header you send (status codes):

application/jsongraphql-response+jsonWhen
400400the sha256 of query is not the hash you sent

See also