# REST API spec available for x-pack?

**URL:** <https://discuss.elastic.co/t/rest-api-spec-available-for-x-pack/80037>\
**Category:** Elasticsearch\
**Created:** [March 26, 2017, 10:45am UTC](https://discuss.elastic.co/t/rest-api-spec-available-for-x-pack/80037 "2017-03-26T10:45:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oliver/32/44851_2.png) [@oliver](https://discuss.elastic.co/u/oliver)\
**Post date:** [March 26, 2017, 10:45am UTC](https://discuss.elastic.co/t/rest-api-spec-available-for-x-pack/80037/1 "2017-03-26T10:45:43Z")

</div>

Elasticsearch has published the REST API specifications to the public. This is really helpful for e.g. non-official clients, as some are relying on tooling around the JSON files.

Are you planning to publish the REST API specifications for X-Pack as well? Are they already available (couldn't find it)?

Best,  
Oliver

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [March 30, 2017, 5:30pm UTC](https://discuss.elastic.co/t/rest-api-spec-available-for-x-pack/80037/2 "2017-03-30T17:30:17Z")

</div>

Hi Oliver,

Yes there are published API docs. They're not exactly for "X-Pack" but for each of the plugins in X-Pack.

[https://www.elastic.co/guide/en/x-pack/current/security-api.html](https://www.elastic.co/guide/en/x-pack/current/security-api.html)

[https://www.elastic.co/guide/en/x-pack/current/graph-api.html](https://www.elastic.co/guide/en/x-pack/current/graph-api.html)

[https://www.elastic.co/guide/en/x-pack/current/watcher-api.html](https://www.elastic.co/guide/en/x-pack/current/watcher-api.html)

[https://www.elastic.co/guide/en/x-pack/current/installing-license.html](https://www.elastic.co/guide/en/x-pack/current/installing-license.html)

Does that help? Or something else you're looking for?

Regards,  
Lee

---

<div class="post-metadata">

**Author:** ![oliver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oliver/32/44851_2.png) [@oliver](https://discuss.elastic.co/u/oliver)\
**Post date:** [March 30, 2017, 6:19pm UTC](https://discuss.elastic.co/t/rest-api-spec-available-for-x-pack/80037/3 "2017-03-30T18:19:29Z")

</div>

Hi Lee,

thanks for your response. Sure, that helps. But the docs typically describe the general form of using the API.

I'll probably have a different perspective than most users. As a maintainer of an unofficial client for Go, the docs are incomplete. Don't get me wrong: The docs are fine, it's just that its end-user documentation, not a specification. I have tooling to generate a code skeleton from the API spec. If in doubt, I'll lookup the Java code. If I only have the docs, I would sometimes need to guess.

Best regards,  
Oliver

---

<div class="post-metadata">

**Author:** ![Martijn\_Laarman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/martijn_laarman/32/4410_2.png) [@Martijn\_Laarman](https://discuss.elastic.co/u/Martijn_Laarman)\
**Post date:** [March 31, 2017, 2:55pm UTC](https://discuss.elastic.co/t/rest-api-spec-available-for-x-pack/80037/4 "2017-03-31T14:55:13Z")

</div>

Hi Oliver

The .NET client has a copy of them in its public repository:

> **[elastic/elasticsearch-net](https://github.com/elastic/elasticsearch-net/tree/5.x/src/CodeGeneration/ApiGenerator/RestSpecification/XPack)**
>
> elasticsearch-net - Elasticsearch.Net & NEST

On our dev branches 5.x, master they might be out of date but on the tags they should reflect the state at the time that elasticsearch release.

---

<div class="post-metadata">

**Author:** ![oliver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oliver/32/44851_2.png) [@oliver](https://discuss.elastic.co/u/oliver)\
**Post date:** [March 31, 2017, 3:13pm UTC](https://discuss.elastic.co/t/rest-api-spec-available-for-x-pack/80037/5 "2017-03-31T15:13:38Z")

</div>

Hi Martijn!

Awesome. Thank you very much!

Best,  
Oliver

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 28, 2017, 3:13pm UTC](https://discuss.elastic.co/t/rest-api-spec-available-for-x-pack/80037/6 "2017-04-28T15:13:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
