Create the ApiResponse output when required and time stamp it only then
Create the ApiResponse output when required and time stamp it only then

The ApiResponse output contains a time stamp for the end time (when the
API response is sent or the API job is done) and this time stamp should
be made when the output is needed, which is ultimately when the
response will be sent using the new send method.

Milantex/limitless-bayou-2996