application/*
application/graphql
File extensions: .graphql, .gql
Raw GraphQL query strings, sent to a GraphQL endpoint.
What is application/graphql?
application/graphql is used to POST a raw GraphQL query as the request body. Most GraphQL servers, however, expect a JSON body with a `query` field — check your target server before using this type.
Typical usage
GraphQL client libraries that send raw query strings.
Common gotchas
The GraphQL over HTTP working draft standardizes application/json (with a JSON wrapper) as the preferred body format. Prefer JSON unless your server explicitly supports application/graphql.
HTTP header example
Response header
Content-Type: application/graphql; charset=utf-8Registration status
This media type is not officially registered with IANA. It is widely used in practice, but strict clients or standards-conformant tooling may not recognize it — check your consumer's tolerance.