Code Snippets
Generate ready-to-run code from any request configured in Saola. Use the Code button in the request builder to open the code snippet modal.
Supported Languages
- cURL — Command-line curl
- JavaScript (fetch) — Browser
fetchAPI - Python (requests) — Python
requestslibrary
How It Works
- Configure your request (method, URL, params, headers, body).
- Click the Code button.
- Choose the language from the selector.
- Copy the generated snippet to the clipboard.
The snippet includes the current method, full URL (with params), headers, and body. When an environment is active, variables are replaced with their resolved values.