Quick Start
1. Get Your API Key
- Go to the Profile page in the app.
- Click Create API Key.
- Give it a name (e.g., “Automation Script”).
- Copy the key immediately. It is not shown again.
2. Make Your First Request
The endpoint is OpenAI-compatible, meaning you can use standard LLM libraries or simplecurl commands.
API Reference
Endpoint: POST /api/v1/chat/completions
Python Examples
Standard (Non-Streaming)
Streaming
Usestream: true to receive tokens as they’re generated, useful for CLI or UI applications.
JavaScript / Node.js Example
Tips
- HTTPS only: all examples use
https://onefirewall.ai; there is no unencrypted endpoint. piilevel:disabledfor development (default),obfuscatefor production,blockwhere sensitive data must never reach the model.- Model selection: use the same model IDs available in the chat UI.
- Custom prompts: a
systemprompt you provide replaces the default persona entirely — it is not merged with it. - API independence: the API does not read team UI settings; behavior is controlled entirely by request parameters.
Managing API Keys
- View keys: Profile page.
- Delete a key: click the trash icon next to it in the key list.
- Usage: request count and last-used date are shown per key in the same list.

