Getting the id of a new row on an insert

Hi, my use case requires doing several inserts through the API to a table on a short timeframe, and I need to be able to identify each new row created by each API request. It’s a requirement for me to associate each row to each requestId.

Is there a way to get the new row’s id right on the insertion, along with the returned requestId?