# Content api not working

**URL:** <https://forum.builder.io/t/content-api-not-working/7788>\
**Category:** Bugs\
**Created:** [January 28, 2025, 5:48am UTC](https://forum.builder.io/t/content-api-not-working/7788 "2025-01-28T05:48:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roshan54321](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/roshan54321/32/4599_2.png) [@Roshan54321](https://forum.builder.io/u/Roshan54321)\
**Post date:** [January 28, 2025, 5:48am UTC](https://forum.builder.io/t/content-api-not-working/7788/1 "2025-01-28T05:48:03Z")

</div>

[https://cdn.builder.io/api/v3/content/my-model?apiKey=some-public-key](https://cdn.builder.io/api/v3/content/my-model?apiKey=some-public-key)

This is giving me 401, with code “e892”. The model name is fine so is the public key.  
The model has unique identifier “figma-imports” and is public readable

[https://cdn.builder.io/api/v3/content/figma-imports?apiKey=3ca189392b5142e8a14072c3dba39d2c](https://cdn.builder.io/api/v3/content/figma-imports?apiKey=3ca189392b5142e8a14072c3dba39d2c)

---

<div class="post-metadata">

**Author:** ![Conrad](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@Conrad](https://forum.builder.io/u/Conrad)\
**Post date:** [January 28, 2025, 10:39am UTC](https://forum.builder.io/t/content-api-not-working/7788/2 "2025-01-28T10:39:58Z")

</div>

I get the exact same issue with the figma-imports model as well.  
It works fine in the sub environment, but on the main environment we get 401 when using the content API.

It is also not visible in the side panel even though it is marked false for hide from UI and is also publicly readable.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/1/11e2fc7f77e2bf771560d9b024f46e72ef7dcfb9.png)

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [January 28, 2025, 11:45am UTC](https://forum.builder.io/t/content-api-not-working/7788/3 "2025-01-28T11:45:48Z")

</div>

Hi @Conrad, @Roshan54321,

We’ve recently made changes to how the ‘figma-imports’ model content in the Develop space can be queried using the [Content API](https://www.builder.io/c/docs/content-api). While this approach worked for the combined CMS product, it raised security concerns for Develop spaces.

As a result, direct [queries](https://www.builder.io/c/docs/querying) to the `figma-imports` model are no longer supported. However, you can now use the following methods to query the content:

1. `/api/v3/content/model-name/content-id?apiKey=your-api-key`
2. `/api/v3/content/model-name/query.id=content-id?apiKey=your-api-key`

@Roshan54321, here’s an example of how you can query your content:

- [https://cdn.builder.io/api/v3/content/figma-imports/fea490da8c4d4cbdbdf176128e929917?apiKey=3ca189392b5142e8a14072c3dba39d2c](https://cdn.builder.io/api/v3/content/figma-imports/fea490da8c4d4cbdbdf176128e929917?apiKey=3ca189392b5142e8a14072c3dba39d2c)

- [https://cdn.builder.io/api/v3/content/figma-imports?query.id=fea490da8c4d4cbdbdf176128e929917&apiKey=3ca189392b5142e8a14072c3dba39d2c](https://cdn.builder.io/api/v3/content/figma-imports?query.id=fea490da8c4d4cbdbdf176128e929917&apiKey=3ca189392b5142e8a14072c3dba39d2c)

Here is how to find the Builder Content ID:

 ![Screenshot 2025-01-28 at 5.13.47 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/9/988d3e98699d880b46f16abc38b34bdd8ea6788b.png)

Please let me know if you run into any issues or need further clarification!

Thanks,

---

<div class="post-metadata">

**Author:** ![Roshan54321](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/roshan54321/32/4599_2.png) [@Roshan54321](https://forum.builder.io/u/Roshan54321)\
**Post date:** [January 29, 2025, 2:50am UTC](https://forum.builder.io/t/content-api-not-working/7788/4 "2025-01-29T02:50:26Z")

</div>

I need an api that shows the list of model-contents with their id. I mean I just want the content-id of all content through the api, not copy all the content-ids by looking at the url.

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [January 29, 2025, 9:20am UTC](https://forum.builder.io/t/content-api-not-working/7788/5 "2025-01-29T09:20:27Z")

</div>

Hello @Roshan54321,

Unfortunately, retrieving content IDs for all content via the Content API for the “develop” space is no longer supported due to security concerns. If you could provide more details about your use case, we’d be happy to explore alternative solutions that might work for you.

Thanks,
