How to see which query was requested using the API

Hello!

I wonder, it's possible to know which query was requested using the REST API?
Following this thought, it's possible to know which user had run the query?

I took a look at the query_execution table but I did not find any difference between normal queries from queries requested using the API.

Someone can help? Thanks :smiley:

Hi @JeanSantana, we don't persist the client who did the query in the database

1 Like

Hi @JeanSantana
The Metabase UI uses the API to make requests, so it is not possible to distinguish between something done via Metabase UI or a custom API request.
The user is recorded in query_execution.executor_id

1 Like