# Fleet server API

**URL:** <https://discuss.elastic.co/t/fleet-server-api/368538>\
**Category:** Elastic Agent\
**Created:** [October 9, 2024, 1:57pm UTC](https://discuss.elastic.co/t/fleet-server-api/368538 "2024-10-09T13:57:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viktor\_Movita](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viktor_movita/32/135707_2.png) [@Viktor\_Movita](https://discuss.elastic.co/u/Viktor_Movita)\
**Post date:** [October 9, 2024, 1:57pm UTC](https://discuss.elastic.co/t/fleet-server-api/368538/1 "2024-10-09T13:57:54Z")

</div>

Hello everyone,  
I have a Fleet server that I manually installed on a Linux server.  
I am trying to follow the instructions from the Elastic documentation to use the API options ([Fleet APIs | Fleet and Elastic Agent Guide [8.15] | Elastic](https://www.elastic.co/guide/en/fleet/8.15/fleet-apis.html#__Methods)), but every time I get a "404 page not found" error in response.  
For example, I make GET request in the following way:  
[https://my-fleet-server:8220/agent\_status](https://my-fleet-server:8220/agent_status)

What could be the issue?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 9, 2024, 2:07pm UTC](https://discuss.elastic.co/t/fleet-server-api/368538/2 "2024-10-09T14:07:11Z")

</div>

> [@Viktor\_Movita](#):
>
> What could be the issue?

The request needs to be done to Kibana, not directly to the Fleet Server.

Check this [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-api-docs.html) with an example.

---

<div class="post-metadata">

**Author:** ![Viktor\_Movita](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viktor_movita/32/135707_2.png) [@Viktor\_Movita](https://discuss.elastic.co/u/Viktor_Movita)\
**Post date:** [October 9, 2024, 2:43pm UTC](https://discuss.elastic.co/t/fleet-server-api/368538/3 "2024-10-09T14:43:28Z")

</div>

Thank you very much for the response, it really worked.  
Do I have the option to add queries to retrieve, for example, only the agents in an offline status or request specific information?  
Example:

```auto
https://my-kibana-server:5601/api/fleet/agent_status?status=offline

```

---

<div class="post-metadata">

**Author:** ![harshpanchal](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@harshpanchal](https://discuss.elastic.co/u/harshpanchal)\
**Post date:** [October 10, 2024, 6:39am UTC](https://discuss.elastic.co/t/fleet-server-api/368538/4 "2024-10-10T06:39:24Z")

</div>

I think the correct API to check the status is  
[[https://fleet-server:8220/api/status](https://fleet-server:8220/api/status) ] & in response it returns name of server & its status.
