How to use filter values in a REST API data source?

Hi, I’m trying to filter a list that uses a REST API as a data source in Softr. I need to know how to include the value of a filter in the API call configuration.

I’m aware that variables can be used with {} placeholders, such as {LOGGED_IN_USER: someField} for logged-in user fields. However, I’d like to understand what placeholder or variable can be used to retrieve the value selected in a filter applied to a list.

Any examples or additional documentation would be greatly appreciated. Thanks!

He @Felipe

Welcome to the community and thanks for your post!

I’ll start by saying this is a brand new feature and we are still working to add to it and improve it across the board. With that being said, you can use placeholders such as the variables you referenced in your post above.

In addition to those, you can also use placeholders like {filter.field_from_rest_api} in the request body or request parameters. When mapping the same field in inline filters in studio-ui, the mapped field value will later be replaced with the value from the filters.

So it would look like this:


Hope this helps you!

1 Like

Great! That’s exactly what I was looking for, JJ. :slightly_smiling_face:

Are there any other placeholders I should keep in mind for a REST API data source?

1 Like

This is all that I know of! We will keep our Rest API docs updated when we know / add more.

1 Like