document api should not be responsible for format conversion