File location
Store Quick Actions as.action.js files inside your project’s actions/ folder:
Available context
Postchi injects these variables into every Quick Action:executeRequest return value
executeRequest returns a ScriptResponse object:
The path you pass to
executeRequest is relative to your requests/ folder — for example, 'auth/login.chttp' resolves to requests/auth/login.chttp.Examples
Log in and save the auth token
Fetch an external value and save it
Chain multiple requests
Running a Quick Action
1
Open the actions panel
Click the Actions section in the sidebar to see all
.action.js files in your project.2
Select an action
Click the action you want to run.
3
Run it
Click the run button. Postchi executes the script and applies any
setEnvironmentVariable or setSecret calls immediately.