> For the complete documentation index, see [llms.txt](https://docs.steadybit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.steadybit.com/install-and-configure/install-agent/agent-api.md).

# Agent API

The Agent provides some HTTP endpoints to interact with the agent itself. It's only needed for advanced use cases, like debugging, troubleshooting or for example manual extension registrations.

The agent listens on port `42899` by default.

## Swagger UI & Spec

The Spec is available at `http(s)://<host>:42899/spec`.

Swagger UI is available at `http(s)://<host>:42899/swagger-ui/index.html`.

## Authentication

Modifying endpoints require basic authentication. The default username is `_` with the agent-key as password.

Credentials might be changed using the properties `steadybit.agent.api.auth.username` and `steadybit.agent.api.auth.password` in the agent configuration.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.steadybit.com/install-and-configure/install-agent/agent-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
