[GH-ISSUE #4515] [feature]: Access to Request in Script #1652

Open
opened 2026-03-16 21:17:08 +03:00 by kerem · 1 comment
Owner

Originally created by @cdigruttola on GitHub (Nov 6, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4515

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Access to request body in scripts, similar to Postman pm.request

Why should this be worked on?

Hi,
in Postman I used to access to request body in scripts using pm.request
Is there the possibility to implement this feature?

Originally created by @cdigruttola on GitHub (Nov 6, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4515 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary Access to request body in scripts, similar to Postman pm.request ### Why should this be worked on? Hi, in Postman I used to access to request body in scripts using pm.request Is there the possibility to implement this feature?
Author
Owner

@jamesgeorge007 commented on GitHub (Sep 30, 2025):

Hi, we've introduced a hopp namespace housing new scripting methods as proposed in https://github.com/hoppscotch/hoppscotch/discussions/5221 with the ability to access request properties from the scripting context.

It's not recommended to migrate or rework your existing scripts for the new scripting APIs just yet. Breaking changes are expected as the system evolves.

The rollout is intentionally gradual to gather feedback and refine based on real-world use. All future changes will be scoped to the experimental scripting sandbox (enabled by default; can be toggled in Settings → Experiments). Please feel free to take it for a spin and let us know your feedback via the RFC above.

<!-- gh-comment-id:3350576771 --> @jamesgeorge007 commented on GitHub (Sep 30, 2025): Hi, we've introduced a `hopp` namespace housing new [scripting methods](https://docs.hoppscotch.io/documentation/features/scripts#hopp-%5Bexperimental%5D) as proposed in https://github.com/hoppscotch/hoppscotch/discussions/5221 with the ability to access [request properties](https://docs.hoppscotch.io/documentation/features/scripts#the-hopp-request-namespace) from the scripting context. It's not recommended to migrate or rework your existing scripts for the new scripting APIs just yet. Breaking changes are expected as the system evolves. The rollout is intentionally gradual to gather feedback and refine based on real-world use. All future changes will be scoped to the experimental scripting sandbox (enabled by default; can be toggled in `Settings → Experiments`). Please feel free to take it for a spin and let us know your feedback via the RFC above.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1652
No description provided.