API Reference
The Spice Flow API provides endpoints for transaction submission and intent execution. All endpoints use JSON for request and response bodies.Authentication
The API uses EIP-7702 authorization objects and signature-based authentication for transaction submission and intent execution.Endpoints Overview
| Method | Endpoint | Description |
|---|---|---|
POST | /transaction/submit | Submit a cross-chain transaction with intent authorization |
POST | /intent/{intentId}/execute/{stepId} | Execute a specific intent step and return results |
GET | /intent/{intentId}/step/{stepId}/status | Get status of a specific intent step and auto-advance on completion |
Response Format
All API responses follow this format:Error Handling
The API returns these HTTP status codes:200- Success400- Bad Request (missing or invalid parameters)404- Not Found (intent step not found on status endpoint)500- Internal Server Error
