Hi @srichint This could be a good topic to take a look at in office hours!
You can pass block data into the function using parameters
For 1, do you get the same error when running this query in an app (or externally in something like Postman)? Curious what the api is & if there are any public docs on this endpoint