Hey folks,
I’m upgrading my app to use GraphQL Over HTTP and I noticed that calling admin/api/2025-01/graphql
instead admin/api/2025-01/graphql.json
endpoint returns non-200 errors in raw text format instead of JSON, is this expected behaviour? Cannot see it being documented anywhere.
Example:
Calling admin/api/2025-01/graphql.json
responds with:
{
"errors": "[API] Invalid API key or access token (unrecognized login or wrong password)"
}
Calling admin/api/2025-01/graphql
responds with:
[API] Invalid API key or access token (unrecognized login or wrong password)
The API documentation here still recommends using graphql.json
endpoint and doesn’t mention the GraphQL Over HTTP changes.