# `OpenCode.Generated.OpencodeHttpApi`
[🔗](https://github.com/UtkarshUsername/opencode-sdk-elixir/blob/v0.1.84/lib/opencode/generated/opencode_http_api.ex#L1)

Provides API endpoints related to opencode http api

# `v2_agent_list_200_json_resp`

```elixir
@type v2_agent_list_200_json_resp() :: %{
  data: [OpenCode.Generated.AgentV2Info.t()],
  location: OpenCode.Generated.LocationInfo.t()
}
```

# `v2_health_get_200_json_resp`

```elixir
@type v2_health_get_200_json_resp() :: %{healthy: true}
```

# `v2_agent_list`

```elixir
@spec v2_agent_list(opts :: keyword()) ::
  {:ok, v2_agent_list_200_json_resp()}
  | {:error,
     OpenCode.Generated.InvalidRequestError.t()
     | OpenCode.Generated.UnauthorizedError.t()}
```

List agents

Retrieve currently registered agents.

## Options

  * `location`

# `v2_health_get`

```elixir
@spec v2_health_get(opts :: keyword()) ::
  {:ok, v2_health_get_200_json_resp()}
  | {:error,
     OpenCode.Generated.InvalidRequestError.t()
     | OpenCode.Generated.UnauthorizedError.t()}
```

Check server health

Check whether the API server is ready to accept requests.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
