Documentation Index
Fetch the complete documentation index at: https://docs.galadriel.co/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
The Galadriel API uses API tokens for authentication. Include your token in theAuthorization header:
Getting an API Token
- Sign up at https://app.galadriel.com
- Navigate to Settings → API Tokens
- Click “Create Token”
- Copy and securely store your token
Example Request
Token Permissions
Tokens can have different permission scopes:| Scope | Description |
|---|---|
orders:read | View orders and orderbook |
orders:write | Create and cancel orders |
leases:read | View lease details |
leases:write | Manage leases (terminate, resell) |
full_access | All permissions (recommended for CLI) |
Rotating Tokens
For security, rotate your tokens regularly:- Create a new token
- Update your application to use the new token
- Delete the old token
API Token Format
Tokens are prefixed withgal_ followed by a random string:
Unauthorized Responses
If authentication fails, you’ll receive a 401 response:- Missing
Authorizationheader - Invalid token format
- Expired or revoked token
- Insufficient permissions for the requested operation