> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hyperlane.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Relayer HTTP API

The relayer provides a comprehensive HTTP API for inspecting database contents and managing operations. Each endpoint below includes an interactive playground where you can test the API directly.

> [!NOTE]
>
> Make sure to update the server URL to match your relayer instance before testing endpoints.

## API Endpoints

The following endpoints are available for interacting with the relayer:

### Relay Submission

* [Submit Transaction for Relay](https://docs.hyperlane.xyz/docs/operate/relayer/api/relay/post-relay.md) - Submit a transaction for fast relay; enqueues eligible CCTP V2 messages immediately, bypassing block-polling delay

### Messages API

* [Get Messages](https://docs.hyperlane.xyz/docs/operate/relayer/api/messages/get-messages.md) - Query messages by domain and nonce range in the database
* [Insert Messages](https://docs.hyperlane.xyz/docs/operate/relayer/api/messages/post-messages.md) - Add new messages to the database

### Operation Management

* [List Operations](https://docs.hyperlane.xyz/docs/operate/relayer/api/operations/get-operations.md) - View pending messages in operation queues
* [Retry Messages](https://docs.hyperlane.xyz/docs/operate/relayer/api/operations/post-message-retry.md) - Trigger retry of failed messages (resets retry count)
* [Reprocess Message](https://docs.hyperlane.xyz/docs/operate/relayer/api/operations/post-reprocess-message.md) - Re-queue messages for processing on demand

> [!NOTE]
>
> **Retry vs Reprocess**: Retry handles failed messages currently in the operation queues (memory), while reprocess re-queues messages from the database (storage) for processing - either already-delivered messages that need reprocessing or to allow external services to trigger message delivery instead of relying on queue backoff.

### Data Inspection

* [Get Merkle Tree Insertions](https://docs.hyperlane.xyz/docs/operate/relayer/api/merkle-tree-insertions/get-merkle-tree-insertions.md) - Query merkle tree insertion in the database
* [Insert Merkle Tree Insertions](https://docs.hyperlane.xyz/docs/operate/relayer/api/merkle-tree-insertions/post-merkle-tree-insertions.md) - Insert merkle tree insertion

### IGP Management

* [List IGP Rules](https://docs.hyperlane.xyz/docs/operate/relayer/api/igp/get-igp-rules.md) - View current gas payment rules
* [Add IGP Rule](https://docs.hyperlane.xyz/docs/operate/relayer/api/igp/post-igp-rules.md) - Create new gas payment rules
* [Remove IGP Rules](https://docs.hyperlane.xyz/docs/operate/relayer/api/igp/delete-igp-rules.md) - Delete existing gas payment rules

> [!NOTE]
>
> IGP endpoints are only available when gas enforcers are configured (`mod.rs:82-83`).

## Authentication

Most endpoints do not require authentication for read operations. Write operations may require proper API keys or authentication depending on your relayer configuration.

## Base URL

Hyperlane hosts public relay API endpoints:

| Network | URL |
| - | - |
| Mainnet | `https://relay-api.hyperlane.xyz/relay` |
| Testnet | `https://testnet-relay-api.hyperlane.xyz/relay` |

For self-hosted relayers, the default base URL for local development is:

```
http://localhost:9090
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.