api: change payload format from json to simple text