add an endpoint to get the details of an api requests