# API Categories

**URL:** https://meta.discourse.org/t/api-categories/376901
**Category:** Support
**Tags:** rest-api
**Created:** [August 1, 2025, 5:04pm UTC](https://meta.discourse.org/t/api-categories/376901 "2025-08-01T17:04:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![itd-john](https://avatars.discourse-cdn.com/v4/letter/i/8dc957/32.png) [@itd-john](https://meta.discourse.org/u/itd-john)
#### Post date: [August 1, 2025, 5:04pm UTC](https://meta.discourse.org/t/api-categories/376901/1 "2025-08-01T17:04:23Z")

</div>

Is it just me or is all of the documentation either out of date or not accurate? For instance, yet another hurdle with this software is getting a basic API query to work. [Here’s the docs](https://docs.discourse.org/#tag/Categories/operation/createCategory) I’m referring to and the query that returns a 500 error: [http://localhost:4200/categories.json](http://localhost:4200/categories.json). The GET request in the docs shows this query as an example. Any thoughts on how to stop running into hurdles like every time I turn around? If people are going to use this in a production environment, we’re going to need a better way to get familiar with the software other than duck-duck-goosing through repos and pseudo-docs.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 1, 2025, 5:12pm UTC](https://meta.discourse.org/t/api-categories/376901/2 "2025-08-01T17:12:32Z")

</div>

This works: [https://meta.discourse.org/categories.json](https://meta.discourse.org/categories.json)

What error do you see in the logs? Does your site work in a browser? If GETting /categories.json` doesn’t work then something’s wrong with your development environment, I’d guess.

We’ll need more info about what errors you see in the terminal and how you installed.

What are you trying to do?

---

<div class="post-metadata">

### Author: ![itd-john](https://avatars.discourse-cdn.com/v4/letter/i/8dc957/32.png) [@itd-john](https://meta.discourse.org/u/itd-john)
#### Post date: [August 1, 2025, 7:12pm UTC](https://meta.discourse.org/t/api-categories/376901/3 "2025-08-01T19:12:05Z")

</div>

Not trying to do anything special just call the API as it’s written in the docs via postman.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 1, 2025, 9:01pm UTC](https://meta.discourse.org/t/api-categories/376901/4 "2025-08-01T21:01:54Z")

</div>

Can you load the page in your browser?

My guess is that it’s a problem with postman
