api url param can accept json as "type" sending also the correct header

Signed-off-by: emanuele <emanuele45@gmail.com>