Complete basic histories API endpoint