document api signature