Yaak Logo
Yaak
Feedback/Reference Response Values in other requests (chaining)

Reference Response Values in other requests (chaining)

Gregory Schier·3 years ago
ReleasedFeature Request

You should be able to pull values from a response's headers/body in order to use in other requests (like variables)


Comments (16)

Sign in to leave a comment.

Gregory SchierOP
Gregory SchierOP
Gregory SchierOP

If I understand correctly, you want "Request Chaining" which is on the roadmap. I'm going to merge this request with that ticket

Robert Alexander

I made a video trying to explain better https://vimeo.com/955788569 but I would say my problem is not understanding how to save the access token from the first route to the environment so that the second protected route requesting the bearer token will work. Thanks a lot

Hamilton Chevez

Glad I found this open issue and learned that is in progress. After the OpenAPI Import feature release, adding the ability to reference response values in other requests would allow me to complete my full detachment from Postman and stay happy with Yaak.

Thank you for all you're doing putting this tool together.

Gregory SchierOP

Hamilton Chevez amazing! Just finishing up some work on the plug-in system before this can happen, but it's next up!

Hamilton Chevez

Gregory Schier Thanks for getting this out!

Not sure if its something to improve on down the line.

My flow is generally just login in with one endpoint and then copy/pasting that token into the auth bearer header.

With the helper video you shared I had not realized that it was only for GraphQL that had the bottom variables section and I was lost for a while figuring out how bring that up for a JSON request. Turns out I just had to type the function response() out. I also stumbled upon this too on the Token field, since all text displays as the hidden dot text I thought there was no way of referencing it until I I finished typing out the function name.

So maybe a few other videos for other work flows would be nice.

Otherwise, thanks for all you do!

Gregory SchierOP

Hamilton Chevez thanks for the great feedback! It's indeed a very early release so there's still some work to do in order to improve usability and discoverability. And definitely docs!

Gregory SchierOP

This is now available in the 2024.8.0-beta.3! https://yaak.app/blog/2024.8.0-beta.1

Bharat M

Gregory Schier Quick video example to demo this?

Gregory SchierOP
Gregory SchierOP
Carlos Eduardo

It's possible to reference a response header? I only managed to reference a response body field

Emir Sa

Hello, how can I use timestamp in Yaak? @Greg Schier

Gregory SchierOP

Can you explain what you mean? If you want to generate a timestamp, you can try the faker plugin

https://github.com/mountain-loop/yaak-plugin-faker

Emir Sa

Yes, I want something like this, but I couldn't find anything like faker.time.currenttime.

Type to search feedback...