# API documentation error?

**URL:** <https://meta.discourse.org/t/api-documentation-error/97624>\
**Category:** Development\
**Created:** [September 20, 2018, 7:43am UTC](https://meta.discourse.org/t/api-documentation-error/97624 "2018-09-20T07:43:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Julian\_Elve](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/julian_elve/32/119540_2.png) [@Julian\_Elve](https://meta.discourse.org/u/Julian_Elve)\
**Post date:** [September 20, 2018, 9:05am UTC](https://meta.discourse.org/t/api-documentation-error/97624/5 "2018-09-20T09:05:23Z")

</div>

> [@Mittineague](#):
>
> …/admin/users/{userid}.json

That one works for me too. I’ve been ignoring the `.json` suffix and just using the header [as documented](https://docs.discourse.org/)

> Instead of sending API requests to `/categories.json` you may also send them to `/categories` and add an `Accept: application/json` header to the request to get the JSON response. Sending requests with the `Accept` header is necessary if you want to use URLs for related endpoints returned by the API, such as pagination URLs. These URLs are returned without the `.json` prefix so you need to add the header in order to get the correct response format.

but maybe I need to change my code to use it.

---

_[View the full topic](https://meta.discourse.org/t/api-documentation-error/97624)._
