REST API Reference
The Galadriel API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and authentication.Base URL
Quick Start
Response Format
All API responses return JSON with a consistent structure:Rate Limiting
| Resource | Limit |
|---|---|
| API queries | 100 requests/minute |
| Order creation | 10 requests/minute |
| Order cancellation | 20 requests/minute |
Timestamps
All timestamps are returned in ISO 8601 format:Pagination
List endpoints support pagination:limit- Number of items to return (default: 20, max: 100)offset- Number of items to skip (default: 0)
Errors
The API uses standard HTTP response codes:| Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource doesn’t exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Something went wrong |
Idempotency
POST requests accept anIdempotency-Key header to safely retry requests:
Support
- Email: [email protected]
- Documentation: https://docs.galadriel.com