Docs

persisted_query_not_found

200 invalid_request. No document is stored for that hash.

View as Markdown
HTTP statustypeSurfaces
200invalid_requestGraphQL

What it means

No document is stored for that hash. Only a development key stores one; a production key never does.

What to do

Send the query text beside the same hash: it runs either way, and the SDK and Apollo do this for you. To stop the miss, register the documents at build time with a development key (capa persist).

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
200200the hash is not registered, or the document stored for it does not run with this key as sent. The message is exactly PersistedQueryNotFound

See also