Get Policies
Authentication
Required. Include a valid session token in theAuthorization header.
Request Headers
Bearer token obtained from
/api/auth/login. Format: Bearer fn_sess_...Response
Returns the complete Fishnet configuration object with all security policies.LLM proxy configuration including prompt drift detection, size guards, spend tracking, and model settings
HTTP client configuration (timeout, max redirects, etc.)
Dashboard server configuration
Alert system configuration
On-chain transaction policy configuration
Binance API proxy configuration including trading limits and blocked endpoints
Custom service configurations (key-value map of service configs)
Response Example
Update Policies
Authentication
Required. Include a valid session token in theAuthorization header.
Request Headers
Bearer token obtained from
/api/auth/login. Format: Bearer fn_sess_...Must be
application/jsonRequest Body
Provide a completeFishnetConfig object. The configuration will be validated before being applied.
LLM configuration with all required fields
HTTP client configuration
Dashboard configuration
Alerts configuration
On-chain configuration
Binance configuration
Custom services configuration (can be empty object)
Response
Indicates whether the configuration was successfully saved
Merkle hash of the saved policy version for audit purposes
Warning message about configuration persistence behavior
Error Responses
Error message when the update fails
Status Codes
200 OK- Configuration updated and saved successfully400 Bad Request- Invalid JSON or validation failed401 Unauthorized- Missing or invalid authentication token500 Internal Server Error- Failed to activate or persist configuration
Validation
The configuration is validated before being applied:- Model pricing must have non-negative finite values
- Custom service names must be valid
- Rate limits must be positive numbers
- All required fields must be present
Persistence
When you update policies:- The configuration is validated
- The new config is activated in the running process
- The config is persisted to
fishnet.toml - If persistence fails, the in-memory config is rolled back
fishnet.toml and does not preserve comments or formatting.