canonical: https://jentic.com/apis/uniswap.org/uniswap

# Uniswap Labs API

Uniswap Labs API provides endpoints for swapping tokens, managing liquidity positions, and querying reference data on the Uniswap decentralized exchange protocol. The API exposes 13 endpoints secured with apiKey authentication.

## For AI agents

Programmatically check swap approval, get swap quote. Covers 13 operations with apiKey authentication.

## Scope

Does not handle payments, communications, or crm - use for identity and authentication only.

## Capabilities

- Check swap approval
- Get swap quote
- Create swap
- Query and filter Uniswap Labs API records by parameters
- Monitor Uniswap Labs API operational status and events

## Use cases

### Identity and Authentication Operations

Use the Uniswap Labs API to perform identity auth operations programmatically. The API provides 13 endpoints covering core functionality including check swap approval, get swap quote, create swap.

Example prompt: Call GET /v1/check-approval to check swap approval

### Automated Gasless Management

Automate gasless operations by combining multiple Uniswap Labs API endpoints. Agents can get swap quote and then create swap in a single workflow.

Example prompt: Call GET /v1/quote to get swap quote, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call Uniswap Labs API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle apiKey tokens manually.

Example prompt: Search Jentic for 'check swap approval', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | /v1/check-approval | Check swap approval |
| GET | /v1/quote | Get swap quote |
| POST | /v1/swap | Create swap |
| GET | /v1/swap/status | Check swap status |
| POST | /v1/gasless/order | Create gasless order |
| GET | /v1/gasless/order/status | Check gasless order status |
| GET | /v1/lp/check-approval | Check LP approval |
| POST | /v1/lp/create | Create pool and position |

## Key resources

- **Gasless** — Operations related to Gasless
- **Liquidity** — Operations related to Liquidity
- **Reference** — Operations related to Reference
- **Swap** — Operations related to Swap

## Why Jentic

- **Setup:** Wiring the Uniswap Labs API by hand means sending an x-api-key header on every call, matching each quote, swap, and gasless-order operation to its request shape, and polling swap status yourself. Through Jentic you install once, import the Uniswap Labs API from the API Directory, store the API key once, and your agent calls it.
- **Permission scoping:** The Uniswap Labs API carries its swap and order targets through the request body and query, so scope your agent to the operations it needs, such as fetching a quote or checking swap status. You choose the operations it may call, so a write like submitting a swap or a gasless order is not included unless you add it.
- **Credential handling:** Your Uniswap Labs API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'get a swap quote' or 'check swap status', and Jentic returns the matching Uniswap Labs API operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Auth0** — Alternative identity auth API
- **Okta** — Alternative identity auth API

## FAQ

### What authentication does the Uniswap Labs API use?

The Uniswap Labs API uses an API key passed in the `x-api-key` header. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I check swap approval with the Uniswap Labs API?

Yes. Use the GET /v1/check-approval endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the Uniswap Labs API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I check swap approval through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'check swap approval'. Jentic returns the matching Uniswap Labs API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the Uniswap Labs API have?

The Uniswap Labs API exposes 13 endpoints covering gasless, liquidity, reference operations.

### Can I limit what my agent is allowed to do with the Uniswap Labs API?

Yes. Because Jentic One is self-hosted, you set the rules that decide which Uniswap Labs API operations your agent may call and which stored API key it may use. You can grant read-only work such as GET /v1/quote to fetch a swap quote or GET /v1/swap/status to check swap status, while excluding write operations like POST /v1/swap or POST /v1/gasless/order until you add them. The agent can only invoke the operations you allow, so nothing submits a swap or gasless order on your behalf unless you have explicitly scoped it in.
