Scripting Examples

Every example shown inside the app's Scripting tab is also catalogued here so you can copy from a browser. Use the search to find a snippet by keyword, or filter by category. Each card lists whether it belongs in a pre-request script (mutates the outgoing request), a post-request script (inspects the response), or both.

💡
Tip:

Inside the app, open the Scripting tab → Examples drawer to insert any of these in one click. The list rendered here is generated from the same data file (web/src/data/scriptExamples.ts) shipped with the app.

For the full set of globals and methods these examples call into, see the Scripting API Reference.

Loading examples…