# Docs Centrifuge — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access comprehensive Centrifuge protocol information including documentation, pools, tokens, vaults, and investor data through intelligent search and navigation tools. Query transaction history, investment positions, and detailed protocol metrics across the Centrifuge ecosystem.

**Category:** Web3 & Onchain | **Website:** [docs.centrifuge.io/](https://docs.centrifuge.io/) | **Docs:** [parse.bot/marketplace/e71edd06-7408-425a-ae43-d984d8eebc45/docs-centrifuge-io-api](https://parse.bot/marketplace/e71edd06-7408-425a-ae43-d984d8eebc45/docs-centrifuge-io-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-docs-centrifuge-io-api-e71edd06/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_page_content

Fetch the full content of any documentation page by URL. Parses the page HTML and returns the title, full text, structured sections with headings and content, code blocks, and tables. The page must exist on docs.centrifuge.io; relative paths are resolved against the base URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the documentation page to fetch (e.g. 'https://docs.centrifuge.io/user/concepts/pools/') or a relative path (e.g. 'user/concepts/pools/'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-centrifuge-io-api-e71edd06/get_page_content \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_site_navigation

Retrieve the full navigation tree and all URLs of the documentation site from its sitemap. Returns a nested object representing the site hierarchy (sections and pages) and a flat list of all page URLs. No parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-centrifuge-io-api-e71edd06/get_site_navigation \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### graphql_query

Execute a custom GraphQL query against the Centrifuge protocol API. Supports the full GraphQL schema including pools, tokens, vaults, and investor data. When using variables, the query must use named operation syntax with variable declarations (e.g. 'query GetPools($limit: Int) { pools(limit: $limit) { items { id } } }').

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | GraphQL query string. Use named operations with variable declarations when passing variables (e.g. 'query GetPools($limit: Int) { pools(limit: $limit) { items { id name } } }'). |
| `variables` | string | No | JSON string of GraphQL variables to pass with the query (e.g. '{"limit": 5}'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-centrifuge-io-api-e71edd06/graphql_query \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","variables":"<string>"}'
```

### graphql_query_investor_positions

Fetch investor token positions from the Centrifuge protocol API. Returns position details including token, account, balance, and frozen status. Optionally filter by account address.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `account` | string | No | Ethereum account address to filter positions (e.g. '0x30d3bbae8623d0e9c0db5c27b82dcda39de40997'). |
| `limit` | integer | No | Maximum number of positions to return. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-centrifuge-io-api-e71edd06/graphql_query_investor_positions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"account":"<string>","limit":"<integer>"}'
```

### graphql_query_investor_transactions

Fetch investor transactions from the Centrifuge protocol API. Returns transaction details including type, account, pool, amounts, and timestamps. Optionally filter by account address. Transaction types include TRANSFER_IN and TRANSFER_OUT.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `account` | string | No | Ethereum account address to filter transactions (e.g. '0x00000000009726632680fb29d3f7a9734e3010e2'). |
| `limit` | integer | No | Maximum number of transactions to return. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-centrifuge-io-api-e71edd06/graphql_query_investor_transactions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"account":"<string>","limit":"<integer>"}'
```

### graphql_query_pools

Fetch pools data from the Centrifuge protocol API. Returns pool information including id, name, centrifugeId, active status, and associated share class tokens. Pools are the core investment structures on Centrifuge.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of pools to return. |
| `offset` | integer | No | Offset for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-centrifuge-io-api-e71edd06/graphql_query_pools \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>"}'
```

### graphql_query_tokens

Fetch share class tokens data from the Centrifuge protocol API. Returns token details including name, symbol, total issuance, price, and decimals. Tokens represent investor positions in pools.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of tokens to return. |
| `offset` | integer | No | Offset for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-centrifuge-io-api-e71edd06/graphql_query_tokens \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>"}'
```

### graphql_query_vaults

Fetch vaults data from the Centrifuge protocol API. Returns vault information including blockchain deployment details (chain name, chainId), pool and token associations, asset address, and active status. Vaults are the entry points for investors on spoke chains.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of vaults to return. |
| `offset` | integer | No | Offset for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-centrifuge-io-api-e71edd06/graphql_query_vaults \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>"}'
```

### search_documentation

Search documentation pages using Algolia full-text search. Returns matching hits with URL, content snippets, type, and hierarchy information showing the section path of each result.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword or phrase to find in the documentation. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-docs-centrifuge-io-api-e71edd06/search_documentation \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
