document signing api