# GraphQL API introspecton/codegen

**URL:** <https://community.prismic.io/t/graphql-api-introspecton-codegen/273>\
**Category:** Developing with Prismic\
**Tags:** graphql\
**Created:** [April 22, 2020, 2:30pm UTC](https://community.prismic.io/t/graphql-api-introspecton-codegen/273 "2020-04-22T14:30:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![alws](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/alws/32/160_2.png) [@alws](https://community.prismic.io/u/alws)\
**Post date:** [April 28, 2020, 9:50am UTC](https://community.prismic.io/t/graphql-api-introspecton-codegen/273/6 "2020-04-28T09:50:27Z")

</div>

Hey guys,  
The introspection query is there and is used for the graphiQL interface when you hit `/graphql` in your browser.  
But for now it’s not conventional since Prismic relies on GET request but also requires to specify the `ref` with the header `Prismic-Ref`.  
That’s why this kind of tool doesn’t work out of the box but if you can configure it with GET and the `ref` in the headers that should work.  
We plan to improve this part and make it compatible with this kind of codeGen/Types plugins.  
Hope it helps 😉

---

_[View the full topic](https://community.prismic.io/t/graphql-api-introspecton-codegen/273)._
