HTTP status codes
200: Request succeeded202: Registration accepted and pending consent400: Invalid request body or missing required query/body field401: Missing, invalid, or revoked token403: Missing permission, app access revoked, or non-loopback access404: Unknown path or request id not found500: Internal server error
Common error responses
Localhost enforcement
Velora local API checks the remote socket address and only allows loopback addresses:127.0.0.1::1::ffff:127.0.0.1
Token and app lifecycle
- Tokens are hashed in storage
- Revoking an app revokes all active tokens for that app
- Regenerating a token revokes previous active tokens
- Resetting all connections revokes all active tokens and closes all WebSocket sessions
Operational behavior
- CORS is enabled with
Access-Control-Allow-Origin: * - Allowed methods are
GET,POST, andOPTIONS - The server tracks active connections and last request timestamp
- Unknown routes return
404
Production guidance for integrations
- Request only the permissions your app needs
- Store tokens securely (do not expose in logs)
- Handle token revocation and reconnect logic gracefully
- Treat local API availability as optional and fall back when Velora is not running
