> For the complete documentation index, see [llms.txt](https://hxz-1.gitbook.io/redelegator-finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hxz-1.gitbook.io/redelegator-finance/deployments/hosted-services.md).

# Hosted Services

#### API routes (all server-side proxies; secrets never reach the browser)

| Route                           | Purpose                                                            |
| ------------------------------- | ------------------------------------------------------------------ |
| `POST /api/venice/reasoning`    | intent → zod-validated strategy (Venice AI)                        |
| `GET /api/agents`               | agent addresses (orchestrator, dex, deployers)                     |
| `POST /api/execute`             | build + sign the redelegation chain, submit to 1Shot, return steps |
| `GET /api/status?taskId=`       | poll 1Shot task status (+ on-chain tx hash)                        |
| `POST /api/agents/swap`         | deployer swaps USDC → wstETH via LI.FI, recipient = user wallet    |
| `GET /api/onchain`              | live agent balances + deployment state on Base                     |
| `GET /api/oneshot/capabilities` | 1Shot chain capabilities (fee collector, target, tokens)           |
| `GET /api/lifi/quote`           | LI.FI swap quote                                                   |
| `GET /api/lifi/earn`            | real LI.FI Earn vaults on Base (TTL-cached)                        |
| `GET /api/lifi/tools`           | real LI.FI exchanges + bridges on Base (TTL-cached)                |
| `GET /api/lido/apr`             | real Lido stETH APR, 7-day series (TTL-cached)                     |
| `GET /api/uniswap/pools`        | real Uniswap pools on Base from DeFiLlama (TTL-cached)             |
| `POST /api/uniswap/lp`          | build a Uniswap v3 LP mint via the v3 SDK                          |
| `POST /api/bundler`             | Pimlico bundler proxy (revoke userOp)                              |

#### External services

| Service       | Host                     | Used for                                                              |
| ------------- | ------------------------ | --------------------------------------------------------------------- |
| Venice AI     | `api.venice.ai`          | reasoning (server-side key)                                           |
| 1Shot relayer | `relayer.1shotapi.com`   | gasless ERC-7710 redemption                                           |
| LI.FI         | `li.quest`, `earn.li.fi` | routing, swaps, Earn vaults                                           |
| Lido          | `eth-api.lido.fi`        | stETH APR                                                             |
| DeFiLlama     | `yields.llama.fi`        | Uniswap pool stats                                                    |
| Base RPC      | `mainnet.base.org`       | on-chain reads (incl. Uniswap pool `slot0`/liquidity for the LP mint) |

> ⚠️ The Uniswap LP agent builds positions **on-chain via `@uniswap/v3-sdk`** (`NonfungiblePositionManager`), not via a REST API. The hosted Uniswap REST LP API (`/lp/approve`, `/lp/create`) is deprecated for Developer Platform keys — see the project skill notes for the verified findings.


---

# 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://hxz-1.gitbook.io/redelegator-finance/deployments/hosted-services.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.
