Added API functionality

Details doesn't seem to be used here.