Retrieves a single record from the API with standardized response handling.
The URL of the API endpoint to fetch data from.
The ID of the record to retrieve.
Optional
A promise that resolves to an object containing the fetched record.
Retrieves a single record from the API with standardized response handling.