GraphQL schema introspection to use in types generation on my side

Greetings everyone, I am trying to do the following query on the graphql server to get the schema and reuse it on my server

{
  __schema {
    types {
      name
    }
  }
}

That’s what I am getting:
“message”: “Cannot query field "__schema" on type "Query".”,
screenshot:

My reference: Introspection | GraphQL

How can I do that and avoid rewriting the whole schme on myself.

I have got that from the network inspection (for anyone further copy the response of that or the query from the network)


"\n    query IntrospectionQuery {\n      __schema {\n   ......