# How do I know which Rest API version I’m on?

**URL:** <https://community.prismic.io/t/how-do-i-know-which-rest-api-version-i-m-on/556>\
**Category:** Developing with Prismic\
**Tags:** product-feature-idea, rest-api\
**Created:** [May 27, 2020, 8:53pm UTC](https://community.prismic.io/t/how-do-i-know-which-rest-api-version-i-m-on/556 "2020-05-27T20:53:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![owennicol](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/owennicol/32/265_2.png) [@owennicol](https://community.prismic.io/u/owennicol)\
**Post date:** [May 27, 2020, 8:53pm UTC](https://community.prismic.io/t/how-do-i-know-which-rest-api-version-i-m-on/556/1 "2020-05-27T20:53:48Z")

</div>

My Graph QL endpoint isn’t giving me the data I’d expect, could be that I’m on v1 as it’s an old repository

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [May 28, 2020, 9:22am UTC](https://community.prismic.io/t/how-do-i-know-which-rest-api-version-i-m-on/556/2 "2020-05-28T09:22:06Z")

</div>

Hi @owennicol, every Prismic repository can use both the REST API v1 and v2. And the GraphQL API is separate from these. Can you share more information about the data you’re receiving and how it isn’t what you expect?

---

<div class="post-metadata">

**Author:** ![owennicol](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/owennicol/32/265_2.png) [@owennicol](https://community.prismic.io/u/owennicol)\
**Post date:** [May 28, 2020, 9:41am UTC](https://community.prismic.io/t/how-do-i-know-which-rest-api-version-i-m-on/556/3 "2020-05-28T09:41:08Z")

</div>

Hi @Levi, thanks for responding so soon.

I’ve got website that I created around 3 years ago using Prismic, which uses slices, built using the old `prismicio` npm module and the `Prismic.api` method of fetching data.

I’ve been rebuilding the website, looking to use the GraphQL API and struggling to get to the same content as before.

This is my GQL endpoint with a basic query:  
[GraphQL endpoint](https://yaiza.prismic.io/graphql?query=%7B%0A%20%20casestudy(uid%3A%20%22nexio%22%2C%20lang%3A%20%22en-us%22)%20%7B%0A%20%20%20%20heroImage%0A%20%20%7D%0A%7D%0A)

and here’s my [API/v2](https://yaiza.prismic.io/api/v2/)

What I need is a way to get to the `contentArea` slices of the CaseStudy type but it alludes me with the GQL pre-defined queries, which was easy with the Rest API

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [May 28, 2020, 10:23am UTC](https://community.prismic.io/t/how-do-i-know-which-rest-api-version-i-m-on/556/4 "2020-05-28T10:23:24Z")

</div>

Okay, I can see what the issue is here. The problem is that the GraphQL API isn’t able to handle fields that have any uppercase letters in them. For example, your field with the API ID of “contentArea” won’t appear in the GraphQL API. In order for a field like this to be available via GraphQL, you will need to recreate it using only lowercase letters. I’m very sorry for the inconvenience with this, but there is no other way to do this with the Prismic GraphQL API.

Just so you and others who might look at this thread are aware there is another particularity to GraphQL and the field API IDs: It isn’t proper GraphQL syntax to include dashes “-”, so our dev team removed them. This is why a field with an API ID of “image-gallery” would appear as “imageGallery” in the GraphQL API.

In any case, I’ll let the [@features-team](https://community.prismic.io/groups/features-team) know about this so that they can consider improving this in the future.

---

<div class="post-metadata">

**Author:** ![owennicol](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/owennicol/32/265_2.png) [@owennicol](https://community.prismic.io/u/owennicol)\
**Post date:** [May 28, 2020, 11:04am UTC](https://community.prismic.io/t/how-do-i-know-which-rest-api-version-i-m-on/556/5 "2020-05-28T11:04:22Z")

</div>

I see, thank you very much for the diagnosis and advice @levi 🙂

I think that would be a really good idea to suggest they add as a “feature”.

I’m a little confused that they can change `image-gallery` to `imageGallery` (which as you say isn’t valid GraphQL) but can’t deal with `contentArea`

It looks like I’ll be unable to use the GraphQL API in this instance, but it’s good to bear in mind for the future.

Thanks very much.

Owen

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 15, 2020, 4:46pm UTC](https://community.prismic.io/t/how-do-i-know-which-rest-api-version-i-m-on/556/6 "2020-09-15T16:46:09Z")

</div>

This is being tracked as an open feature request.

If you have another use-case for this feature, you can 'Flag' this topic to reopen. Please use the ❤ button to show your support for the feature and check out our [Feature Request Guidelines](https://community.prismic.io/t/feature-requests-what-do-you-already-love-what-could-be-better/844).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 5:17pm UTC](https://community.prismic.io/t/how-do-i-know-which-rest-api-version-i-m-on/556/7 "2021-12-09T17:17:17Z")

</div>


