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

# API Reference

> Complete API documentation for cross-chain transaction submission and intent execution

## Authentication

The API uses signature-based authentication. For EIP-7702 mode, you sign authorizations with your wallet. For non-7702 modes, you sign or submit transactions directly.

## Response Format

All API responses follow this format:

```json theme={null}
{
  "success": boolean,
  "data": object | null,
  "error": { "message": string } | null
}
```

## Error Handling

| Status | Description |
| - | - |
| `200/201` | Success |
| `202` | Accepted (step already processing) |
| `400` | Bad Request (validation error) |
| `404` | Not Found |
| `500` | Internal Server Error |

***

## Endpoints Overview

### Actions API

The unified API for creating and executing cross-chain intents.

| Method | Endpoint | Description |
| - | - | - |
| `POST` | `/actions` | [Create action with intents](https://spiceflow-docs.spicenet.io/api-reference/endpoint/actions-create.md) |
| `GET` | `/actions/:actionId` | [Get action status](https://spiceflow-docs.spicenet.io/api-reference/endpoint/actions-get.md) |
| `GET` | `/actions/:actionId/intents/:idx` | [Get intent status](https://spiceflow-docs.spicenet.io/api-reference/endpoint/actions-get.md) |
| `GET/POST` | `/actions/:actionId/intents/:idx/steps/:idx` | [Get/Execute step](https://spiceflow-docs.spicenet.io/api-reference/endpoint/actions-execute.md) |

> [card] [POST /actions](https://spiceflow-docs.spicenet.io/api-reference/endpoint/actions-create.md)
>
> Create an action with intents for cross-chain execution

> [card] [GET Action Status](https://spiceflow-docs.spicenet.io/api-reference/endpoint/actions-get.md)
>
> Retrieve action, intent, or step status

> [card] [POST Execute Step](https://spiceflow-docs.spicenet.io/api-reference/endpoint/actions-execute.md)
>
> Execute a specific intent step

***

### Balances & Deposits

Manage user balances for cross-chain transfers.

| Method | Endpoint | Description |
| - | - | - |
| `GET` | `/wallets/:address/balance` | [Get user Spice balances](https://spiceflow-docs.spicenet.io/api-reference/endpoint/spice-deposit.md) |

> [card] [Spice Deposits](https://spiceflow-docs.spicenet.io/api-reference/endpoint/spice-deposit.md)
>
> Record deposits, withdrawals, and query balances

***

### Transaction Tracking

Register an on-chain transaction for the relayer to process.

| Method | Endpoint | Description |
| - | - | - |
| `POST` | `/transactions/handle/evm` | [Handle a transaction](https://spiceflow-docs.spicenet.io/api-reference/endpoint/venue-tx-hashes.md) |

> [card] [Handle Transaction](https://spiceflow-docs.spicenet.io/api-reference/endpoint/venue-tx-hashes.md)
>
> Register an on-chain transaction hash for processing

***

### Utility

| Method | Endpoint | Description |
| - | - | - |
| `POST` | `/airdrop/:chainId/:tokenId` | [Request airdrop](https://spiceflow-docs.spicenet.io/api-reference/endpoint/airdrop.md) |
| `GET` | `/health` | [Health check](https://spiceflow-docs.spicenet.io/api-reference/endpoint/health.md) |

> [card] [Airdrop](https://spiceflow-docs.spicenet.io/api-reference/endpoint/airdrop.md)
>
> Request testnet token airdrops

> [card] [Health Check](https://spiceflow-docs.spicenet.io/api-reference/endpoint/health.md)
>
> Check API server status

***

### Legacy Endpoints

These endpoints are deprecated and not served by the current relayer. Use the Actions API above.

| Method | Endpoint | Description |
| - | - | - |
| `POST` | `/transaction/submit` | [Submit legacy transaction](https://spiceflow-docs.spicenet.io/api-reference/endpoint/transaction-submit.md) |
| `GET` | `/intent/:id/step/:id/status` | [Get step status](https://spiceflow-docs.spicenet.io/api-reference/endpoint/intent-step-status.md) |

> [card] [POST /transaction/submit](https://spiceflow-docs.spicenet.io/api-reference/endpoint/transaction-submit.md)
>
> Submit a cross-chain transaction (legacy)

> [card] [GET Step Status](https://spiceflow-docs.spicenet.io/api-reference/endpoint/intent-step-status.md)
>
> Get intent step status (legacy)


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