DEV Community

Nikolas Dimitroulakis
Nikolas Dimitroulakis

Posted on

Pre & Post Request Scripts (javascript and python)

Pre and Post Requests

APIs often require dynamic logic: refreshing tokens, setting headers on the fly, validating responses, or chaining multiple requests together. Doing this manually can be repetitive, error-prone, and slow.

That’s where Pre & Post Request Scripts come in.

Pre-request scripts run before a request is sent. They let you generate or refresh tokens, compute dynamic values, inject variables, or prepare data automatically.

Post-request scripts run after a response is received. They allow you to validate responses, extract values, store variables for later, trigger follow-up logic, or chain requests into automated workflows.
With these scripts, what used to be tedious and manual becomes automated, repeatable, and easy to maintain.

Voiden now supports Pre & Post Request Scripts with JavaScript and Python (available on the beta, link below), and thanks to its plugin-based architecture, more languages can be added in the future without touching the core product.

If you work with dynamic APIs or multi-step flows, this one is designed to remove friction and make your workflows smarter.

🌐 Beta: https://voiden.md/download#beta
πŸ“‚ GitHub: https://github.com/VoidenHQ/voiden

Top comments (0)