Scripting API

Pre-request and post-request scripts run in a sandboxed JavaScript environment. The reference below is the complete public surface exposed to your scripts — globals, namespaces, helper functions, and request/response shapes. It is generated from the same data file (web/src/data/scriptingApi.ts) used by the in-app autocomplete, so what you see here matches what the editor will offer you.

ℹ️
Looking for ready-made snippets?

See Scripting Examples for copy-paste recipes covering tests, env capture, auth flows, Base64, JWT decode, response-header parsing, and more.

Loading API reference…