# Direct Integration with REST API

CrossCurve MetaLayer API enables cross-chain token swaps across various networks.

### Base URL

CrossCurve MetaLayer API is built on REST principles and is served over HTTPS.

```
https://api.crosscurve.fi
```

### Authentication

Protected endpoints (`/routing/*`, `/pimlico/*`, `/networks`) require an `api-key` header.

```
api-key: YOUR_API_KEY
```

### Rate Limits

| Tier     | Limit      |
| -------- | ---------- |
| standard | 60 req/min |
| free     | 20 req/min |

### EOA Swap

A standard wallet swap (MetaMask, WalletConnect, or any EOA signer) in six steps:

1. Fetch supported networks and tokens
2. Find a route
3. Approve token spending (ERC-20 only)
4. Send swap transaction
5. Extract requestId from receipt
6. Poll for completion


---

# Agent Instructions: 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.crosscurve.fi/developer-documentation/integration-guide-old/direct-integration-with-rest-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.
